Skip to content

Commit c2f8de9

Browse files
authored
Add languages (#19447)
1 parent f46560d commit c2f8de9

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

web/public/locales/en/common.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
"fr": "Français (French)",
141141
"ar": "العربية (Arabic)",
142142
"pt": "Português (Portuguese)",
143+
"ptBR": "Português brasileiro (Brazilian Portuguese)",
143144
"ru": "Русский (Russian)",
144145
"de": "Deutsch (German)",
145146
"ja": "日本語 (Japanese)",
@@ -164,6 +165,13 @@
164165
"yue": "粵語 (Cantonese)",
165166
"th": "ไทย (Thai)",
166167
"ca": "Català (Catalan)",
168+
"sr": "Српски (Serbian)",
169+
"sl": "Slovenščina (Slovenian)",
170+
"lt": "Lietuvių (Lithuanian)",
171+
"bg": "Български (Bulgarian)",
172+
"gl": "Galego (Galician)",
173+
"id": "Bahasa Indonesia (Indonesian)",
174+
"ur": "اردو (Urdu)",
167175
"withSystem": {
168176
"label": "Use the system settings for language"
169177
}

web/src/components/menu/GeneralSettings.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
8585
"nb-NO": "nb",
8686
"yue-Hant": "yue",
8787
"zh-CN": "zhCN",
88+
"pt-BR": "ptBR",
8889
};
8990

9091
return supportedLanguageKeys.map((key) => {

web/src/hooks/use-date-locale.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const localeMap: Record<string, () => Promise<Locale>> = {
1010
fr: () => import("date-fns/locale/fr").then((module) => module.fr),
1111
ar: () => import("date-fns/locale/ar").then((module) => module.ar),
1212
pt: () => import("date-fns/locale/pt").then((module) => module.pt),
13+
"pt-BR": () => import("date-fns/locale/pt").then((module) => module.pt),
1314
ru: () => import("date-fns/locale/ru").then((module) => module.ru),
1415
de: () => import("date-fns/locale/de").then((module) => module.de),
1516
ja: () => import("date-fns/locale/ja").then((module) => module.ja),

web/src/lib/const.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export const supportedLanguageKeys = [
22
"en",
33
"es",
44
"pt",
5+
"pt-BR",
56
"fr",
67
"de",
78
"it",

0 commit comments

Comments
 (0)