Update dynamic app names for all versions.

This commit is contained in:
Patrick Fic
2024-02-26 11:46:40 -08:00
parent f190c26311
commit 6640ed629d
65 changed files with 700 additions and 230 deletions

View File

@@ -1,16 +1,16 @@
import i18n from "i18next";
import LanguageDetector from "i18next-browser-languagedetector";
import {initReactI18next} from "react-i18next";
import en_Translation from "./en_us/common.json";
import es_Translation from "./es/common.json";
import fr_Translation from "./fr/common.json";
import i18n from 'i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import { initReactI18next } from 'react-i18next';
import en_Translation from './en_us/common.json';
import es_Translation from './es/common.json';
import fr_Translation from './fr/common.json';
// the translations
// (tip move them in a JSON file and import them)
const resources = {
"en-US": en_Translation,
"fr-CA": fr_Translation,
"es-MX": es_Translation,
'en-US': en_Translation,
'fr-CA': fr_Translation,
'es-MX': es_Translation,
};
i18n
.use(initReactI18next)
@@ -19,14 +19,13 @@ i18n
resources,
//lng: "en",
detection: {},
fallbackLng: "en-US",
fallbackLng: 'en-US',
debug: import.meta.env.PROD ? false : true,
//keySeparator: false, // we do not use keys in form messages.welcome
interpolation: {
escapeValue: false, // react already safes from xss
},
});
//keySeparator: false, // we do not use keys in form messages.welcome
interpolation: {
escapeValue: false, // react already safes from xss
skipOnVariables: false,
},
});
export default i18n;