mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +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",
|
"cellProvider": "AT&T",
|
||||||
"language": "en_US",
|
"language": "en",
|
||||||
"wallpapers": [
|
"wallpapers": [
|
||||||
"default.png",
|
"default.png",
|
||||||
"dragon.jpg",
|
"dragon.jpg",
|
||||||
|
|||||||
+6
-1
@@ -1,16 +1,21 @@
|
|||||||
import i18n from "i18next";
|
import i18n from "i18next";
|
||||||
import { initReactI18next } from "react-i18next";
|
import { initReactI18next } from "react-i18next";
|
||||||
import en from "./locale/en.json";
|
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 = {
|
const resources = {
|
||||||
en,
|
en,
|
||||||
|
es,
|
||||||
|
fr
|
||||||
};
|
};
|
||||||
|
|
||||||
i18n
|
i18n
|
||||||
.use(initReactI18next) // passes i18n down to react-i18next
|
.use(initReactI18next) // passes i18n down to react-i18next
|
||||||
.init({
|
.init({
|
||||||
resources,
|
resources,
|
||||||
lng: "en",
|
lng: config.language,
|
||||||
|
|
||||||
keySeparator: false, // we do not use keys in form messages.welcome
|
keySeparator: false, // we do not use keys in form messages.welcome
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user