@univerjs/sheets-thread-comment-ui 0.23.0 → 0.24.0-insiders.20260527-b1d726f

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.
Files changed (90) hide show
  1. package/lib/cjs/index.js +13 -13
  2. package/lib/cjs/locale/ar-SA.js +9 -0
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +9 -0
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +9 -0
  10. package/lib/cjs/locale/it-IT.js +9 -0
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +9 -0
  14. package/lib/cjs/locale/pt-BR.js +9 -0
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +9 -0
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +13 -13
  22. package/lib/es/locale/ar-SA.js +8 -0
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +8 -0
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +8 -0
  30. package/lib/es/locale/it-IT.js +8 -0
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +8 -0
  34. package/lib/es/locale/pt-BR.js +8 -0
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +8 -0
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +13 -13
  42. package/lib/locale/ar-SA.js +8 -0
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +8 -0
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +8 -0
  50. package/lib/locale/it-IT.js +8 -0
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +8 -0
  54. package/lib/locale/pt-BR.js +8 -0
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +8 -0
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/locale/ar-SA.d.ts +18 -0
  62. package/lib/types/locale/de-DE.d.ts +18 -0
  63. package/lib/types/locale/en-US.d.ts +1 -1
  64. package/lib/types/locale/id-ID.d.ts +18 -0
  65. package/lib/types/locale/it-IT.d.ts +18 -0
  66. package/lib/types/locale/pl-PL.d.ts +18 -0
  67. package/lib/types/locale/pt-BR.d.ts +18 -0
  68. package/lib/types/locale/zh-HK.d.ts +18 -0
  69. package/lib/umd/index.js +1 -1
  70. package/lib/umd/locale/ar-SA.js +1 -0
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -0
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -0
  78. package/lib/umd/locale/it-IT.js +1 -0
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -0
  82. package/lib/umd/locale/pt-BR.js +1 -0
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -0
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +12 -12
  90. package/LICENSE +0 -176
package/lib/cjs/index.js CHANGED
@@ -224,7 +224,7 @@ const ToggleSheetCommentPanelOperation = {
224
224
  panelService.setPanelVisible(false);
225
225
  } else {
226
226
  sidebarService.open({
227
- header: { title: "threadCommentUI.panel.title" },
227
+ header: { title: "sheets-thread-comment-ui.panel.title" },
228
228
  children: { label: SHEETS_THREAD_COMMENT_PANEL },
229
229
  width: 360
230
230
  });
@@ -237,7 +237,7 @@ const ToggleSheetCommentPanelOperation = {
237
237
  //#endregion
238
238
  //#region package.json
239
239
  var name = "@univerjs/sheets-thread-comment-ui";
240
- var version = "0.23.0";
240
+ var version = "0.24.0-insiders.20260527-b1d726f";
241
241
 
242
242
  //#endregion
243
243
  //#region src/config/config.ts
@@ -281,7 +281,7 @@ let SheetsThreadCommentRenderController = class SheetsThreadCommentRenderControl
281
281
  _initSkeletonChange() {
282
282
  const markSkeletonDirty = () => {
283
283
  var _currentRender$mainCo;
284
- const workbook = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
284
+ const workbook = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
285
285
  if (!workbook) return;
286
286
  const unitId = workbook.getUnitId();
287
287
  const currentRender = this._renderManagerService.getRenderById(unitId);
@@ -505,7 +505,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
505
505
  if (!this._sheetPermissionCheckController.permissionCheckWithoutRange({
506
506
  workbookTypes: [_univerjs_sheets.WorkbookCommentPermission],
507
507
  worksheetTypes: [_univerjs_sheets.WorksheetViewPermission]
508
- })) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.commentErr"));
508
+ })) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
509
509
  } else if (id === _univerjs_thread_comment.AddCommentCommand.id) {
510
510
  const { unitId, subUnitId, comment } = command.params;
511
511
  const { row, column } = (0, _univerjs_engine_formula.singleReferenceToGrid)(comment.ref);
@@ -518,7 +518,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
518
518
  startColumn: column,
519
519
  endRow: row,
520
520
  endColumn: column
521
- }], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.commentErr"));
521
+ }], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
522
522
  } else if (id === _univerjs_thread_comment.UpdateCommentCommand.id) {
523
523
  const { unitId, subUnitId, payload } = command.params;
524
524
  const { commentId } = payload;
@@ -534,7 +534,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
534
534
  startColumn: column,
535
535
  endRow: row,
536
536
  endColumn: column
537
- }], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.commentErr"));
537
+ }], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
538
538
  }
539
539
  } else if (id === _univerjs_thread_comment.ResolveCommentCommand.id || id === _univerjs_thread_comment.DeleteCommentCommand.id || id === _univerjs_thread_comment.DeleteCommentTreeCommand.id) {
540
540
  const { unitId, subUnitId, commentId } = command.params;
@@ -550,7 +550,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
550
550
  startColumn: column,
551
551
  endRow: row,
552
552
  endColumn: column
553
- }], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.commentErr"));
553
+ }], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
554
554
  }
555
555
  }
556
556
  }));
@@ -642,7 +642,7 @@ let SheetsThreadCommentPopupController = class SheetsThreadCommentPopupControlle
642
642
  const { unitId, subUnitId, commentId, trigger } = commentInfo;
643
643
  const comment = this._sheetsThreadCommentModel.getComment(unitId, subUnitId, commentId);
644
644
  if (!comment || comment.resolved) return;
645
- const currentUnit = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
645
+ const currentUnit = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
646
646
  if (!currentUnit) return;
647
647
  if (currentUnit.getUnitId() !== unitId) return;
648
648
  this._isSwitchToCommenting = true;
@@ -701,7 +701,7 @@ let SheetsThreadCommentPopupController = class SheetsThreadCommentPopupControlle
701
701
  if (!comment) return;
702
702
  const { row, column } = (0, _univerjs_engine_formula.singleReferenceToGrid)(comment.ref);
703
703
  if (Number.isNaN(row) || Number.isNaN(column)) return null;
704
- const worksheet = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getSheetBySheetId(subUnitId);
704
+ const worksheet = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getSheetBySheetId(subUnitId);
705
705
  const mergeInfo = (_worksheet$getMergedC = worksheet === null || worksheet === void 0 ? void 0 : worksheet.getMergedCell(row, column)) !== null && _worksheet$getMergedC !== void 0 ? _worksheet$getMergedC : {
706
706
  startColumn: column,
707
707
  endColumn: column,
@@ -746,7 +746,7 @@ const threadCommentMenuFactory = (accessor) => {
746
746
  id: ShowAddSheetCommentModalOperation.id,
747
747
  type: _univerjs_ui.MenuItemType.BUTTON,
748
748
  icon: "CommentIcon",
749
- title: "sheetThreadComment.menu.addComment",
749
+ title: "sheets-thread-comment-ui.menu.addComment",
750
750
  hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
751
751
  disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
752
752
  workbookTypes: [_univerjs_sheets.WorkbookCommentPermission],
@@ -760,7 +760,7 @@ const threadPanelMenuFactory = (accessor) => {
760
760
  id: ToggleSheetCommentPanelOperation.id,
761
761
  type: _univerjs_ui.MenuItemType.BUTTON,
762
762
  icon: "CommentIcon",
763
- tooltip: "sheetThreadComment.menu.commentManagement",
763
+ tooltip: "sheets-thread-comment-ui.menu.commentManagement",
764
764
  disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
765
765
  workbookTypes: [_univerjs_sheets.WorkbookCommentPermission],
766
766
  worksheetTypes: [_univerjs_sheets.WorksheetViewPermission],
@@ -805,7 +805,7 @@ const SheetsThreadCommentCell = () => {
805
805
  };
806
806
  const getSubUnitName = (id) => {
807
807
  var _univerInstanceServic, _univerInstanceServic2;
808
- return (_univerInstanceServic = (_univerInstanceServic2 = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic2 === void 0 || (_univerInstanceServic2 = _univerInstanceServic2.getSheetBySheetId(id)) === null || _univerInstanceServic2 === void 0 ? void 0 : _univerInstanceServic2.getName()) !== null && _univerInstanceServic !== void 0 ? _univerInstanceServic : "";
808
+ return (_univerInstanceServic = (_univerInstanceServic2 = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic2 === void 0 || (_univerInstanceServic2 = _univerInstanceServic2.getSheetBySheetId(id)) === null || _univerInstanceServic2 === void 0 ? void 0 : _univerInstanceServic2.getName()) !== null && _univerInstanceServic !== void 0 ? _univerInstanceServic : "";
809
809
  };
810
810
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_thread_comment_ui.ThreadCommentTree, {
811
811
  onClick: () => {
@@ -830,7 +830,7 @@ const SheetsThreadCommentPanel = () => {
830
830
  const markSelectionService = (0, _univerjs_ui.useDependency)(_univerjs_sheets_ui.IMarkSelectionService);
831
831
  const univerInstanceService = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService);
832
832
  const sheetsThreadCommentPopupService = (0, _univerjs_ui.useDependency)(SheetsThreadCommentPopupService);
833
- const workbook = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
833
+ const workbook = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
834
834
  const unitId = workbook.getUnitId();
835
835
  const commandService = (0, _univerjs_ui.useDependency)(_univerjs_core.ICommandService);
836
836
  const subUnitId$ = (0, react.useMemo)(() => workbook.activeSheet$.pipe((0, rxjs.map)((i) => i === null || i === void 0 ? void 0 : i.getSheetId())), [workbook.activeSheet$]);
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/ar-SA.ts
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
+ addComment: "إضافة تعليق",
5
+ commentManagement: "إدارة التعليقات"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/ca-ES.ts
3
- const locale = { sheetThreadComment: { menu: {
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
4
  addComment: "Afegeix un comentari",
5
5
  commentManagement: "Gestió de comentaris"
6
6
  } } };
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/de-DE.ts
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
+ addComment: "Kommentar hinzufügen",
5
+ commentManagement: "Kommentarverwaltung"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -15,7 +15,7 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- const locale = { sheetThreadComment: { menu: {
18
+ const locale = { "sheets-thread-comment-ui": { menu: {
19
19
  addComment: "Add Comment",
20
20
  commentManagement: "Comment Management"
21
21
  } } };
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/es-ES.ts
3
- const locale = { sheetThreadComment: { menu: {
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
4
  addComment: "Añadir comentario",
5
5
  commentManagement: "Gestión de comentarios"
6
6
  } } };
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/fa-IR.ts
3
- const locale = { sheetThreadComment: { menu: {
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
4
  addComment: "افزودن نظر",
5
5
  commentManagement: "مدیریت نظر"
6
6
  } } };
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/fr-FR.ts
3
- const locale = { sheetThreadComment: { menu: {
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
4
  addComment: "Ajouter un commentaire",
5
5
  commentManagement: "Gestion des commentaires"
6
6
  } } };
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/id-ID.ts
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
+ addComment: "Tambah Komentar",
5
+ commentManagement: "Manajemen Komentar"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/it-IT.ts
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
+ addComment: "Aggiungi commento",
5
+ commentManagement: "Gestione commenti"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/ja-JP.ts
3
- const locale = { sheetThreadComment: { menu: {
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
4
  addComment: "コメントを追加",
5
5
  commentManagement: "コメント管理"
6
6
  } } };
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/ko-KR.ts
3
- const locale = { sheetThreadComment: { menu: {
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
4
  addComment: "댓글 추가",
5
5
  commentManagement: "댓글 관리"
6
6
  } } };
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/pl-PL.ts
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
+ addComment: "Dodaj komentarz",
5
+ commentManagement: "Zarządzanie komentarzami"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/pt-BR.ts
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
+ addComment: "Adicionar Comentário",
5
+ commentManagement: "Gerenciamento de Comentários"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/ru-RU.ts
3
- const locale = { sheetThreadComment: { menu: {
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
4
  addComment: "Добавить комментарий",
5
5
  commentManagement: "Управление комментариями"
6
6
  } } };
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/sk-SK.ts
3
- const locale = { sheetThreadComment: { menu: {
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
4
  addComment: "Pridať komentár",
5
5
  commentManagement: "Správa komentárov"
6
6
  } } };
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/vi-VN.ts
3
- const locale = { sheetThreadComment: { menu: {
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
4
  addComment: "Thêm bình luận",
5
5
  commentManagement: "Quản lý bình luận"
6
6
  } } };
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/zh-CN.ts
3
- const locale = { sheetThreadComment: { menu: {
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
4
  addComment: "添加评论",
5
5
  commentManagement: "评论管理"
6
6
  } } };
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/zh-HK.ts
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
+ addComment: "新增評論",
5
+ commentManagement: "評論管理"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/zh-TW.ts
3
- const locale = { sheetThreadComment: { menu: {
3
+ const locale = { "sheets-thread-comment-ui": { menu: {
4
4
  addComment: "新增評論",
5
5
  commentManagement: "評論管理"
6
6
  } } };
package/lib/es/index.js CHANGED
@@ -223,7 +223,7 @@ const ToggleSheetCommentPanelOperation = {
223
223
  panelService.setPanelVisible(false);
224
224
  } else {
225
225
  sidebarService.open({
226
- header: { title: "threadCommentUI.panel.title" },
226
+ header: { title: "sheets-thread-comment-ui.panel.title" },
227
227
  children: { label: SHEETS_THREAD_COMMENT_PANEL },
228
228
  width: 360
229
229
  });
@@ -236,7 +236,7 @@ const ToggleSheetCommentPanelOperation = {
236
236
  //#endregion
237
237
  //#region package.json
238
238
  var name = "@univerjs/sheets-thread-comment-ui";
239
- var version = "0.23.0";
239
+ var version = "0.24.0-insiders.20260527-b1d726f";
240
240
 
241
241
  //#endregion
242
242
  //#region src/config/config.ts
@@ -280,7 +280,7 @@ let SheetsThreadCommentRenderController = class SheetsThreadCommentRenderControl
280
280
  _initSkeletonChange() {
281
281
  const markSkeletonDirty = () => {
282
282
  var _currentRender$mainCo;
283
- const workbook = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET);
283
+ const workbook = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET);
284
284
  if (!workbook) return;
285
285
  const unitId = workbook.getUnitId();
286
286
  const currentRender = this._renderManagerService.getRenderById(unitId);
@@ -504,7 +504,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
504
504
  if (!this._sheetPermissionCheckController.permissionCheckWithoutRange({
505
505
  workbookTypes: [WorkbookCommentPermission],
506
506
  worksheetTypes: [WorksheetViewPermission]
507
- })) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.commentErr"));
507
+ })) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
508
508
  } else if (id === AddCommentCommand$1.id) {
509
509
  const { unitId, subUnitId, comment } = command.params;
510
510
  const { row, column } = singleReferenceToGrid(comment.ref);
@@ -517,7 +517,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
517
517
  startColumn: column,
518
518
  endRow: row,
519
519
  endColumn: column
520
- }], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.commentErr"));
520
+ }], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
521
521
  } else if (id === UpdateCommentCommand$1.id) {
522
522
  const { unitId, subUnitId, payload } = command.params;
523
523
  const { commentId } = payload;
@@ -533,7 +533,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
533
533
  startColumn: column,
534
534
  endRow: row,
535
535
  endColumn: column
536
- }], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.commentErr"));
536
+ }], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
537
537
  }
538
538
  } else if (id === ResolveCommentCommand$1.id || id === DeleteCommentCommand$1.id || id === DeleteCommentTreeCommand$1.id) {
539
539
  const { unitId, subUnitId, commentId } = command.params;
@@ -549,7 +549,7 @@ let SheetsThreadCommentPermissionController = class SheetsThreadCommentPermissio
549
549
  startColumn: column,
550
550
  endRow: row,
551
551
  endColumn: column
552
- }], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.commentErr"));
552
+ }], unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-thread-comment-ui.permission.commentErr"));
553
553
  }
554
554
  }
555
555
  }));
@@ -641,7 +641,7 @@ let SheetsThreadCommentPopupController = class SheetsThreadCommentPopupControlle
641
641
  const { unitId, subUnitId, commentId, trigger } = commentInfo;
642
642
  const comment = this._sheetsThreadCommentModel.getComment(unitId, subUnitId, commentId);
643
643
  if (!comment || comment.resolved) return;
644
- const currentUnit = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET);
644
+ const currentUnit = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET);
645
645
  if (!currentUnit) return;
646
646
  if (currentUnit.getUnitId() !== unitId) return;
647
647
  this._isSwitchToCommenting = true;
@@ -700,7 +700,7 @@ let SheetsThreadCommentPopupController = class SheetsThreadCommentPopupControlle
700
700
  if (!comment) return;
701
701
  const { row, column } = singleReferenceToGrid(comment.ref);
702
702
  if (Number.isNaN(row) || Number.isNaN(column)) return null;
703
- const worksheet = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getSheetBySheetId(subUnitId);
703
+ const worksheet = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getSheetBySheetId(subUnitId);
704
704
  const mergeInfo = (_worksheet$getMergedC = worksheet === null || worksheet === void 0 ? void 0 : worksheet.getMergedCell(row, column)) !== null && _worksheet$getMergedC !== void 0 ? _worksheet$getMergedC : {
705
705
  startColumn: column,
706
706
  endColumn: column,
@@ -745,7 +745,7 @@ const threadCommentMenuFactory = (accessor) => {
745
745
  id: ShowAddSheetCommentModalOperation.id,
746
746
  type: MenuItemType.BUTTON,
747
747
  icon: "CommentIcon",
748
- title: "sheetThreadComment.menu.addComment",
748
+ title: "sheets-thread-comment-ui.menu.addComment",
749
749
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
750
750
  disabled$: getCurrentRangeDisable$(accessor, {
751
751
  workbookTypes: [WorkbookCommentPermission],
@@ -759,7 +759,7 @@ const threadPanelMenuFactory = (accessor) => {
759
759
  id: ToggleSheetCommentPanelOperation.id,
760
760
  type: MenuItemType.BUTTON,
761
761
  icon: "CommentIcon",
762
- tooltip: "sheetThreadComment.menu.commentManagement",
762
+ tooltip: "sheets-thread-comment-ui.menu.commentManagement",
763
763
  disabled$: getCurrentRangeDisable$(accessor, {
764
764
  workbookTypes: [WorkbookCommentPermission],
765
765
  worksheetTypes: [WorksheetViewPermission],
@@ -804,7 +804,7 @@ const SheetsThreadCommentCell = () => {
804
804
  };
805
805
  const getSubUnitName = (id) => {
806
806
  var _univerInstanceServic, _univerInstanceServic2;
807
- return (_univerInstanceServic = (_univerInstanceServic2 = univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic2 === void 0 || (_univerInstanceServic2 = _univerInstanceServic2.getSheetBySheetId(id)) === null || _univerInstanceServic2 === void 0 ? void 0 : _univerInstanceServic2.getName()) !== null && _univerInstanceServic !== void 0 ? _univerInstanceServic : "";
807
+ return (_univerInstanceServic = (_univerInstanceServic2 = univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic2 === void 0 || (_univerInstanceServic2 = _univerInstanceServic2.getSheetBySheetId(id)) === null || _univerInstanceServic2 === void 0 ? void 0 : _univerInstanceServic2.getName()) !== null && _univerInstanceServic !== void 0 ? _univerInstanceServic : "";
808
808
  };
809
809
  return /* @__PURE__ */ jsx(ThreadCommentTree, {
810
810
  onClick: () => {
@@ -829,7 +829,7 @@ const SheetsThreadCommentPanel = () => {
829
829
  const markSelectionService = useDependency(IMarkSelectionService);
830
830
  const univerInstanceService = useDependency(IUniverInstanceService);
831
831
  const sheetsThreadCommentPopupService = useDependency(SheetsThreadCommentPopupService);
832
- const workbook = univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET);
832
+ const workbook = univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET);
833
833
  const unitId = workbook.getUnitId();
834
834
  const commandService = useDependency(ICommandService);
835
835
  const subUnitId$ = useMemo(() => workbook.activeSheet$.pipe(map((i) => i === null || i === void 0 ? void 0 : i.getSheetId())), [workbook.activeSheet$]);
@@ -0,0 +1,8 @@
1
+ //#region src/locale/ar-SA.ts
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
+ addComment: "إضافة تعليق",
4
+ commentManagement: "إدارة التعليقات"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/ca-ES.ts
2
- const locale = { sheetThreadComment: { menu: {
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
3
  addComment: "Afegeix un comentari",
4
4
  commentManagement: "Gestió de comentaris"
5
5
  } } };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/de-DE.ts
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
+ addComment: "Kommentar hinzufügen",
4
+ commentManagement: "Kommentarverwaltung"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -14,7 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- const locale = { sheetThreadComment: { menu: {
17
+ const locale = { "sheets-thread-comment-ui": { menu: {
18
18
  addComment: "Add Comment",
19
19
  commentManagement: "Comment Management"
20
20
  } } };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/es-ES.ts
2
- const locale = { sheetThreadComment: { menu: {
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
3
  addComment: "Añadir comentario",
4
4
  commentManagement: "Gestión de comentarios"
5
5
  } } };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/fa-IR.ts
2
- const locale = { sheetThreadComment: { menu: {
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
3
  addComment: "افزودن نظر",
4
4
  commentManagement: "مدیریت نظر"
5
5
  } } };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/fr-FR.ts
2
- const locale = { sheetThreadComment: { menu: {
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
3
  addComment: "Ajouter un commentaire",
4
4
  commentManagement: "Gestion des commentaires"
5
5
  } } };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/id-ID.ts
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
+ addComment: "Tambah Komentar",
4
+ commentManagement: "Manajemen Komentar"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/it-IT.ts
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
+ addComment: "Aggiungi commento",
4
+ commentManagement: "Gestione commenti"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/ja-JP.ts
2
- const locale = { sheetThreadComment: { menu: {
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
3
  addComment: "コメントを追加",
4
4
  commentManagement: "コメント管理"
5
5
  } } };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/ko-KR.ts
2
- const locale = { sheetThreadComment: { menu: {
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
3
  addComment: "댓글 추가",
4
4
  commentManagement: "댓글 관리"
5
5
  } } };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/pl-PL.ts
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
+ addComment: "Dodaj komentarz",
4
+ commentManagement: "Zarządzanie komentarzami"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/pt-BR.ts
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
+ addComment: "Adicionar Comentário",
4
+ commentManagement: "Gerenciamento de Comentários"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/ru-RU.ts
2
- const locale = { sheetThreadComment: { menu: {
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
3
  addComment: "Добавить комментарий",
4
4
  commentManagement: "Управление комментариями"
5
5
  } } };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/sk-SK.ts
2
- const locale = { sheetThreadComment: { menu: {
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
3
  addComment: "Pridať komentár",
4
4
  commentManagement: "Správa komentárov"
5
5
  } } };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/vi-VN.ts
2
- const locale = { sheetThreadComment: { menu: {
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
3
  addComment: "Thêm bình luận",
4
4
  commentManagement: "Quản lý bình luận"
5
5
  } } };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/zh-CN.ts
2
- const locale = { sheetThreadComment: { menu: {
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
3
  addComment: "添加评论",
4
4
  commentManagement: "评论管理"
5
5
  } } };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/zh-HK.ts
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
+ addComment: "新增評論",
4
+ commentManagement: "評論管理"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/zh-TW.ts
2
- const locale = { sheetThreadComment: { menu: {
2
+ const locale = { "sheets-thread-comment-ui": { menu: {
3
3
  addComment: "新增評論",
4
4
  commentManagement: "評論管理"
5
5
  } } };