feat: locales

This commit is contained in:
tresabhi committed 2025-01-10 14:04:42 -06:00
1 parent 66d63d5c60
commit 6fbe1d6339
3 files changed
+28 -4

No files matched your search

+24 -1
View File
@@ -1,2 +1,25 @@
export const SUPPORTED_LOCALES = ['en', 'es', 'hr', 'pt', 'ru', 'uk', 'zh'];
export const SUPPORTED_LOCALES = [
'en',
'es',
'fr',
'ja',
'pt',
'ru',
'uk',
'zh',
] as const;
export type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
export const DEFAULT_LOCALE = SUPPORTED_LOCALES[0];
export const SUPPORTED_LOCALE_BLITZ_MAP: Record<SupportedLocale, string> = {
en: 'en',
es: 'es',
fr: 'fr',
ja: 'ja',
pt: 'pt',
ru: 'ru',
uk: 'uk',
zh: 'zh-Hans',
};