mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-13 13:47:36 +02:00
Add languages (#19447)
This commit is contained in:
parent
f46560d2bf
commit
c2f8de94e8
@ -140,6 +140,7 @@
|
||||
"fr": "Français (French)",
|
||||
"ar": "العربية (Arabic)",
|
||||
"pt": "Português (Portuguese)",
|
||||
"ptBR": "Português brasileiro (Brazilian Portuguese)",
|
||||
"ru": "Русский (Russian)",
|
||||
"de": "Deutsch (German)",
|
||||
"ja": "日本語 (Japanese)",
|
||||
@ -164,6 +165,13 @@
|
||||
"yue": "粵語 (Cantonese)",
|
||||
"th": "ไทย (Thai)",
|
||||
"ca": "Català (Catalan)",
|
||||
"sr": "Српски (Serbian)",
|
||||
"sl": "Slovenščina (Slovenian)",
|
||||
"lt": "Lietuvių (Lithuanian)",
|
||||
"bg": "Български (Bulgarian)",
|
||||
"gl": "Galego (Galician)",
|
||||
"id": "Bahasa Indonesia (Indonesian)",
|
||||
"ur": "اردو (Urdu)",
|
||||
"withSystem": {
|
||||
"label": "Use the system settings for language"
|
||||
}
|
||||
|
@ -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) => {
|
||||
|
@ -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),
|
||||
|
@ -2,6 +2,7 @@ export const supportedLanguageKeys = [
|
||||
"en",
|
||||
"es",
|
||||
"pt",
|
||||
"pt-BR",
|
||||
"fr",
|
||||
"de",
|
||||
"it",
|
||||
|
Loading…
Reference in New Issue
Block a user