|
Last change
on this file was b8093a0, checked in by imbrsk <boris696boris@…>, 3 days ago |
|
Merge iknow-remaster into frontend/
Bring the Next.js frontend into this repository as a monorepo subdirectory,
preserving its full commit history via a subtree merge.
|
-
Property mode
set to
100644
|
|
File size:
473 bytes
|
| Rev | Line | |
|---|
| [50f2fb4] | 1 | import i18n from 'i18next';
|
|---|
| 2 | import { initReactI18next } from 'react-i18next';
|
|---|
| 3 |
|
|---|
| 4 | import translationEN from './locales/en/translation.json';
|
|---|
| 5 | import translationMK from './locales/mk/translation.json';
|
|---|
| 6 |
|
|---|
| 7 | const resources = {
|
|---|
| 8 | en: { translation: translationEN },
|
|---|
| 9 | mk: { translation: translationMK },
|
|---|
| 10 | };
|
|---|
| 11 |
|
|---|
| 12 | i18n
|
|---|
| 13 | .use(initReactI18next)
|
|---|
| 14 | .init({
|
|---|
| 15 | resources,
|
|---|
| 16 | lng: 'mk',
|
|---|
| 17 | fallbackLng: 'mk',
|
|---|
| 18 | interpolation: {
|
|---|
| 19 | escapeValue: false,
|
|---|
| 20 | },
|
|---|
| 21 | });
|
|---|
| 22 |
|
|---|
| 23 | export default i18n;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.