i18n: add unofficial languages support

This commit is contained in:
James Xylight committed 2025-08-27 17:22:23 -07:00
1 parent 6c0d356415
commit 41fe99652a
5 files changed
+46 -50

No files matched your search

-12
View File
@@ -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": {
+5
View File
@@ -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',
}
+1 -1
View File
@@ -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 {