feat: simplification

This commit is contained in:
tresabhi committed 2024-12-29 20:19:51 -06:00
1 parent 3f595d0d8a
commit 599b81934e
4 files changed
+66 -15

No files matched your search

+10
View File
@@ -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",
+12 -10
View File
@@ -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];