Skip to content

Commit

Permalink
Transalation in Maithili and Bhojpuri Added
Browse files Browse the repository at this point in the history
  • Loading branch information
dnyaneshwar-rede committed Jan 4, 2024
1 parent 38b073d commit dc81ace
Show file tree
Hide file tree
Showing 3 changed files with 404 additions and 27 deletions.
61 changes: 34 additions & 27 deletions src/i18n.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
import i18next from 'i18next';
import { initReactI18next } from 'react-i18next';
import en from './i18n/en.json';
import sv from './i18n/sv.json';
import no from './i18n/no.json';
import zh from './i18n/zh.json';
import tr from './i18n/tr.json';
import de from './i18n/de.json';
import ru from './i18n/ru.json';
import fi from './i18n/fi.json';
import pt from './i18n/pt.json';
import uk from './i18n/uk.json';
import hi from './i18n/hi.json';
import mr from './i18n/mr.json';
import id from './i18n/id.json';
import te from ',/i18n/te.json';
import ph from './i18n/ph.json';
import fr from './i18n/fr.json';
import i18next from "i18next";
import { initReactI18next } from "react-i18next";
import en from "./i18n/en.json";
import sv from "./i18n/sv.json";
import no from "./i18n/no.json";
import zh from "./i18n/zh.json";
import tr from "./i18n/tr.json";
import de from "./i18n/de.json";
import ru from "./i18n/ru.json";
import fi from "./i18n/fi.json";
import pt from "./i18n/pt.json";
import uk from "./i18n/uk.json";
import hi from "./i18n/hi.json";
import mr from "./i18n/mr.json";
import id from "./i18n/id.json";
import te from "./i18n/te.json";
import ph from "./i18n/ph.json";
import fr from "./i18n/fr.json";
import mai from "./i18n/mai.json";
import bho from "./i18n/bho.json";

import { Globals } from './Globals';
import RNLanguageDetector from '@os-team/i18next-react-native-language-detector';
import { Globals } from "./Globals";
import RNLanguageDetector from "@os-team/i18next-react-native-language-detector";

Globals.language = 'en'
Globals.language = "en";

if (Globals.language == "zh") {
Globals.language = 'zh-cn';
Globals.language = "zh-cn";
}

i18next
// .use(languageDetector)
.use(RNLanguageDetector)
.use(initReactI18next)
.init({
compatibilityJSON: 'v3',
fallbackLng: 'en',
compatibilityJSON: "v3",
fallbackLng: "en",
debug: true,
resources: {
en: {
Expand Down Expand Up @@ -82,12 +84,17 @@ i18next
},
ph: {
translation: ph,
},
fr: {
translation: fr,
}

},
mai: {
translation: mai,
},
bho: {
translation: bho,
},
},
});


export default i18next;
Loading

0 comments on commit dc81ace

Please sign in to comment.