mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-16 13:00:01 -04:00
run npm run format
This commit is contained in:
parent
99b08aff08
commit
2fe742f3f0
17 changed files with 259 additions and 238 deletions
24
src/i18n.ts
24
src/i18n.ts
|
@ -1,17 +1,17 @@
|
|||
import i18n from 'i18next';
|
||||
import { initReactI18next } from 'react-i18next';
|
||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
import i18n from "i18next";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
import LanguageDetector from "i18next-browser-languagedetector";
|
||||
|
||||
import translationEN from './locales/en.json';
|
||||
import translationJA from './locales/ja.json';
|
||||
import translationEN from "./locales/en.json";
|
||||
import translationJA from "./locales/ja.json";
|
||||
|
||||
const resources = {
|
||||
en: {
|
||||
translation: translationEN,
|
||||
translation: translationEN
|
||||
},
|
||||
ja: {
|
||||
translation: translationJA,
|
||||
},
|
||||
translation: translationJA
|
||||
}
|
||||
};
|
||||
|
||||
i18n
|
||||
|
@ -19,10 +19,10 @@ i18n
|
|||
.use(LanguageDetector)
|
||||
.init({
|
||||
resources,
|
||||
fallbackLng: 'en',
|
||||
fallbackLng: "en",
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
escapeValue: false
|
||||
}
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
export default i18n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue