@brightspace-ui/intl 3.9.0 → 3.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/common.js +2 -1
  2. package/package.json +1 -1
package/lib/common.js CHANGED
@@ -93,6 +93,7 @@ class DocumentLocaleSettings {
93
93
  this._observer = new MutationObserver(this._handleObserverChange.bind(this));
94
94
  this._observer.observe(this._htmlElem, { attributes: true });
95
95
  this.sync();
96
+ this._languageInitial = this._language;
96
97
  }
97
98
 
98
99
  get fallbackLanguage() { return this._fallbackLanguage; }
@@ -136,7 +137,7 @@ class DocumentLocaleSettings {
136
137
  }
137
138
 
138
139
  reset() {
139
- this._language = null;
140
+ this._language = this._languageInitial;
140
141
  this._fallbackLanguage = null;
141
142
  this.overrides = {};
142
143
  this.timezone = { name: '', identifier: '' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/intl",
3
- "version": "3.9.0",
3
+ "version": "3.9.1",
4
4
  "description": "Internationalization APIs for number, date, time and file size formatting and parsing in D2L Brightspace.",
5
5
  "main": "lib/number.js",
6
6
  "scripts": {