feat: update bot chunk 4

This commit is contained in:
tresabhi committed 2025-01-16 14:10:28 -06:00
1 parent 5499cb5cca
commit 98724df711
11 files changed
+122 -91

No files matched your search

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