@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.
- package/lib/localize.js +5 -1
- 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
|
-
|
|
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