i18n-format
Advanced tools
Comparing version 4.0.0-pre.9 to 4.0.0-pre.10
@@ -222,3 +222,3 @@ /** | ||
*/ | ||
Promise.resolve().then(() => this.lang = this.DEFAULT_LANG); | ||
//this.lang = this.DEFAULT_LANG; // Assignment of the default value is put off until connectedCallback | ||
/** | ||
@@ -285,2 +285,5 @@ * The current preprocessed template text | ||
connectedCallback() { | ||
if (!this.lang || this.lang.match(/^{{.*}}$/) || this.lang.match(/^\[\[.*\]\]$/)) { | ||
this.lang = this.DEFAULT_LANG; | ||
} | ||
if (!this.observer) { | ||
@@ -287,0 +290,0 @@ this._setupParams(); |
@@ -21,3 +21,3 @@ { | ||
"name": "i18n-format", | ||
"version": "4.0.0-pre.9", | ||
"version": "4.0.0-pre.10", | ||
"main": "i18n-format.js", | ||
@@ -24,0 +24,0 @@ "directories": { |
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
106044
1398