mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
feat: Add Chinese (Traditional) Translation (#522)
This commit is contained in:
3
i18n.ts
3
i18n.ts
@@ -6,6 +6,7 @@ import en from "./translations/en.json";
|
||||
import es from "./translations/es.json";
|
||||
import fr from "./translations/fr.json";
|
||||
import sv from "./translations/sv.json";
|
||||
import zhTW from './translations/zh-TW.json';
|
||||
import { getLocales } from "expo-localization";
|
||||
|
||||
export const APP_LANGUAGES = [
|
||||
@@ -14,6 +15,7 @@ export const APP_LANGUAGES = [
|
||||
{ label: "Español", value: "es" },
|
||||
{ label: "Français", value: "fr" },
|
||||
{ label: "Svenska", value: "sv" },
|
||||
{ label: "繁體中文", value: "zh-TW" },
|
||||
];
|
||||
|
||||
i18n.use(initReactI18next).init({
|
||||
@@ -24,6 +26,7 @@ i18n.use(initReactI18next).init({
|
||||
es: { translation: es },
|
||||
fr: { translation: fr },
|
||||
sv: { translation: sv },
|
||||
"zh-TW": { translation: zhTW },
|
||||
},
|
||||
|
||||
lng: getLocales()[0].languageCode || "en",
|
||||
|
||||
Reference in New Issue
Block a user