Merge branch 'feature/i18n-basics' of github.com:romulobordezani/Viewers into feature/i18n-basics

This commit is contained in:
romulo bordezani 2019-06-06 18:59:17 -03:00
commit dd1a5455d9
2 changed files with 6 additions and 12 deletions

View File

@ -1,5 +1,9 @@
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 debugMode = process.env.I18N_DEBUG || false;
@ -74,5 +78,5 @@ i18n
translate = t;
});
export { translate as t };
export { translate as t, withTranslation, I18nextProvider };
export default i18n;

View File

@ -4,15 +4,5 @@
"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 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"
}