@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.
- package/components/calendar/calendar.js +1 -1
- package/components/inputs/input-date.js +1 -1
- package/components/inputs/input-number.js +1 -1
- package/components/inputs/input-textarea.js +1 -0
- package/components/inputs/input-time.js +1 -1
- package/lang/ar.js +16 -16
- package/lang/cy.js +12 -12
- package/lang/da.js +14 -14
- package/lang/de.js +15 -15
- package/lang/es-es.js +16 -16
- package/lang/es.js +13 -13
- package/lang/fr-fr.js +14 -14
- package/lang/fr.js +16 -16
- package/lang/hi.js +15 -15
- package/lang/ja.js +16 -16
- package/lang/ko.js +16 -16
- package/lang/nl.js +15 -15
- package/lang/pt.js +15 -15
- package/lang/sv.js +16 -16
- package/lang/tr.js +16 -16
- package/lang/zh-cn.js +14 -14
- package/lang/zh-tw.js +14 -14
- package/mixins/localize-mixin.js +3 -6
- package/package.json +1 -1
package/mixins/localize-mixin.js
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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",
|