Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

flush

jerrydc913e219068
diff --git a/packages/base-sheets/src/SheetPlugin.ts b/packages/base-sheets/src/SheetPlugin.ts
index 50d218aaa9..c448314639 100644
--- a/packages/base-sheets/src/SheetPlugin.ts
+++ b/packages/base-sheets/src/SheetPlugin.ts
@@ -103,7 +103,6 @@ export class SheetPlugin extends Plugin<SheetPluginObserve, SheetContext> {
// TODO: move to toolbarcontroller
this._countBarController.listenEventManager();
this._sheetBarControl.listenEventManager();
- this._sheetBarControl.listenEventManager();
this._toolbarControl.listenEventManager();
this._rightMenuControl.listenEventManager();
}
diff --git a/packages/ui-plugin-sheets/src/Controller/SheetBarUIContruller.ts b/packages/ui-plugin-sheets/src/Controller/SheetBarUIContruller.ts
index 6c76e34898..a95dca7d59 100644
--- a/packages/ui-plugin-sheets/src/Controller/SheetBarUIContruller.ts
+++ b/packages/ui-plugin-sheets/src/Controller/SheetBarUIContruller.ts
@@ -200,7 +200,7 @@ export class SheetBarUIController {
};
resetLabel(label: string[] | string) {
- const locale = this._plugin.getContext().getLocale();
+ const locale = this._plugin.getGlobalContext().getLocale();
let str = '';