mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-22 13:47:29 +02:00
Add languages (#19447)
This commit is contained in:
parent
f46560d2bf
commit
c2f8de94e8
@ -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"
|
||||||
}
|
}
|
||||||
|
@ -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) => {
|
||||||
|
@ -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),
|
||||||
|
@ -2,6 +2,7 @@ export const supportedLanguageKeys = [
|
|||||||
"en",
|
"en",
|
||||||
"es",
|
"es",
|
||||||
"pt",
|
"pt",
|
||||||
|
"pt-BR",
|
||||||
"fr",
|
"fr",
|
||||||
"de",
|
"de",
|
||||||
"it",
|
"it",
|
||||||
|
Loading…
Reference in New Issue
Block a user