@ohif-i18n 0.2.2: Expose the promise tracking i18next initialization

This commit is contained in:
Erik Ziegler 2019-06-30 22:42:27 +02:00
parent d2c773196f
commit e2ec11c83e
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ohif/i18n",
"version": "0.2.1",
"version": "0.2.2",
"description": "OHIF extension for internationalization",
"author": "OHIF",
"license": "MIT",

View File

@ -125,7 +125,7 @@ function initI18n(
});
}
initialized.then(function(t) {
return initialized.then(function(t) {
i18n.T = t;
customDebug(`T function available.`, 'info');
});
@ -133,8 +133,7 @@ function initI18n(
customDebug(`version ${pkg.version} loaded.`, 'info');
initI18n();
i18n.initializing = initI18n();
i18n.initI18n = initI18n;
i18n.addLocales = addLocales;