Add languages (#19447)

This commit is contained in:
Josh Hawkins 2025-08-10 07:27:47 -05:00 committed by GitHub
parent f46560d2bf
commit c2f8de94e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 0 deletions

View File

@ -140,6 +140,7 @@
"fr": "Français (French)", "fr": "Français (French)",
"ar": "العربية (Arabic)", "ar": "العربية (Arabic)",
"pt": "Português (Portuguese)", "pt": "Português (Portuguese)",
"ptBR": "Português brasileiro (Brazilian Portuguese)",
"ru": "Русский (Russian)", "ru": "Русский (Russian)",
"de": "Deutsch (German)", "de": "Deutsch (German)",
"ja": "日本語 (Japanese)", "ja": "日本語 (Japanese)",
@ -164,6 +165,13 @@
"yue": "粵語 (Cantonese)", "yue": "粵語 (Cantonese)",
"th": "ไทย (Thai)", "th": "ไทย (Thai)",
"ca": "Català (Catalan)", "ca": "Català (Catalan)",
"sr": "Српски (Serbian)",
"sl": "Slovenščina (Slovenian)",
"lt": "Lietuvių (Lithuanian)",
"bg": "Български (Bulgarian)",
"gl": "Galego (Galician)",
"id": "Bahasa Indonesia (Indonesian)",
"ur": "اردو (Urdu)",
"withSystem": { "withSystem": {
"label": "Use the system settings for language" "label": "Use the system settings for language"
} }

View File

@ -85,6 +85,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
"nb-NO": "nb", "nb-NO": "nb",
"yue-Hant": "yue", "yue-Hant": "yue",
"zh-CN": "zhCN", "zh-CN": "zhCN",
"pt-BR": "ptBR",
}; };
return supportedLanguageKeys.map((key) => { return supportedLanguageKeys.map((key) => {

View File

@ -10,6 +10,7 @@ const localeMap: Record<string, () => Promise<Locale>> = {
fr: () => import("date-fns/locale/fr").then((module) => module.fr), fr: () => import("date-fns/locale/fr").then((module) => module.fr),
ar: () => import("date-fns/locale/ar").then((module) => module.ar), ar: () => import("date-fns/locale/ar").then((module) => module.ar),
pt: () => import("date-fns/locale/pt").then((module) => module.pt), pt: () => import("date-fns/locale/pt").then((module) => module.pt),
"pt-BR": () => import("date-fns/locale/pt").then((module) => module.pt),
ru: () => import("date-fns/locale/ru").then((module) => module.ru), ru: () => import("date-fns/locale/ru").then((module) => module.ru),
de: () => import("date-fns/locale/de").then((module) => module.de), de: () => import("date-fns/locale/de").then((module) => module.de),
ja: () => import("date-fns/locale/ja").then((module) => module.ja), ja: () => import("date-fns/locale/ja").then((module) => module.ja),

View File

@ -2,6 +2,7 @@ export const supportedLanguageKeys = [
"en", "en",
"es", "es",
"pt", "pt",
"pt-BR",
"fr", "fr",
"de", "de",
"it", "it",