@huanlin/dsh-plugin-aigc-canvas 0.1.5 → 0.1.6
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/client.js +15 -2
- package/lib/client.js.map +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -3100,8 +3100,21 @@ window.__ModuleLoader__.load({
|
|
|
3100
3100
|
zh,
|
|
3101
3101
|
en
|
|
3102
3102
|
}), "dsh-aigc-canvas: dictionaries");
|
|
3103
|
-
|
|
3104
|
-
|
|
3103
|
+
ctx.effect(() => {
|
|
3104
|
+
let dispose;
|
|
3105
|
+
const sync = () => {
|
|
3106
|
+
dispose?.();
|
|
3107
|
+
dispose = void 0;
|
|
3108
|
+
const store = ctx.get("betterLocale");
|
|
3109
|
+
if (store !== void 0) dispose = store.register(NS, dicts);
|
|
3110
|
+
};
|
|
3111
|
+
sync();
|
|
3112
|
+
const unsubscribe = ctx.locale.subscribe(sync);
|
|
3113
|
+
return () => {
|
|
3114
|
+
unsubscribe();
|
|
3115
|
+
dispose?.();
|
|
3116
|
+
};
|
|
3117
|
+
}, "dsh-aigc-canvas: better-locale override dicts");
|
|
3105
3118
|
const t = ctx.locale.bind(NS);
|
|
3106
3119
|
const betterSidebar = ctx.get("betterSidebar");
|
|
3107
3120
|
if (betterSidebar !== void 0) ctx.effect(() => betterSidebar.registerTab({
|