mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-30 23:59:02 +03:00
feat: add Traditional Chinese (zh-Hant) language option (#23322)
The zh-Hant translations are synced from Weblate (98% complete) but the locale was never registered in the language selector, so users could not select it. Register zh-Hant in supportedLanguageKeys, add its display label, and map it to the zh-TW date-fns locale.
This commit is contained in:
@@ -34,6 +34,8 @@ const localeMap: Record<string, () => Promise<Locale>> = {
|
||||
sk: () => import("date-fns/locale/sk").then((module) => module.sk),
|
||||
"yue-Hant": () =>
|
||||
import("date-fns/locale/zh-HK").then((module) => module.zhHK),
|
||||
"zh-Hant": () =>
|
||||
import("date-fns/locale/zh-TW").then((module) => module.zhTW),
|
||||
lt: () => import("date-fns/locale/lt").then((module) => module.lt),
|
||||
th: () => import("date-fns/locale/th").then((module) => module.th),
|
||||
ca: () => import("date-fns/locale/ca").then((module) => module.ca),
|
||||
|
||||
Reference in New Issue
Block a user