mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-28 17:48:26 +01:00
fix: sorted app languages
Sorting the app languages by alphabetical order Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
This commit is contained in:
6
i18n.ts
6
i18n.ts
@@ -29,7 +29,7 @@ import vi from "./translations/vi.json";
|
||||
import zhCN from "./translations/zh-CN.json";
|
||||
import zhTW from "./translations/zh-TW.json";
|
||||
|
||||
export const APP_LANGUAGES = [
|
||||
const _APP_LANGUAGES = [
|
||||
{ label: "Catalan", value: "ca" },
|
||||
{ label: "العربية", value: "ar" },
|
||||
{ label: "Dansk", value: "da" },
|
||||
@@ -57,7 +57,9 @@ export const APP_LANGUAGES = [
|
||||
{ label: "简体中文", value: "zh-CN" },
|
||||
{ label: "繁體中文", value: "zh-TW" },
|
||||
{ label: "Tiếng Việt", value: "vi" },
|
||||
];
|
||||
].sort((a, b) => a.label.localeCompare(b.label));
|
||||
|
||||
export const APP_LANGUAGES = _APP_LANGUAGES;
|
||||
|
||||
i18n.use(initReactI18next).init({
|
||||
compatibilityJSON: "v4",
|
||||
|
||||
Reference in New Issue
Block a user