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

+4 -3
View File
@@ -1,6 +1,7 @@
import { DEFAULT_LOCALE, STRINGS, type SupportedLocale } from '@blitzkit/i18n';
import { STRINGS } from "@blitzkit/i18n";
import locales from "@blitzkit/i18n/locales.json";
export function getStrings(locale: string = DEFAULT_LOCALE) {
if (locale in STRINGS) return STRINGS[locale as SupportedLocale];
export function getStrings(locale: string = locales.default) {
if (locale in STRINGS) return STRINGS[locale];
throw new Error(`Unsupported locale: ${locale}`);
}