mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-16 13:00:01 -04:00
Japanese translations for header (probably incorrect)
This commit is contained in:
parent
57c7cda58b
commit
533376a592
7 changed files with 154 additions and 7 deletions
28
src/i18n.ts
Normal file
28
src/i18n.ts
Normal file
|
@ -0,0 +1,28 @@
|
|||
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';
|
||||
|
||||
const resources = {
|
||||
en: {
|
||||
translation: translationEN,
|
||||
},
|
||||
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