diff --git a/extensions/ohif-i18n/src/index.js b/extensions/ohif-i18n/src/index.js index 2a4a477a7..1a14356df 100755 --- a/extensions/ohif-i18n/src/index.js +++ b/extensions/ohif-i18n/src/index.js @@ -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; diff --git a/extensions/ohif-i18n/src/locales/en/CineDialog.json b/extensions/ohif-i18n/src/locales/en/CineDialog.json index f7a07113f..ebd909e73 100644 --- a/extensions/ohif-i18n/src/locales/en/CineDialog.json +++ b/extensions/ohif-i18n/src/locales/en/CineDialog.json @@ -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" }