feat: start of pew

This commit is contained in:
TrèsAbhi committed 2025-09-27 15:38:37 -05:00
1 parent 27c8b348bb
commit 75d7b4554b
13 files changed
+225 -194

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import locales from "../locales.json";
import { BlitzKitStrings, STRINGS } from "./strings";
export function wrapper(slicer: (strings: BlitzKitStrings) => string) {
const defaultString = slicer(STRINGS[locales.default] as BlitzKitStrings);
const object = { [locales.default]: defaultString };
for (const { locale } of locales.supported) {
const string = slicer(STRINGS[locale] as BlitzKitStrings);
if (string !== defaultString) object[locale] = string;
}
return object;
}