source: src/i18n.ts@ 50f2fb4

Last change on this file since 50f2fb4 was 50f2fb4, checked in by Stefan-Saveski <stefansaveski19@…>, 8 months ago

Added dual language feature.

  • Property mode set to 100644
File size: 473 bytes
Line 
1import i18n from 'i18next';
2import { initReactI18next } from 'react-i18next';
3
4import translationEN from './locales/en/translation.json';
5import translationMK from './locales/mk/translation.json';
6
7const resources = {
8 en: { translation: translationEN },
9 mk: { translation: translationMK },
10};
11
12i18n
13 .use(initReactI18next)
14 .init({
15 resources,
16 lng: 'mk',
17 fallbackLng: 'mk',
18 interpolation: {
19 escapeValue: false,
20 },
21 });
22
23export default i18n;
Note: See TracBrowser for help on using the repository browser.