@univerjs/sheets-numfmt-ui 0.24.0 → 0.25.0

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 +65 -65
  2. package/lib/cjs/locale/ar-SA.js +44 -0
  3. package/lib/cjs/locale/ca-ES.js +7 -3
  4. package/lib/cjs/locale/de-DE.js +44 -0
  5. package/lib/cjs/locale/en-US.js +7 -3
  6. package/lib/cjs/locale/es-ES.js +7 -3
  7. package/lib/cjs/locale/fa-IR.js +7 -3
  8. package/lib/cjs/locale/fr-FR.js +7 -3
  9. package/lib/cjs/locale/id-ID.js +44 -0
  10. package/lib/cjs/locale/it-IT.js +44 -0
  11. package/lib/cjs/locale/ja-JP.js +7 -3
  12. package/lib/cjs/locale/ko-KR.js +7 -3
  13. package/lib/cjs/locale/pl-PL.js +44 -0
  14. package/lib/cjs/locale/pt-BR.js +44 -0
  15. package/lib/cjs/locale/ru-RU.js +7 -3
  16. package/lib/cjs/locale/sk-SK.js +7 -3
  17. package/lib/cjs/locale/vi-VN.js +7 -3
  18. package/lib/cjs/locale/zh-CN.js +7 -3
  19. package/lib/cjs/locale/zh-HK.js +44 -0
  20. package/lib/cjs/locale/zh-TW.js +7 -3
  21. package/lib/es/index.js +65 -65
  22. package/lib/es/locale/ar-SA.js +43 -0
  23. package/lib/es/locale/ca-ES.js +7 -3
  24. package/lib/es/locale/de-DE.js +43 -0
  25. package/lib/es/locale/en-US.js +7 -3
  26. package/lib/es/locale/es-ES.js +7 -3
  27. package/lib/es/locale/fa-IR.js +7 -3
  28. package/lib/es/locale/fr-FR.js +7 -3
  29. package/lib/es/locale/id-ID.js +43 -0
  30. package/lib/es/locale/it-IT.js +43 -0
  31. package/lib/es/locale/ja-JP.js +7 -3
  32. package/lib/es/locale/ko-KR.js +7 -3
  33. package/lib/es/locale/pl-PL.js +43 -0
  34. package/lib/es/locale/pt-BR.js +43 -0
  35. package/lib/es/locale/ru-RU.js +7 -3
  36. package/lib/es/locale/sk-SK.js +7 -3
  37. package/lib/es/locale/vi-VN.js +7 -3
  38. package/lib/es/locale/zh-CN.js +7 -3
  39. package/lib/es/locale/zh-HK.js +43 -0
  40. package/lib/es/locale/zh-TW.js +7 -3
  41. package/lib/index.js +65 -65
  42. package/lib/locale/ar-SA.js +43 -0
  43. package/lib/locale/ca-ES.js +7 -3
  44. package/lib/locale/de-DE.js +43 -0
  45. package/lib/locale/en-US.js +7 -3
  46. package/lib/locale/es-ES.js +7 -3
  47. package/lib/locale/fa-IR.js +7 -3
  48. package/lib/locale/fr-FR.js +7 -3
  49. package/lib/locale/id-ID.js +43 -0
  50. package/lib/locale/it-IT.js +43 -0
  51. package/lib/locale/ja-JP.js +7 -3
  52. package/lib/locale/ko-KR.js +7 -3
  53. package/lib/locale/pl-PL.js +43 -0
  54. package/lib/locale/pt-BR.js +43 -0
  55. package/lib/locale/ru-RU.js +7 -3
  56. package/lib/locale/sk-SK.js +7 -3
  57. package/lib/locale/vi-VN.js +7 -3
  58. package/lib/locale/zh-CN.js +7 -3
  59. package/lib/locale/zh-HK.js +43 -0
  60. package/lib/locale/zh-TW.js +7 -3
  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 +37 -35
  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/types/views/components/MoreNumfmtType.d.ts +2 -2
  70. package/lib/umd/index.js +1 -1
  71. package/lib/umd/locale/ar-SA.js +1 -0
  72. package/lib/umd/locale/ca-ES.js +1 -1
  73. package/lib/umd/locale/de-DE.js +1 -0
  74. package/lib/umd/locale/en-US.js +1 -1
  75. package/lib/umd/locale/es-ES.js +1 -1
  76. package/lib/umd/locale/fa-IR.js +1 -1
  77. package/lib/umd/locale/fr-FR.js +1 -1
  78. package/lib/umd/locale/id-ID.js +1 -0
  79. package/lib/umd/locale/it-IT.js +1 -0
  80. package/lib/umd/locale/ja-JP.js +1 -1
  81. package/lib/umd/locale/ko-KR.js +1 -1
  82. package/lib/umd/locale/pl-PL.js +1 -0
  83. package/lib/umd/locale/pt-BR.js +1 -0
  84. package/lib/umd/locale/ru-RU.js +1 -1
  85. package/lib/umd/locale/sk-SK.js +1 -1
  86. package/lib/umd/locale/vi-VN.js +1 -1
  87. package/lib/umd/locale/zh-CN.js +1 -1
  88. package/lib/umd/locale/zh-HK.js +1 -0
  89. package/lib/umd/locale/zh-TW.js +1 -1
  90. package/package.json +12 -12
package/lib/cjs/index.js CHANGED
@@ -15,7 +15,7 @@ let _univerjs_engine_formula = require("@univerjs/engine-formula");
15
15
 
16
16
  //#region package.json
17
17
  var name = "@univerjs/sheets-numfmt-ui";
18
- var version = "0.24.0";
18
+ var version = "0.25.0";
19
19
 
20
20
  //#endregion
21
21
  //#region src/config/config.ts
@@ -24,7 +24,7 @@ const configSymbol = Symbol(SHEETS_NUMFMT_UI_PLUGIN_CONFIG_KEY);
24
24
  const defaultPluginConfig = {};
25
25
 
26
26
  //#endregion
27
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorateParam.js
27
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
28
28
  function __decorateParam(paramIndex, decorator) {
29
29
  return function(target, key) {
30
30
  decorator(target, key, paramIndex);
@@ -32,7 +32,7 @@ function __decorateParam(paramIndex, decorator) {
32
32
  }
33
33
 
34
34
  //#endregion
35
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
35
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
36
36
  function __decorate(decorators, target, key, desc) {
37
37
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38
38
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -90,8 +90,8 @@ let NumfmtAlertRenderController = class NumfmtAlertRenderController extends _uni
90
90
  }
91
91
  this._cellAlertManagerService.showAlert({
92
92
  type: _univerjs_sheets_ui.CellAlertType.ERROR,
93
- title: this._localeService.t("info.error"),
94
- message: this._localeService.t("info.forceStringInfo"),
93
+ title: this._localeService.t("sheets-numfmt-ui.info.error"),
94
+ message: this._localeService.t("sheets-numfmt-ui.info.forceStringInfo"),
95
95
  location,
96
96
  width: 200,
97
97
  height: 74,
@@ -268,10 +268,10 @@ UserHabitController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(
268
268
  const key$1 = "numfmtCurrency";
269
269
  const useCurrencyOptions = (onOptionChange) => {
270
270
  const userHabitController = (0, _univerjs_ui.useDependency)(UserHabitController);
271
- const [options, setOptions] = (0, react.useState)(_univerjs_sheets_numfmt.currencySymbols);
271
+ const [options, setOptions] = (0, react.useState)(_univerjs_core.currencySymbols);
272
272
  (0, react.useEffect)(() => {
273
273
  userHabitController.addHabit("numfmtCurrency", []).then(() => {
274
- userHabitController.getHabit(key$1, [..._univerjs_sheets_numfmt.currencySymbols]).then((list) => {
274
+ userHabitController.getHabit(key$1, [..._univerjs_core.currencySymbols]).then((list) => {
275
275
  setOptions(list);
276
276
  onOptionChange && onOptionChange(list);
277
277
  });
@@ -350,7 +350,7 @@ const AccountingPanel = (props) => {
350
350
  className: "option",
351
351
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
352
352
  className: "univer-text-sm univer-text-gray-400",
353
- children: t("sheet.numfmt.decimalLength")
353
+ children: t("sheets-numfmt-ui.decimalLength")
354
354
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
355
355
  className: "univer-mt-2 univer-w-32",
356
356
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
@@ -366,7 +366,7 @@ const AccountingPanel = (props) => {
366
366
  className: "option",
367
367
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
368
368
  className: "univer-text-sm univer-text-gray-400",
369
- children: t("sheet.numfmt.currencyType")
369
+ children: t("sheets-numfmt-ui.currencyType")
370
370
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
371
371
  className: "univer-mt-2 univer-w-36",
372
372
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
@@ -378,7 +378,7 @@ const AccountingPanel = (props) => {
378
378
  })]
379
379
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
380
380
  className: "univer-mt-4 univer-text-sm univer-text-gray-400",
381
- children: t("sheet.numfmt.accountingDes")
381
+ children: t("sheets-numfmt-ui.accountingDes")
382
382
  })] });
383
383
  };
384
384
 
@@ -426,7 +426,7 @@ const CurrencyPanel = (props) => {
426
426
  className: "option",
427
427
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
428
428
  className: "univer-text-sm univer-text-gray-400",
429
- children: t("sheet.numfmt.decimalLength")
429
+ children: t("sheets-numfmt-ui.decimalLength")
430
430
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
431
431
  className: "univer-mt-2 univer-w-32",
432
432
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
@@ -440,7 +440,7 @@ const CurrencyPanel = (props) => {
440
440
  className: "option",
441
441
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
442
442
  className: "univer-text-sm univer-text-gray-400",
443
- children: t("sheet.numfmt.currencyType")
443
+ children: t("sheets-numfmt-ui.currencyType")
444
444
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
445
445
  className: "univer-mt-2 univer-w-36",
446
446
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
@@ -453,7 +453,7 @@ const CurrencyPanel = (props) => {
453
453
  }),
454
454
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
455
455
  className: "label univer-mt-4",
456
- children: t("sheet.numfmt.negType")
456
+ children: t("sheets-numfmt-ui.negType")
457
457
  }),
458
458
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
459
459
  className: "univer-mt-2",
@@ -465,7 +465,7 @@ const CurrencyPanel = (props) => {
465
465
  }),
466
466
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
467
467
  className: "univer-mt-4 univer-text-sm univer-text-gray-400",
468
- children: t("sheet.numfmt.currencyDes")
468
+ children: t("sheets-numfmt-ui.currencyDes")
469
469
  })
470
470
  ] });
471
471
  };
@@ -514,10 +514,10 @@ function CustomFormat(props) {
514
514
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
515
515
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
516
516
  className: "univer-mt-4 univer-text-sm univer-text-gray-400",
517
- children: localeService.t("sheet.numfmt.customFormat")
517
+ children: localeService.t("sheets-numfmt-ui.customFormat")
518
518
  }),
519
519
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
520
- placeholder: localeService.t("sheet.numfmt.customFormat"),
520
+ placeholder: localeService.t("sheets-numfmt-ui.customFormat"),
521
521
  onBlur: handleBlur,
522
522
  value: pattern,
523
523
  onChange: setPattern,
@@ -536,7 +536,7 @@ function CustomFormat(props) {
536
536
  }),
537
537
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
538
538
  className: "univer-mt-3 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
539
- children: localeService.t("sheet.numfmt.customFormatDes")
539
+ children: localeService.t("sheets-numfmt-ui.customFormatDes")
540
540
  })
541
541
  ] });
542
542
  }
@@ -571,7 +571,7 @@ function DatePanel(props) {
571
571
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
572
572
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
573
573
  className: "univer-mt-4 univer-text-sm univer-text-gray-400",
574
- children: localeService.t("sheet.numfmt.dateType")
574
+ children: localeService.t("sheets-numfmt-ui.dateType")
575
575
  }),
576
576
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
577
577
  className: "univer-mt-2",
@@ -583,7 +583,7 @@ function DatePanel(props) {
583
583
  }),
584
584
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
585
585
  className: "univer-mt-3.5 univer-text-sm/5 univer-text-gray-600 dark:!univer-text-gray-200",
586
- children: localeService.t("sheet.numfmt.dateDes")
586
+ children: localeService.t("sheets-numfmt-ui.dateDes")
587
587
  })
588
588
  ] });
589
589
  }
@@ -596,7 +596,7 @@ const GeneralPanel = (props) => {
596
596
  props.action.current = () => "";
597
597
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
598
598
  className: "univer-mt-3.5 univer-text-sm/5 univer-text-gray-600 dark:!univer-text-gray-200",
599
- children: t("sheet.numfmt.generalDes")
599
+ children: t("sheets-numfmt-ui.generalDes")
600
600
  }) });
601
601
  };
602
602
 
@@ -627,7 +627,7 @@ function ThousandthPercentilePanel(props) {
627
627
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
628
628
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
629
629
  className: "univer-mt-4 univer-text-sm univer-text-gray-400",
630
- children: localeService.t("sheet.numfmt.decimalLength")
630
+ children: localeService.t("sheets-numfmt-ui.decimalLength")
631
631
  }),
632
632
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
633
633
  className: "univer-mt-2",
@@ -641,7 +641,7 @@ function ThousandthPercentilePanel(props) {
641
641
  }),
642
642
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
643
643
  className: "univer-mt-4 univer-text-sm univer-text-gray-400",
644
- children: [" ", localeService.t("sheet.numfmt.negType")]
644
+ children: [" ", localeService.t("sheets-numfmt-ui.negType")]
645
645
  }),
646
646
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
647
647
  className: "univer-mt-2",
@@ -653,7 +653,7 @@ function ThousandthPercentilePanel(props) {
653
653
  }),
654
654
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
655
655
  className: "univer-mt-3.5 univer-text-sm/5 univer-text-gray-600 dark:!univer-text-gray-200",
656
- children: localeService.t("sheet.numfmt.thousandthPercentileDes")
656
+ children: localeService.t("sheets-numfmt-ui.thousandthPercentileDes")
657
657
  })
658
658
  ] });
659
659
  }
@@ -668,27 +668,27 @@ const SheetNumfmtPanel = (props) => {
668
668
  const nextTick = useNextTick();
669
669
  const typeOptions = (0, react.useMemo)(() => [
670
670
  {
671
- label: "sheet.numfmt.general",
671
+ label: "sheets-numfmt-ui.general",
672
672
  component: GeneralPanel
673
673
  },
674
674
  {
675
- label: "sheet.numfmt.accounting",
675
+ label: "sheets-numfmt-ui.accounting",
676
676
  component: AccountingPanel
677
677
  },
678
678
  {
679
- label: "sheet.numfmt.currency",
679
+ label: "sheets-numfmt-ui.currency",
680
680
  component: CurrencyPanel
681
681
  },
682
682
  {
683
- label: "sheet.numfmt.date",
683
+ label: "sheets-numfmt-ui.date",
684
684
  component: DatePanel
685
685
  },
686
686
  {
687
- label: "sheet.numfmt.thousandthPercentile",
687
+ label: "sheets-numfmt-ui.thousandthPercentile",
688
688
  component: ThousandthPercentilePanel
689
689
  },
690
690
  {
691
- label: "sheet.numfmt.customFormat",
691
+ label: "sheets-numfmt-ui.customFormat",
692
692
  component: CustomFormat
693
693
  }
694
694
  ].map((item) => ({
@@ -758,7 +758,7 @@ const SheetNumfmtPanel = (props) => {
758
758
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
759
759
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
760
760
  className: "univer-mt-3.5 univer-text-sm univer-text-gray-400",
761
- children: t("sheet.numfmt.numfmtType")
761
+ children: t("sheets-numfmt-ui.numfmtType")
762
762
  }),
763
763
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
764
764
  className: "univer-mt-2",
@@ -781,18 +781,18 @@ const SheetNumfmtPanel = (props) => {
781
781
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
782
782
  onClick: handleCancel,
783
783
  className: "univer-mr-3",
784
- children: t("sheet.numfmt.cancel")
784
+ children: t("sheets-numfmt-ui.cancel")
785
785
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
786
786
  variant: "primary",
787
787
  onClick: handleConfirm,
788
- children: t("sheet.numfmt.confirm")
788
+ children: t("sheets-numfmt-ui.confirm")
789
789
  })]
790
790
  })]
791
791
  });
792
792
  };
793
793
 
794
794
  //#endregion
795
- //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
795
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
796
796
  function _typeof(o) {
797
797
  "@babel/helpers - typeof";
798
798
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -803,7 +803,7 @@ function _typeof(o) {
803
803
  }
804
804
 
805
805
  //#endregion
806
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
806
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
807
807
  function toPrimitive(t, r) {
808
808
  if ("object" != _typeof(t) || !t) return t;
809
809
  var e = t[Symbol.toPrimitive];
@@ -816,14 +816,14 @@ function toPrimitive(t, r) {
816
816
  }
817
817
 
818
818
  //#endregion
819
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
819
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
820
820
  function toPropertyKey(t) {
821
821
  var i = toPrimitive(t, "string");
822
822
  return "symbol" == _typeof(i) ? i : i + "";
823
823
  }
824
824
 
825
825
  //#endregion
826
- //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
826
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
827
827
  function _defineProperty(e, r, t) {
828
828
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
829
829
  value: t,
@@ -914,7 +914,7 @@ let SheetNumfmtUIController = class SheetNumfmtUIController extends _univerjs_co
914
914
  }
915
915
  };
916
916
  this._sidebarDisposable = sidebarService.open({
917
- header: { title: localeService.t("sheet.numfmt.title") },
917
+ header: { title: localeService.t("sheets-numfmt-ui.title") },
918
918
  children: {
919
919
  label: SHEET_NUMFMT_PANEL,
920
920
  ...props
@@ -1249,63 +1249,63 @@ function canConvertRichTextToNumfmt(body) {
1249
1249
  const MENU_OPTIONS = (currencySymbol) => {
1250
1250
  return [
1251
1251
  {
1252
- label: "sheet.numfmt.general",
1252
+ label: "sheets-numfmt-ui.general",
1253
1253
  pattern: null
1254
1254
  },
1255
1255
  {
1256
- label: "sheet.numfmt.text",
1256
+ label: "sheets-numfmt-ui.text",
1257
1257
  pattern: _univerjs_core.DEFAULT_TEXT_FORMAT_EXCEL
1258
1258
  },
1259
1259
  "|",
1260
1260
  {
1261
- label: "sheet.numfmt.number",
1261
+ label: "sheets-numfmt-ui.number",
1262
1262
  pattern: "0"
1263
1263
  },
1264
1264
  {
1265
- label: "sheet.numfmt.percent",
1265
+ label: "sheets-numfmt-ui.percent",
1266
1266
  pattern: "0.00%"
1267
1267
  },
1268
1268
  {
1269
- label: "sheet.numfmt.scientific",
1269
+ label: "sheets-numfmt-ui.scientific",
1270
1270
  pattern: "0.00E+00"
1271
1271
  },
1272
1272
  "|",
1273
1273
  {
1274
- label: "sheet.numfmt.accounting",
1274
+ label: "sheets-numfmt-ui.accounting",
1275
1275
  pattern: `"${currencySymbol}" #,##0.00_);[Red]("${currencySymbol}"#,##0.00)`
1276
1276
  },
1277
1277
  {
1278
- label: "sheet.numfmt.financialValue",
1278
+ label: "sheets-numfmt-ui.financialValue",
1279
1279
  pattern: "#,##0.00;[Red]#,##0.00"
1280
1280
  },
1281
1281
  {
1282
- label: "sheet.numfmt.currency",
1282
+ label: "sheets-numfmt-ui.currency",
1283
1283
  pattern: `"${currencySymbol}"#,##0.00_);[Red]("${currencySymbol}"#,##0.00)`
1284
1284
  },
1285
1285
  {
1286
- label: "sheet.numfmt.roundingCurrency",
1286
+ label: "sheets-numfmt-ui.roundingCurrency",
1287
1287
  pattern: `"${currencySymbol}"#,##0;[Red]"${currencySymbol}"#,##0`
1288
1288
  },
1289
1289
  "|",
1290
1290
  {
1291
- label: "sheet.numfmt.date",
1291
+ label: "sheets-numfmt-ui.date",
1292
1292
  pattern: "yyyy-mm-dd;@"
1293
1293
  },
1294
1294
  {
1295
- label: "sheet.numfmt.time",
1295
+ label: "sheets-numfmt-ui.time",
1296
1296
  pattern: "am/pm h\":\"mm\":\"ss"
1297
1297
  },
1298
1298
  {
1299
- label: "sheet.numfmt.dateTime",
1299
+ label: "sheets-numfmt-ui.dateTime",
1300
1300
  pattern: "yyyy-m-d am/pm h:mm"
1301
1301
  },
1302
1302
  {
1303
- label: "sheet.numfmt.timeDuration",
1303
+ label: "sheets-numfmt-ui.timeDuration",
1304
1304
  pattern: "h:mm:ss"
1305
1305
  },
1306
1306
  "|",
1307
1307
  {
1308
- label: "sheet.numfmt.moreFmt",
1308
+ label: "sheets-numfmt-ui.moreFmt",
1309
1309
  pattern: ""
1310
1310
  }
1311
1311
  ];
@@ -1320,8 +1320,8 @@ const CurrencySymbolIconMenuItem = (accessor) => {
1320
1320
  });
1321
1321
  }),
1322
1322
  id: _univerjs_sheets_numfmt.SetCurrencyCommand.id,
1323
- title: "sheet.numfmt.currency",
1324
- tooltip: "sheet.numfmt.currency",
1323
+ title: "sheets-numfmt-ui.currency",
1324
+ tooltip: "sheets-numfmt-ui.currency",
1325
1325
  type: _univerjs_ui.MenuItemType.BUTTON,
1326
1326
  hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
1327
1327
  disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
@@ -1335,8 +1335,8 @@ const AddDecimalMenuItem = (accessor) => {
1335
1335
  return {
1336
1336
  icon: "AddDigitsIcon",
1337
1337
  id: _univerjs_sheets_numfmt.AddDecimalCommand.id,
1338
- title: "sheet.numfmt.addDecimal",
1339
- tooltip: "sheet.numfmt.addDecimal",
1338
+ title: "sheets-numfmt-ui.addDecimal",
1339
+ tooltip: "sheets-numfmt-ui.addDecimal",
1340
1340
  type: _univerjs_ui.MenuItemType.BUTTON,
1341
1341
  hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
1342
1342
  disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
@@ -1350,8 +1350,8 @@ const SubtractDecimalMenuItem = (accessor) => {
1350
1350
  return {
1351
1351
  icon: "ReduceDigitsIcon",
1352
1352
  id: _univerjs_sheets_numfmt.SubtractDecimalCommand.id,
1353
- title: "sheet.numfmt.subtractDecimal",
1354
- tooltip: "sheet.numfmt.subtractDecimal",
1353
+ title: "sheets-numfmt-ui.subtractDecimal",
1354
+ tooltip: "sheets-numfmt-ui.subtractDecimal",
1355
1355
  type: _univerjs_ui.MenuItemType.BUTTON,
1356
1356
  hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
1357
1357
  disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
@@ -1365,8 +1365,8 @@ const PercentMenuItem = (accessor) => {
1365
1365
  return {
1366
1366
  icon: "PercentIcon",
1367
1367
  id: _univerjs_sheets_numfmt.SetPercentCommand.id,
1368
- title: "sheet.numfmt.percent",
1369
- tooltip: "sheet.numfmt.percent",
1368
+ title: "sheets-numfmt-ui.percent",
1369
+ tooltip: "sheets-numfmt-ui.percent",
1370
1370
  type: _univerjs_ui.MenuItemType.BUTTON,
1371
1371
  hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
1372
1372
  disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
@@ -1392,7 +1392,7 @@ const FactoryOtherMenuItem = (accessor) => {
1392
1392
  const numfmtValue = (_workbook$getStyles$g = workbook.getStyles().get((_worksheet$getCell = worksheet.getCell(row, col)) === null || _worksheet$getCell === void 0 ? void 0 : _worksheet$getCell.s)) === null || _workbook$getStyles$g === void 0 ? void 0 : _workbook$getStyles$g.n;
1393
1393
  const pattern = numfmtValue === null || numfmtValue === void 0 ? void 0 : numfmtValue.pattern;
1394
1394
  const currencySymbol = (0, _univerjs_sheets_numfmt.getCurrencySymbolByLocale)(localeService.getCurrentLocale());
1395
- let value = localeService.t("sheet.numfmt.general");
1395
+ let value = localeService.t("sheets-numfmt-ui.general");
1396
1396
  if ((0, _univerjs_core.isDefaultFormat)(pattern)) {
1397
1397
  subscribe.next(value);
1398
1398
  return;
@@ -1400,7 +1400,7 @@ const FactoryOtherMenuItem = (accessor) => {
1400
1400
  if (pattern) {
1401
1401
  const item = MENU_OPTIONS(currencySymbol).filter((item) => typeof item === "object" && item.pattern).find((item) => (0, _univerjs_core.isPatternEqualWithoutDecimal)(pattern, item.pattern));
1402
1402
  if (item && typeof item === "object" && item.pattern) value = localeService.t(item.label);
1403
- else value = localeService.t("sheet.numfmt.moreFmt");
1403
+ else value = localeService.t("sheets-numfmt-ui.moreFmt");
1404
1404
  }
1405
1405
  subscribe.next(value);
1406
1406
  }
@@ -1408,7 +1408,7 @@ const FactoryOtherMenuItem = (accessor) => {
1408
1408
  return {
1409
1409
  label: MORE_NUMFMT_TYPE_KEY,
1410
1410
  id: OpenNumfmtPanelOperator.id,
1411
- tooltip: "sheet.numfmt.title",
1411
+ tooltip: "sheets-numfmt-ui.title",
1412
1412
  type: _univerjs_ui.MenuItemType.SELECTOR,
1413
1413
  slot: true,
1414
1414
  selections: [{ label: {
@@ -1428,14 +1428,14 @@ const FactoryOtherMenuItem = (accessor) => {
1428
1428
 
1429
1429
  //#endregion
1430
1430
  //#region src/views/components/MoreNumfmtType.tsx
1431
- const MORE_NUMFMT_TYPE_KEY = "sheet.numfmt.moreNumfmtType";
1432
- const OPTIONS_KEY = "sheet.numfmt.moreNumfmtType.options";
1431
+ const MORE_NUMFMT_TYPE_KEY = "sheets-numfmt-ui.moreNumfmtType";
1432
+ const OPTIONS_KEY = "sheets-numfmt-ui.moreNumfmtType.options";
1433
1433
  function MoreNumfmtType(props) {
1434
1434
  const { value } = props;
1435
1435
  const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
1436
1436
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1437
1437
  className: "univer-text-sm",
1438
- children: value !== null && value !== void 0 ? value : localeService.t("sheet.numfmt.general")
1438
+ children: value !== null && value !== void 0 ? value : localeService.t("sheets-numfmt-ui.general")
1439
1439
  });
1440
1440
  }
1441
1441
  function Options() {
@@ -0,0 +1,44 @@
1
+
2
+ //#region src/locale/ar-SA.ts
3
+ const locale = { "sheets-numfmt-ui": {
4
+ title: "تنسيق الأرقام",
5
+ numfmtType: "أنواع التنسيق",
6
+ cancel: "إلغاء",
7
+ confirm: "تأكيد",
8
+ general: "عام",
9
+ accounting: "محاسبة",
10
+ text: "نص",
11
+ number: "رقم",
12
+ percent: "نسبة مئوية",
13
+ scientific: "علمي",
14
+ currency: "عملة",
15
+ date: "تاريخ",
16
+ time: "وقت",
17
+ thousandthPercentile: "فاصل الألوف",
18
+ preview: "معاينة",
19
+ dateTime: "التاريخ والوقت",
20
+ decimalLength: "المنازل العشرية",
21
+ currencyType: "رمز العملة",
22
+ moreFmt: "التنسيقات",
23
+ financialValue: "قيمة مالية",
24
+ roundingCurrency: "تقريب العملة",
25
+ timeDuration: "المدة الزمنية",
26
+ currencyDes: "يُستخدم تنسيق العملة لتمثيل قيم العملة العامة. يقوم تنسيق المحاسبة بمحاذاة عمود من القيم مع النقاط العشرية",
27
+ accountingDes: "يقوم تنسيق الأرقام المحاسبي بمحاذاة عمود من القيم مع رموز العملة والنقاط العشرية",
28
+ dateType: "نوع التاريخ",
29
+ dateDes: "يعرض تنسيق التاريخ قيم سلسلة التاريخ والوقت كقيم تاريخ.",
30
+ negType: "نوع العدد السالب",
31
+ generalDes: "لا يحتوي التنسيق العام على أي تنسيق رقم محدد.",
32
+ thousandthPercentileDes: "يُستخدم تنسيق النسبة المئوية لتمثيل الأرقام العادية. توفر تنسيقات العملة والمحاسبة تنسيقًا متخصصًا لحسابات قيم العملة.",
33
+ addDecimal: "زيادة المنازل العشرية",
34
+ subtractDecimal: "تقليل المنازل العشرية",
35
+ customFormat: "تنسيق مخصص",
36
+ customFormatDes: "إنشاء تنسيقات أرقام مخصصة استنادًا إلى التنسيقات الموجودة.",
37
+ info: {
38
+ error: "خطأ",
39
+ forceStringInfo: "رقم مخزن كنص"
40
+ }
41
+ } };
42
+
43
+ //#endregion
44
+ module.exports = locale;
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/ca-ES.ts
3
- const locale = { sheet: { numfmt: {
3
+ const locale = { "sheets-numfmt-ui": {
4
4
  title: "Format de nombre",
5
5
  numfmtType: "Tipus de format",
6
6
  cancel: "Cancel·lar",
@@ -33,8 +33,12 @@ const locale = { sheet: { numfmt: {
33
33
  addDecimal: "Augmentar decimals",
34
34
  subtractDecimal: "Disminuir decimals",
35
35
  customFormat: "Format personalitzat",
36
- customFormatDes: "Genera formats de nombre personalitzats basats en els existents."
37
- } } };
36
+ customFormatDes: "Genera formats de nombre personalitzats basats en els existents.",
37
+ info: {
38
+ error: "Error",
39
+ forceStringInfo: "Número emmagatzemat com a text"
40
+ }
41
+ } };
38
42
 
39
43
  //#endregion
40
44
  module.exports = locale;
@@ -0,0 +1,44 @@
1
+
2
+ //#region src/locale/de-DE.ts
3
+ const locale = { "sheets-numfmt-ui": {
4
+ title: "Zahlenformat",
5
+ numfmtType: "Formattypen",
6
+ cancel: "Abbrechen",
7
+ confirm: "Bestätigen",
8
+ general: "Allgemein",
9
+ accounting: "Buchhaltung",
10
+ text: "Text",
11
+ number: "Zahl",
12
+ percent: "Prozent",
13
+ scientific: "Wissenschaftlich",
14
+ currency: "Währung",
15
+ date: "Datum",
16
+ time: "Zeit",
17
+ thousandthPercentile: "Tausendertrennzeichen",
18
+ preview: "Vorschau",
19
+ dateTime: "Datum und Uhrzeit",
20
+ decimalLength: "Dezimalstellen",
21
+ currencyType: "Währungssymbol",
22
+ moreFmt: "Formate",
23
+ financialValue: "Finanzwert",
24
+ roundingCurrency: "Währung aufrunden",
25
+ timeDuration: "Dauer",
26
+ currencyDes: "Das Währungsformat wird verwendet, um allgemeine Währungswerte darzustellen. Das Buchhaltungsformat richtet eine Spalte von Werten an Dezimalpunkten aus",
27
+ accountingDes: "Das Buchhaltungszahlenformat richtet eine Spalte von Werten an Währungssymbolen und Dezimalpunkten aus",
28
+ dateType: "Datumstyp",
29
+ dateDes: "Das Datumsformat stellt Datums- und Zeitserienwerte als Datumswerte dar.",
30
+ negType: "Negativer Zahlentyp",
31
+ generalDes: "Das allgemeine Format enthält kein spezifisches Zahlenformat.",
32
+ thousandthPercentileDes: "Das Tausendertrennzeichenformat wird für die Darstellung gewöhnlicher Zahlen verwendet. Währungs- und Buchhaltungsformate bieten ein spezialisiertes Format für Währungswertberechnungen.",
33
+ addDecimal: "Dezimalstellen erhöhen",
34
+ subtractDecimal: "Dezimalstellen verringern",
35
+ customFormat: "Benutzerdefiniertes Format",
36
+ customFormatDes: "Benutzerdefinierte Zahlenformate basierend auf vorhandenen Formaten erstellen.",
37
+ info: {
38
+ error: "Fehler",
39
+ forceStringInfo: "Zahl als Text gespeichert"
40
+ }
41
+ } };
42
+
43
+ //#endregion
44
+ 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 = { sheet: { numfmt: {
18
+ const locale = { "sheets-numfmt-ui": {
19
19
  title: "Number format",
20
20
  numfmtType: "Format types",
21
21
  cancel: "Cancel",
@@ -48,8 +48,12 @@ const locale = { sheet: { numfmt: {
48
48
  addDecimal: "Increase decimal places",
49
49
  subtractDecimal: "Decreasing decimal places",
50
50
  customFormat: "Custom Format",
51
- customFormatDes: "Generate custom number formats based on existing formats."
52
- } } };
51
+ customFormatDes: "Generate custom number formats based on existing formats.",
52
+ info: {
53
+ error: "Error",
54
+ forceStringInfo: "Number stored as text"
55
+ }
56
+ } };
53
57
 
54
58
  //#endregion
55
59
  module.exports = locale;
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/es-ES.ts
3
- const locale = { sheet: { numfmt: {
3
+ const locale = { "sheets-numfmt-ui": {
4
4
  title: "Formato de número",
5
5
  numfmtType: "Tipos de formato",
6
6
  cancel: "Cancelar",
@@ -33,8 +33,12 @@ const locale = { sheet: { numfmt: {
33
33
  addDecimal: "Aumentar decimales",
34
34
  subtractDecimal: "Disminuir decimales",
35
35
  customFormat: "Formato personalizado",
36
- customFormatDes: "Generar formatos de número personalizados basados en los existentes."
37
- } } };
36
+ customFormatDes: "Generar formatos de número personalizados basados en los existentes.",
37
+ info: {
38
+ error: "Error",
39
+ forceStringInfo: "Número almacenado como texto"
40
+ }
41
+ } };
38
42
 
39
43
  //#endregion
40
44
  module.exports = locale;
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/fa-IR.ts
3
- const locale = { sheet: { numfmt: {
3
+ const locale = { "sheets-numfmt-ui": {
4
4
  title: "قالب‌بندی عدد",
5
5
  numfmtType: "انواع قالب‌بندی",
6
6
  cancel: "انصراف",
@@ -33,8 +33,12 @@ const locale = { sheet: { numfmt: {
33
33
  addDecimal: "افزایش اعشار",
34
34
  subtractDecimal: "کاهش اعشار",
35
35
  customFormat: "قالب‌بندی سفارشی",
36
- customFormatDes: "ایجاد قالب‌بندی‌های عددی سفارشی بر اساس قالب‌بندی‌های موجود."
37
- } } };
36
+ customFormatDes: "ایجاد قالب‌بندی‌های عددی سفارشی بر اساس قالب‌بندی‌های موجود.",
37
+ info: {
38
+ error: "خطا",
39
+ forceStringInfo: "عدد به عنوان متن ذخیره شده"
40
+ }
41
+ } };
38
42
 
39
43
  //#endregion
40
44
  module.exports = locale;
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/locale/fr-FR.ts
3
- const locale = { sheet: { numfmt: {
3
+ const locale = { "sheets-numfmt-ui": {
4
4
  title: "Format de nombre",
5
5
  numfmtType: "Types de format",
6
6
  cancel: "Annuler",
@@ -33,8 +33,12 @@ const locale = { sheet: { numfmt: {
33
33
  addDecimal: "Augmenter les décimales",
34
34
  subtractDecimal: "Diminuer les décimales",
35
35
  customFormat: "Format personnalisé",
36
- customFormatDes: "Générer des formats de nombre personnalisés basés sur des formats existants."
37
- } } };
36
+ customFormatDes: "Générer des formats de nombre personnalisés basés sur des formats existants.",
37
+ info: {
38
+ error: "Erreur",
39
+ forceStringInfo: "Nombre stocké en tant que texte"
40
+ }
41
+ } };
38
42
 
39
43
  //#endregion
40
44
  module.exports = locale;