@brightspace-ui/intl 3.21.0 → 3.21.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/localize.js +5 -1
  2. package/package.json +1 -1
package/lib/localize.js CHANGED
@@ -205,7 +205,11 @@ export const getLocalizeClass = (superclass = class {}) => class LocalizeClass e
205
205
  }
206
206
 
207
207
  _hasResources() {
208
- return this.constructor.localizeConfig ? Boolean(this.constructor.localizeConfig.importFunc) : this.constructor.getLocalizeResources !== undefined;
208
+ if (this.constructor.localizeConfig) {
209
+ return this.constructor.localizeConfig !== undefined ||
210
+ this.constructor.localizeConfig.loadCommon === true;
211
+ }
212
+ return this.constructor.getLocalizeResources !== undefined;
209
213
  }
210
214
 
211
215
  async #localeChangeHandler() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/intl",
3
- "version": "3.21.0",
3
+ "version": "3.21.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
  "type": "module",