@itwin/core-i18n
Advanced tools
Comparing version 5.0.0-dev.56 to 5.0.0-dev.57
@@ -24,4 +24,8 @@ "use strict"; | ||
class ITwinLocalization { | ||
i18next; | ||
_initOptions; | ||
_backendOptions; | ||
_detectionOptions; | ||
_namespaces = new Map(); | ||
constructor(options) { | ||
this._namespaces = new Map(); | ||
this.i18next = i18next_1.default.createInstance(); | ||
@@ -218,3 +222,3 @@ this._backendOptions = { | ||
class TranslationLogger { | ||
static { this.type = "logger"; } | ||
static type = "logger"; | ||
log(args) { core_bentley_1.Logger.logInfo("i18n", this.createLogMessage(args)); } | ||
@@ -221,0 +225,0 @@ warn(args) { core_bentley_1.Logger.logWarning("i18n", this.createLogMessage(args)); } |
@@ -18,4 +18,8 @@ /*--------------------------------------------------------------------------------------------- | ||
export class ITwinLocalization { | ||
i18next; | ||
_initOptions; | ||
_backendOptions; | ||
_detectionOptions; | ||
_namespaces = new Map(); | ||
constructor(options) { | ||
this._namespaces = new Map(); | ||
this.i18next = i18next.createInstance(); | ||
@@ -211,3 +215,3 @@ this._backendOptions = { | ||
class TranslationLogger { | ||
static { this.type = "logger"; } | ||
static type = "logger"; | ||
log(args) { Logger.logInfo("i18n", this.createLogMessage(args)); } | ||
@@ -214,0 +218,0 @@ warn(args) { Logger.logWarning("i18n", this.createLogMessage(args)); } |
{ | ||
"name": "@itwin/core-i18n", | ||
"version": "5.0.0-dev.56", | ||
"version": "5.0.0-dev.57", | ||
"description": "iTwin.js localization code", | ||
@@ -24,3 +24,3 @@ "main": "lib/cjs/core-i18n.js", | ||
"peerDependencies": { | ||
"@itwin/core-bentley": "5.0.0-dev.56" | ||
"@itwin/core-bentley": "5.0.0-dev.57" | ||
}, | ||
@@ -48,6 +48,6 @@ "//devDependencies": [ | ||
"webpack-cli": "^5.0.1", | ||
"@itwin/build-tools": "5.0.0-dev.56", | ||
"@itwin/certa": "5.0.0-dev.56", | ||
"@itwin/core-bentley": "5.0.0-dev.56", | ||
"@itwin/core-common": "5.0.0-dev.56" | ||
"@itwin/build-tools": "5.0.0-dev.57", | ||
"@itwin/core-bentley": "5.0.0-dev.57", | ||
"@itwin/certa": "5.0.0-dev.57", | ||
"@itwin/core-common": "5.0.0-dev.57" | ||
}, | ||
@@ -54,0 +54,0 @@ "//dependencies": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3235178
49034