mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
feat: Translate app to Spanish (#457)
This commit is contained in:
3
i18n.ts
3
i18n.ts
@@ -2,12 +2,14 @@ import i18n from "i18next";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
|
||||
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 { getLocales } from "expo-localization";
|
||||
|
||||
export const APP_LANGUAGES = [
|
||||
{ label: "English", value: "en" },
|
||||
{ label: "Español", value: "es" },
|
||||
{ label: "Français", value: "fr" },
|
||||
{ label: "Svenska", value: "sv" },
|
||||
];
|
||||
@@ -16,6 +18,7 @@ i18n.use(initReactI18next).init({
|
||||
compatibilityJSON: "v4",
|
||||
resources: {
|
||||
en: { translation: en },
|
||||
es: { translation: es },
|
||||
fr: { translation: fr },
|
||||
sv: { translation: sv },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user