i18n: add unofficial languages support
This commit is contained in:
5 files changed
+46
-50
No files matched your search
@@ -744,18 +744,6 @@
|
||||
"lang": {
|
||||
"title": "Language",
|
||||
"description": "The language used for text in the UI.",
|
||||
"note": "Languages other than English and Hebrew are community translated, and may be incomplete.",
|
||||
"en": "English",
|
||||
"en-US": "English",
|
||||
"he": "Hebrew",
|
||||
"et": "Estonian",
|
||||
"fr": "French",
|
||||
"de": "German",
|
||||
"fi": "Finnish",
|
||||
"pt": "Portuguese",
|
||||
"zh": "Chinese",
|
||||
"zh-Hans": "Chinese (Simplified)",
|
||||
"zh-Hant": "Chinese (Traditional)",
|
||||
"auto": "Auto",
|
||||
"credits": "Credits",
|
||||
"useRtl": {
|
||||
|
||||
@@ -97,6 +97,11 @@ const config: Config = {
|
||||
key: '',
|
||||
loader: async () => (await import('./zh-Hant.json')).default,
|
||||
},
|
||||
{
|
||||
locale: 'tok',
|
||||
key: '',
|
||||
loader: async () => (await import('./tok.json')).default,
|
||||
},
|
||||
],
|
||||
fallbackLocale: 'en',
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
label: optionElement?.innerText?.trim() ?? '',
|
||||
icon: icon,
|
||||
disabled: optionElement?.disabled,
|
||||
isLabel: optionElement?.getAttribute('data-label') != null,
|
||||
isLabel: optionElement?.getAttribute('data-label') == 'true',
|
||||
})
|
||||
|
||||
interface SelectContext {
|
||||
|
||||
Reference in new issue
Block a user