forked from NebulaServices/Nebula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
i18n.ts
32 lines (28 loc) · 656 Bytes
/
i18n.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;