Comparing version 3.0.0 to 3.0.1
@@ -8,3 +8,3 @@ "use strict"; | ||
if (isNaN(timestamp)) { | ||
return i18n_1._("timer", "time_empty"); | ||
return i18n_1._("timer", "empty"); | ||
} | ||
@@ -11,0 +11,0 @@ const category = short ? "timer" : "datetime"; |
@@ -31,3 +31,3 @@ "use strict"; | ||
let result = key; | ||
if (this.strings[locale] && this.strings[locale][category]) { | ||
if (this.strings[locale] && this.strings[locale][category] && this.strings[locale][category][key]) { | ||
result = this.strings[locale][category][key]; | ||
@@ -34,0 +34,0 @@ } |
{ | ||
"name": "onix-core", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Onix library core", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -7,3 +7,3 @@ import padStart from 'lodash-es/padStart'; | ||
if (isNaN(timestamp)) { | ||
return _("timer", "time_empty"); | ||
return _("timer", "empty"); | ||
} | ||
@@ -10,0 +10,0 @@ |
@@ -42,3 +42,3 @@ import { IntlMessageFormat } from 'intl-messageformat'; | ||
let result: string = key; | ||
if (this.strings[locale] && this.strings[locale][category]) { | ||
if (this.strings[locale] && this.strings[locale][category] && this.strings[locale][category][key]) { | ||
result = <string>this.strings[locale][category][key]; | ||
@@ -45,0 +45,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113921