@max-null/dsh-plugin-center 0.1.2 → 0.1.3
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/client.js +2 -1
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -799,7 +799,8 @@ function apply(ctx) {
|
|
|
799
799
|
if (result.ok) return result.value;
|
|
800
800
|
throw new Error(result.error?.message ?? `plugin-center: ${endpoint} failed`);
|
|
801
801
|
};
|
|
802
|
-
const
|
|
802
|
+
const locale = ctx.get?.("locale");
|
|
803
|
+
const initial = locale?.getLocale?.()?.active;
|
|
803
804
|
if (typeof initial === "string") adoptLocale(initial);
|
|
804
805
|
ctx.on?.("locale/change", (snap) => {
|
|
805
806
|
adoptLocale(snap?.active);
|
package/package.json
CHANGED