Add languages (#19447)

This commit is contained in:
Josh Hawkins
2025-08-10 06:27:47 -06:00
committed by GitHub
parent f46560d2bf
commit c2f8de94e8
4 changed files with 11 additions and 0 deletions
@@ -85,6 +85,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
"nb-NO": "nb",
"yue-Hant": "yue",
"zh-CN": "zhCN",
"pt-BR": "ptBR",
};
return supportedLanguageKeys.map((key) => {
+1
View File
@@ -10,6 +10,7 @@ const localeMap: Record<string, () => Promise<Locale>> = {
fr: () => import("date-fns/locale/fr").then((module) => module.fr),
ar: () => import("date-fns/locale/ar").then((module) => module.ar),
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),
de: () => import("date-fns/locale/de").then((module) => module.de),
ja: () => import("date-fns/locale/ja").then((module) => module.ja),
+1
View File
@@ -2,6 +2,7 @@ export const supportedLanguageKeys = [
"en",
"es",
"pt",
"pt-BR",
"fr",
"de",
"it",