mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-16 13:00:01 -04:00
Prettier Format
This commit is contained in:
parent
3a9024d1e0
commit
ad67368a45
42 changed files with 1650 additions and 1609 deletions
64
src/i18n.ts
64
src/i18n.ts
|
@ -1,32 +1,32 @@
|
|||
import i18n from "i18next";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
import LanguageDetector from "i18next-browser-languagedetector";
|
||||
|
||||
import translationEN from "./locales/en.json";
|
||||
import translationES from "./locales/es.json";
|
||||
import translationJA from "./locales/ja.json";
|
||||
|
||||
const resources = {
|
||||
en: {
|
||||
translation: translationEN
|
||||
},
|
||||
es: {
|
||||
translation: translationES
|
||||
},
|
||||
ja: {
|
||||
translation: translationJA
|
||||
}
|
||||
};
|
||||
|
||||
i18n
|
||||
.use(initReactI18next)
|
||||
.use(LanguageDetector)
|
||||
.init({
|
||||
resources,
|
||||
fallbackLng: "en",
|
||||
interpolation: {
|
||||
escapeValue: false
|
||||
}
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
import i18n from "i18next";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
import LanguageDetector from "i18next-browser-languagedetector";
|
||||
|
||||
import translationEN from "./locales/en.json";
|
||||
import translationES from "./locales/es.json";
|
||||
import translationJA from "./locales/ja.json";
|
||||
|
||||
const resources = {
|
||||
en: {
|
||||
translation: translationEN
|
||||
},
|
||||
es: {
|
||||
translation: translationES
|
||||
},
|
||||
ja: {
|
||||
translation: translationJA
|
||||
}
|
||||
};
|
||||
|
||||
i18n
|
||||
.use(initReactI18next)
|
||||
.use(LanguageDetector)
|
||||
.init({
|
||||
resources,
|
||||
fallbackLng: "en",
|
||||
interpolation: {
|
||||
escapeValue: false
|
||||
}
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue