@brightspace-ui/core 2.20.0 → 2.21.2

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.
@@ -35,11 +35,10 @@ export const LocalizeMixin = dedupeMixin(superclass => class extends superclass
35
35
  }
36
36
  }
37
37
  this.__resources = resources;
38
+ this._onResourcesChange();
38
39
  if (first) {
39
40
  resolve();
40
41
  first = false;
41
- } else {
42
- this._languageChange();
43
42
  }
44
43
  });
45
44
  };
@@ -183,11 +182,9 @@ export const LocalizeMixin = dedupeMixin(superclass => class extends superclass
183
182
  return this.constructor['getLocalizeResources'] !== undefined;
184
183
  }
185
184
 
186
- _languageChange() {
185
+ _onResourcesChange() {
187
186
  /** @ignore */
188
- this.dispatchEvent(new CustomEvent(
189
- 'd2l-localize-behavior-language-changed', { bubbles: true, composed: true }
190
- ));
187
+ this.dispatchEvent(new CustomEvent('d2l-localize-resources-change'));
191
188
  }
192
189
 
193
190
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.20.0",
3
+ "version": "2.21.2",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",