diff --git a/phone/src/config/default.json b/phone/src/config/default.json index fe6fc4c..b67ea3c 100644 --- a/phone/src/config/default.json +++ b/phone/src/config/default.json @@ -1,6 +1,6 @@ { "cellProvider": "AT&T", - "language": "en_US", + "language": "en", "wallpapers": [ "default.png", "dragon.jpg", diff --git a/phone/src/i18n.ts b/phone/src/i18n.ts index f4ca0de..48901e7 100644 --- a/phone/src/i18n.ts +++ b/phone/src/i18n.ts @@ -1,16 +1,21 @@ import i18n from "i18next"; import { initReactI18next } from "react-i18next"; import en from "./locale/en.json"; +import es from './locale/es.json' +import fr from './locale/fr.json'; +import config from './config/default.json'; const resources = { en, + es, + fr }; i18n .use(initReactI18next) // passes i18n down to react-i18next .init({ resources, - lng: "en", + lng: config.language, keySeparator: false, // we do not use keys in form messages.welcome