mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-30 23:59:02 +03:00
Add languages (#19447)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user