feat(lang): add Catalan localization support (#873)

Co-authored-by: Gauvain <68083474+Gauvino@users.noreply.github.com>
This commit is contained in:
Ferran
2025-08-07 13:19:48 +02:00
committed by GitHub
parent 88791eccf9
commit a77c7e8e3c
2 changed files with 487 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import { getLocales } from "expo-localization";
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import ca from "./translations/ca.json";
import da from "./translations/da.json";
import de from "./translations/de.json";
import en from "./translations/en.json";
@@ -27,6 +28,7 @@ import zhCN from "./translations/zh-CN.json";
import zhTW from "./translations/zh-TW.json";
export const APP_LANGUAGES = [
{ label: "Catalan", value: "ca" },
{ label: "Dansk", value: "da" },
{ label: "Deutsch", value: "de" },
{ label: "English", value: "en" },
@@ -56,6 +58,7 @@ export const APP_LANGUAGES = [
i18n.use(initReactI18next).init({
compatibilityJSON: "v4",
resources: {
ca: { translation: ca },
da: { translation: da },
de: { translation: de },
en: { translation: en },