Exports provider and HOC to be used by any application without install I18Next libraries
This commit is contained in:
1 parent
236a115112
commit
9fd39dbf84
3 files changed
+12
-20
No files matched your search
@@ -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;
|
||||
@@ -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"
|
||||
}
|
||||
Reference in new issue
Block a user