mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(translation): added fr and es
This commit is contained in:
1 parent
2982a346ed
commit
528cfa907a
2 files changed
+7
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"cellProvider": "AT&T",
|
||||
"language": "en_US",
|
||||
"language": "en",
|
||||
"wallpapers": [
|
||||
"default.png",
|
||||
"dragon.jpg",
|
||||
|
||||
+6
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user