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

This commit is contained in:
Erik Ziegler committed 2019-06-30 23:10:43 +02:00
1 parent d2c773196f
commit e2ec11c83e
2 files changed
+3 -4

No files matched your search

+1 -1
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",
+2 -3
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;