mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: simplification
This commit is contained in:
1 parent
3f595d0d8a
commit
599b81934e
4 files changed
+66
-15
No files matched your search
@@ -1,5 +1,15 @@
|
||||
{
|
||||
"common": {
|
||||
"locales": {
|
||||
"en": "English",
|
||||
"es": "Spanish",
|
||||
"hr": "Croatian",
|
||||
"pt": "Portuguese",
|
||||
"ru": "Russian",
|
||||
"uk": "Ukrainian",
|
||||
"zh": "Chinese"
|
||||
},
|
||||
|
||||
"wn8_percentile": {
|
||||
"0": "Very bad",
|
||||
"1": "Bad",
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
export const SUPPORTED_LOCALES = ['en', 'es', 'hr', 'ru', 'uk', 'cn'];
|
||||
export const SUPPORTED_LOCALES = [
|
||||
'en',
|
||||
'es',
|
||||
'hr',
|
||||
'pt',
|
||||
'ru',
|
||||
'uk',
|
||||
'zh',
|
||||
] as const;
|
||||
|
||||
export const DEFAULT_LOCALE = SUPPORTED_LOCALES[0];
|
||||
export const LOCALE_FILES: Record<(typeof SUPPORTED_LOCALES)[number], string> =
|
||||
{
|
||||
en: 'en-US',
|
||||
es: 'es-ES',
|
||||
hr: 'hr',
|
||||
ru: 'ru',
|
||||
uk: 'uk',
|
||||
cn: 'zh-CN',
|
||||
};
|
||||
|
||||
export type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
|
||||
Reference in new issue
Block a user