feat: Translate app to Spanish (#457)

This commit is contained in:
Adrián
2025-02-02 09:17:54 +01:00
committed by GitHub
parent 3b5e07c1d2
commit a7d7d00eb3
2 changed files with 460 additions and 0 deletions

View File

@@ -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 },
},