@brightspace-ui/core 2.55.1 → 2.55.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.
- package/mixins/localize-mixin.js +2 -2
- package/package.json +1 -1
package/mixins/localize-mixin.js
CHANGED
|
@@ -146,10 +146,10 @@ export const LocalizeMixin = dedupeMixin(superclass => class extends superclass
|
|
|
146
146
|
const superCtor = Object.getPrototypeOf(this);
|
|
147
147
|
// get imported terms for each config, head up the chain to get them all
|
|
148
148
|
if ('_getAllLocalizeResources' in superCtor) {
|
|
149
|
-
const superConfig = Object.
|
|
149
|
+
const superConfig = Object.prototype.hasOwnProperty.call(superCtor, 'localizeConfig') && superCtor.localizeConfig.importFunc ? superCtor.localizeConfig : config;
|
|
150
150
|
resourcesLoadedPromises = superCtor._getAllLocalizeResources(superConfig);
|
|
151
151
|
}
|
|
152
|
-
if (Object.
|
|
152
|
+
if (Object.prototype.hasOwnProperty.call(this, 'getLocalizeResources') || Object.prototype.hasOwnProperty.call(this, 'resources')) {
|
|
153
153
|
const possibleLanguages = this._generatePossibleLanguages(config);
|
|
154
154
|
const res = this.getLocalizeResources(possibleLanguages, config);
|
|
155
155
|
resourcesLoadedPromises.push(res);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.55.
|
|
3
|
+
"version": "2.55.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",
|