Merge branch 'feature/i18n-basics' of github.com:romulobordezani/Viewers into feature/i18n-basics
This commit is contained in:
commit
dd1a5455d9
@ -1,5 +1,9 @@
|
|||||||
import i18n from 'i18next';
|
import i18n from 'i18next';
|
||||||
import { initReactI18next } from 'react-i18next';
|
import {
|
||||||
|
initReactI18next,
|
||||||
|
withTranslation,
|
||||||
|
I18nextProvider,
|
||||||
|
} from 'react-i18next';
|
||||||
|
|
||||||
const currentLanguage = process.env.APP_LANG || 'en-US';
|
const currentLanguage = process.env.APP_LANG || 'en-US';
|
||||||
const debugMode = process.env.I18N_DEBUG || false;
|
const debugMode = process.env.I18N_DEBUG || false;
|
||||||
@ -74,5 +78,5 @@ i18n
|
|||||||
translate = t;
|
translate = t;
|
||||||
});
|
});
|
||||||
|
|
||||||
export { translate as t };
|
export { translate as t, withTranslation, I18nextProvider };
|
||||||
export default i18n;
|
export default i18n;
|
||||||
|
|||||||
@ -4,15 +4,5 @@
|
|||||||
"Previous image": "Previous, image",
|
"Previous image": "Previous, image",
|
||||||
"Play / Stop": "Play, / Stop",
|
"Play / Stop": "Play, / Stop",
|
||||||
"Next image": "Next, image",
|
"Next image": "Next, image",
|
||||||
"Skip to last image": "Skip, to last image",
|
|
||||||
"Skip to first image": "Skip, to first image",
|
|
||||||
"Previous image": "Previous, image",
|
|
||||||
"Play / Stop": "Play, / Stop",
|
|
||||||
"Next image": "Next, image",
|
|
||||||
"Skip to last image": "Skip, to last image",
|
|
||||||
"Skip to first image": "Skip, to first image",
|
|
||||||
"Previous image": "Previous, image",
|
|
||||||
"Play / Stop": "Play, / Stop",
|
|
||||||
"Next image": "Next, image",
|
|
||||||
"Skip to last image": "Skip, to last image"
|
"Skip to last image": "Skip, to last image"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user