@univerjs/sheets-numfmt-ui 0.24.0 → 0.25.0-insiders.20260608-e4336f7
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/cjs/index.js +70 -71
- package/lib/cjs/locale/ar-SA.js +44 -0
- package/lib/cjs/locale/ca-ES.js +7 -3
- package/lib/cjs/locale/de-DE.js +44 -0
- package/lib/cjs/locale/en-US.js +7 -3
- package/lib/cjs/locale/es-ES.js +7 -3
- package/lib/cjs/locale/fa-IR.js +7 -3
- package/lib/cjs/locale/fr-FR.js +7 -3
- package/lib/cjs/locale/id-ID.js +44 -0
- package/lib/cjs/locale/it-IT.js +44 -0
- package/lib/cjs/locale/ja-JP.js +7 -3
- package/lib/cjs/locale/ko-KR.js +7 -3
- package/lib/cjs/locale/pl-PL.js +44 -0
- package/lib/cjs/locale/pt-BR.js +44 -0
- package/lib/cjs/locale/ru-RU.js +7 -3
- package/lib/cjs/locale/sk-SK.js +7 -3
- package/lib/cjs/locale/vi-VN.js +7 -3
- package/lib/cjs/locale/zh-CN.js +7 -3
- package/lib/cjs/locale/zh-HK.js +44 -0
- package/lib/cjs/locale/zh-TW.js +7 -3
- package/lib/es/index.js +70 -71
- package/lib/es/locale/ar-SA.js +43 -0
- package/lib/es/locale/ca-ES.js +7 -3
- package/lib/es/locale/de-DE.js +43 -0
- package/lib/es/locale/en-US.js +7 -3
- package/lib/es/locale/es-ES.js +7 -3
- package/lib/es/locale/fa-IR.js +7 -3
- package/lib/es/locale/fr-FR.js +7 -3
- package/lib/es/locale/id-ID.js +43 -0
- package/lib/es/locale/it-IT.js +43 -0
- package/lib/es/locale/ja-JP.js +7 -3
- package/lib/es/locale/ko-KR.js +7 -3
- package/lib/es/locale/pl-PL.js +43 -0
- package/lib/es/locale/pt-BR.js +43 -0
- package/lib/es/locale/ru-RU.js +7 -3
- package/lib/es/locale/sk-SK.js +7 -3
- package/lib/es/locale/vi-VN.js +7 -3
- package/lib/es/locale/zh-CN.js +7 -3
- package/lib/es/locale/zh-HK.js +43 -0
- package/lib/es/locale/zh-TW.js +7 -3
- package/lib/index.js +70 -71
- package/lib/locale/ar-SA.js +43 -0
- package/lib/locale/ca-ES.js +7 -3
- package/lib/locale/de-DE.js +43 -0
- package/lib/locale/en-US.js +7 -3
- package/lib/locale/es-ES.js +7 -3
- package/lib/locale/fa-IR.js +7 -3
- package/lib/locale/fr-FR.js +7 -3
- package/lib/locale/id-ID.js +43 -0
- package/lib/locale/it-IT.js +43 -0
- package/lib/locale/ja-JP.js +7 -3
- package/lib/locale/ko-KR.js +7 -3
- package/lib/locale/pl-PL.js +43 -0
- package/lib/locale/pt-BR.js +43 -0
- package/lib/locale/ru-RU.js +7 -3
- package/lib/locale/sk-SK.js +7 -3
- package/lib/locale/vi-VN.js +7 -3
- package/lib/locale/zh-CN.js +7 -3
- package/lib/locale/zh-HK.js +43 -0
- package/lib/locale/zh-TW.js +7 -3
- package/lib/types/locale/ar-SA.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +37 -35
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/types/views/components/CustomFormat.d.ts +1 -1
- package/lib/types/views/components/Date.d.ts +1 -1
- package/lib/types/views/components/MoreNumfmtType.d.ts +4 -4
- package/lib/types/views/components/ThousandthPercentile.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +13 -13
- package/LICENSE +0 -176
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.
|
|
18
|
+
var version = "0.25.0-insiders.20260608-e4336f7";
|
|
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.
|
|
27
|
+
//#region \0@oxc-project+runtime@0.134.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.
|
|
35
|
+
//#region \0@oxc-project+runtime@0.134.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)(
|
|
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, [...
|
|
274
|
+
userHabitController.getHabit(key$1, [..._univerjs_core.currencySymbols]).then((list) => {
|
|
275
275
|
setOptions(list);
|
|
276
276
|
onOptionChange && onOptionChange(list);
|
|
277
277
|
});
|
|
@@ -333,7 +333,7 @@ const AccountingPanel = (props) => {
|
|
|
333
333
|
label: key,
|
|
334
334
|
value: key
|
|
335
335
|
})), []);
|
|
336
|
-
const
|
|
336
|
+
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
337
337
|
action.current = () => (0, _univerjs_sheets_numfmt.setPatternDecimal)(`_("${suffix}"* #,##0${decimal > 0 ? ".0" : ""}_)`, decimal);
|
|
338
338
|
const handleSelect = (v) => {
|
|
339
339
|
setSuffix(v);
|
|
@@ -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("
|
|
353
|
+
children: localeService.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("
|
|
369
|
+
children: localeService.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("
|
|
381
|
+
children: localeService.t("sheets-numfmt-ui.accountingDes")
|
|
382
382
|
})] });
|
|
383
383
|
};
|
|
384
384
|
|
|
@@ -388,7 +388,7 @@ const isCurrencyPanel = (pattern) => {
|
|
|
388
388
|
return !!(0, _univerjs_sheets_numfmt.getCurrencyType)(pattern) && !pattern.startsWith("_(");
|
|
389
389
|
};
|
|
390
390
|
const CurrencyPanel = (props) => {
|
|
391
|
-
const
|
|
391
|
+
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
392
392
|
const userHabitCurrency = (0, react.useContext)(UserHabitCurrencyContext);
|
|
393
393
|
const [suffix, setSuffix] = (0, react.useState)(() => (0, _univerjs_sheets_numfmt.getCurrencyType)(props.defaultPattern) || userHabitCurrency[0]);
|
|
394
394
|
const [decimal, setDecimal] = (0, react.useState)(() => (0, _univerjs_sheets_numfmt.getDecimalFromPattern)(props.defaultPattern || "", 2));
|
|
@@ -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("
|
|
429
|
+
children: localeService.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("
|
|
443
|
+
children: localeService.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("
|
|
456
|
+
children: localeService.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("
|
|
468
|
+
children: localeService.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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
586
|
+
children: localeService.t("sheets-numfmt-ui.dateDes")
|
|
587
587
|
})
|
|
588
588
|
] });
|
|
589
589
|
}
|
|
@@ -592,11 +592,11 @@ function DatePanel(props) {
|
|
|
592
592
|
//#region src/views/components/General.tsx
|
|
593
593
|
const isGeneralPanel = (pattern) => !pattern;
|
|
594
594
|
const GeneralPanel = (props) => {
|
|
595
|
-
const
|
|
595
|
+
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
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("
|
|
599
|
+
children: localeService.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("
|
|
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("
|
|
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("
|
|
656
|
+
children: localeService.t("sheets-numfmt-ui.thousandthPercentileDes")
|
|
657
657
|
})
|
|
658
658
|
] });
|
|
659
659
|
}
|
|
@@ -664,37 +664,36 @@ const SheetNumfmtPanel = (props) => {
|
|
|
664
664
|
const { defaultValue, defaultPattern, row, col } = props.value;
|
|
665
665
|
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
666
666
|
const getCurrentPattern = (0, react.useRef)(() => "");
|
|
667
|
-
const t = localeService.t;
|
|
668
667
|
const nextTick = useNextTick();
|
|
669
668
|
const typeOptions = (0, react.useMemo)(() => [
|
|
670
669
|
{
|
|
671
|
-
label: "
|
|
670
|
+
label: "sheets-numfmt-ui.general",
|
|
672
671
|
component: GeneralPanel
|
|
673
672
|
},
|
|
674
673
|
{
|
|
675
|
-
label: "
|
|
674
|
+
label: "sheets-numfmt-ui.accounting",
|
|
676
675
|
component: AccountingPanel
|
|
677
676
|
},
|
|
678
677
|
{
|
|
679
|
-
label: "
|
|
678
|
+
label: "sheets-numfmt-ui.currency",
|
|
680
679
|
component: CurrencyPanel
|
|
681
680
|
},
|
|
682
681
|
{
|
|
683
|
-
label: "
|
|
682
|
+
label: "sheets-numfmt-ui.date",
|
|
684
683
|
component: DatePanel
|
|
685
684
|
},
|
|
686
685
|
{
|
|
687
|
-
label: "
|
|
686
|
+
label: "sheets-numfmt-ui.thousandthPercentile",
|
|
688
687
|
component: ThousandthPercentilePanel
|
|
689
688
|
},
|
|
690
689
|
{
|
|
691
|
-
label: "
|
|
690
|
+
label: "sheets-numfmt-ui.customFormat",
|
|
692
691
|
component: CustomFormat
|
|
693
692
|
}
|
|
694
693
|
].map((item) => ({
|
|
695
694
|
...item,
|
|
696
|
-
label: t(item.label)
|
|
697
|
-
})), []);
|
|
695
|
+
label: localeService.t(item.label)
|
|
696
|
+
})), [localeService]);
|
|
698
697
|
const [type, setType] = (0, react.useState)(findDefaultType);
|
|
699
698
|
const [key, setKey] = (0, react.useState)(() => `${row}_${col}`);
|
|
700
699
|
const { mark, userHabitCurrency } = useCurrencyOptions(() => setKey(`${row}_${col}_userCurrency'`));
|
|
@@ -758,7 +757,7 @@ const SheetNumfmtPanel = (props) => {
|
|
|
758
757
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
|
|
759
758
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
760
759
|
className: "univer-mt-3.5 univer-text-sm univer-text-gray-400",
|
|
761
|
-
children: t("
|
|
760
|
+
children: localeService.t("sheets-numfmt-ui.numfmtType")
|
|
762
761
|
}),
|
|
763
762
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
764
763
|
className: "univer-mt-2",
|
|
@@ -781,18 +780,18 @@ const SheetNumfmtPanel = (props) => {
|
|
|
781
780
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
|
|
782
781
|
onClick: handleCancel,
|
|
783
782
|
className: "univer-mr-3",
|
|
784
|
-
children: t("
|
|
783
|
+
children: localeService.t("sheets-numfmt-ui.cancel")
|
|
785
784
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
|
|
786
785
|
variant: "primary",
|
|
787
786
|
onClick: handleConfirm,
|
|
788
|
-
children: t("
|
|
787
|
+
children: localeService.t("sheets-numfmt-ui.confirm")
|
|
789
788
|
})]
|
|
790
789
|
})]
|
|
791
790
|
});
|
|
792
791
|
};
|
|
793
792
|
|
|
794
793
|
//#endregion
|
|
795
|
-
//#region \0@oxc-project+runtime@0.
|
|
794
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/typeof.js
|
|
796
795
|
function _typeof(o) {
|
|
797
796
|
"@babel/helpers - typeof";
|
|
798
797
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -803,7 +802,7 @@ function _typeof(o) {
|
|
|
803
802
|
}
|
|
804
803
|
|
|
805
804
|
//#endregion
|
|
806
|
-
//#region \0@oxc-project+runtime@0.
|
|
805
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPrimitive.js
|
|
807
806
|
function toPrimitive(t, r) {
|
|
808
807
|
if ("object" != _typeof(t) || !t) return t;
|
|
809
808
|
var e = t[Symbol.toPrimitive];
|
|
@@ -816,14 +815,14 @@ function toPrimitive(t, r) {
|
|
|
816
815
|
}
|
|
817
816
|
|
|
818
817
|
//#endregion
|
|
819
|
-
//#region \0@oxc-project+runtime@0.
|
|
818
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPropertyKey.js
|
|
820
819
|
function toPropertyKey(t) {
|
|
821
820
|
var i = toPrimitive(t, "string");
|
|
822
821
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
823
822
|
}
|
|
824
823
|
|
|
825
824
|
//#endregion
|
|
826
|
-
//#region \0@oxc-project+runtime@0.
|
|
825
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/defineProperty.js
|
|
827
826
|
function _defineProperty(e, r, t) {
|
|
828
827
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
829
828
|
value: t,
|
|
@@ -914,7 +913,7 @@ let SheetNumfmtUIController = class SheetNumfmtUIController extends _univerjs_co
|
|
|
914
913
|
}
|
|
915
914
|
};
|
|
916
915
|
this._sidebarDisposable = sidebarService.open({
|
|
917
|
-
header: { title: localeService.t("
|
|
916
|
+
header: { title: localeService.t("sheets-numfmt-ui.title") },
|
|
918
917
|
children: {
|
|
919
918
|
label: SHEET_NUMFMT_PANEL,
|
|
920
919
|
...props
|
|
@@ -1249,63 +1248,63 @@ function canConvertRichTextToNumfmt(body) {
|
|
|
1249
1248
|
const MENU_OPTIONS = (currencySymbol) => {
|
|
1250
1249
|
return [
|
|
1251
1250
|
{
|
|
1252
|
-
label: "
|
|
1251
|
+
label: "sheets-numfmt-ui.general",
|
|
1253
1252
|
pattern: null
|
|
1254
1253
|
},
|
|
1255
1254
|
{
|
|
1256
|
-
label: "
|
|
1255
|
+
label: "sheets-numfmt-ui.text",
|
|
1257
1256
|
pattern: _univerjs_core.DEFAULT_TEXT_FORMAT_EXCEL
|
|
1258
1257
|
},
|
|
1259
1258
|
"|",
|
|
1260
1259
|
{
|
|
1261
|
-
label: "
|
|
1260
|
+
label: "sheets-numfmt-ui.number",
|
|
1262
1261
|
pattern: "0"
|
|
1263
1262
|
},
|
|
1264
1263
|
{
|
|
1265
|
-
label: "
|
|
1264
|
+
label: "sheets-numfmt-ui.percent",
|
|
1266
1265
|
pattern: "0.00%"
|
|
1267
1266
|
},
|
|
1268
1267
|
{
|
|
1269
|
-
label: "
|
|
1268
|
+
label: "sheets-numfmt-ui.scientific",
|
|
1270
1269
|
pattern: "0.00E+00"
|
|
1271
1270
|
},
|
|
1272
1271
|
"|",
|
|
1273
1272
|
{
|
|
1274
|
-
label: "
|
|
1273
|
+
label: "sheets-numfmt-ui.accounting",
|
|
1275
1274
|
pattern: `"${currencySymbol}" #,##0.00_);[Red]("${currencySymbol}"#,##0.00)`
|
|
1276
1275
|
},
|
|
1277
1276
|
{
|
|
1278
|
-
label: "
|
|
1277
|
+
label: "sheets-numfmt-ui.financialValue",
|
|
1279
1278
|
pattern: "#,##0.00;[Red]#,##0.00"
|
|
1280
1279
|
},
|
|
1281
1280
|
{
|
|
1282
|
-
label: "
|
|
1281
|
+
label: "sheets-numfmt-ui.currency",
|
|
1283
1282
|
pattern: `"${currencySymbol}"#,##0.00_);[Red]("${currencySymbol}"#,##0.00)`
|
|
1284
1283
|
},
|
|
1285
1284
|
{
|
|
1286
|
-
label: "
|
|
1285
|
+
label: "sheets-numfmt-ui.roundingCurrency",
|
|
1287
1286
|
pattern: `"${currencySymbol}"#,##0;[Red]"${currencySymbol}"#,##0`
|
|
1288
1287
|
},
|
|
1289
1288
|
"|",
|
|
1290
1289
|
{
|
|
1291
|
-
label: "
|
|
1290
|
+
label: "sheets-numfmt-ui.date",
|
|
1292
1291
|
pattern: "yyyy-mm-dd;@"
|
|
1293
1292
|
},
|
|
1294
1293
|
{
|
|
1295
|
-
label: "
|
|
1294
|
+
label: "sheets-numfmt-ui.time",
|
|
1296
1295
|
pattern: "am/pm h\":\"mm\":\"ss"
|
|
1297
1296
|
},
|
|
1298
1297
|
{
|
|
1299
|
-
label: "
|
|
1298
|
+
label: "sheets-numfmt-ui.dateTime",
|
|
1300
1299
|
pattern: "yyyy-m-d am/pm h:mm"
|
|
1301
1300
|
},
|
|
1302
1301
|
{
|
|
1303
|
-
label: "
|
|
1302
|
+
label: "sheets-numfmt-ui.timeDuration",
|
|
1304
1303
|
pattern: "h:mm:ss"
|
|
1305
1304
|
},
|
|
1306
1305
|
"|",
|
|
1307
1306
|
{
|
|
1308
|
-
label: "
|
|
1307
|
+
label: "sheets-numfmt-ui.moreFmt",
|
|
1309
1308
|
pattern: ""
|
|
1310
1309
|
}
|
|
1311
1310
|
];
|
|
@@ -1320,8 +1319,8 @@ const CurrencySymbolIconMenuItem = (accessor) => {
|
|
|
1320
1319
|
});
|
|
1321
1320
|
}),
|
|
1322
1321
|
id: _univerjs_sheets_numfmt.SetCurrencyCommand.id,
|
|
1323
|
-
title: "
|
|
1324
|
-
tooltip: "
|
|
1322
|
+
title: "sheets-numfmt-ui.currency",
|
|
1323
|
+
tooltip: "sheets-numfmt-ui.currency",
|
|
1325
1324
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
1326
1325
|
hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
|
|
1327
1326
|
disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
|
|
@@ -1335,8 +1334,8 @@ const AddDecimalMenuItem = (accessor) => {
|
|
|
1335
1334
|
return {
|
|
1336
1335
|
icon: "AddDigitsIcon",
|
|
1337
1336
|
id: _univerjs_sheets_numfmt.AddDecimalCommand.id,
|
|
1338
|
-
title: "
|
|
1339
|
-
tooltip: "
|
|
1337
|
+
title: "sheets-numfmt-ui.addDecimal",
|
|
1338
|
+
tooltip: "sheets-numfmt-ui.addDecimal",
|
|
1340
1339
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
1341
1340
|
hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
|
|
1342
1341
|
disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
|
|
@@ -1350,8 +1349,8 @@ const SubtractDecimalMenuItem = (accessor) => {
|
|
|
1350
1349
|
return {
|
|
1351
1350
|
icon: "ReduceDigitsIcon",
|
|
1352
1351
|
id: _univerjs_sheets_numfmt.SubtractDecimalCommand.id,
|
|
1353
|
-
title: "
|
|
1354
|
-
tooltip: "
|
|
1352
|
+
title: "sheets-numfmt-ui.subtractDecimal",
|
|
1353
|
+
tooltip: "sheets-numfmt-ui.subtractDecimal",
|
|
1355
1354
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
1356
1355
|
hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
|
|
1357
1356
|
disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
|
|
@@ -1365,8 +1364,8 @@ const PercentMenuItem = (accessor) => {
|
|
|
1365
1364
|
return {
|
|
1366
1365
|
icon: "PercentIcon",
|
|
1367
1366
|
id: _univerjs_sheets_numfmt.SetPercentCommand.id,
|
|
1368
|
-
title: "
|
|
1369
|
-
tooltip: "
|
|
1367
|
+
title: "sheets-numfmt-ui.percent",
|
|
1368
|
+
tooltip: "sheets-numfmt-ui.percent",
|
|
1370
1369
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
1371
1370
|
hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
|
|
1372
1371
|
disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
|
|
@@ -1392,7 +1391,7 @@ const FactoryOtherMenuItem = (accessor) => {
|
|
|
1392
1391
|
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
1392
|
const pattern = numfmtValue === null || numfmtValue === void 0 ? void 0 : numfmtValue.pattern;
|
|
1394
1393
|
const currencySymbol = (0, _univerjs_sheets_numfmt.getCurrencySymbolByLocale)(localeService.getCurrentLocale());
|
|
1395
|
-
let value = localeService.t("
|
|
1394
|
+
let value = localeService.t("sheets-numfmt-ui.general");
|
|
1396
1395
|
if ((0, _univerjs_core.isDefaultFormat)(pattern)) {
|
|
1397
1396
|
subscribe.next(value);
|
|
1398
1397
|
return;
|
|
@@ -1400,7 +1399,7 @@ const FactoryOtherMenuItem = (accessor) => {
|
|
|
1400
1399
|
if (pattern) {
|
|
1401
1400
|
const item = MENU_OPTIONS(currencySymbol).filter((item) => typeof item === "object" && item.pattern).find((item) => (0, _univerjs_core.isPatternEqualWithoutDecimal)(pattern, item.pattern));
|
|
1402
1401
|
if (item && typeof item === "object" && item.pattern) value = localeService.t(item.label);
|
|
1403
|
-
else value = localeService.t("
|
|
1402
|
+
else value = localeService.t("sheets-numfmt-ui.moreFmt");
|
|
1404
1403
|
}
|
|
1405
1404
|
subscribe.next(value);
|
|
1406
1405
|
}
|
|
@@ -1408,7 +1407,7 @@ const FactoryOtherMenuItem = (accessor) => {
|
|
|
1408
1407
|
return {
|
|
1409
1408
|
label: MORE_NUMFMT_TYPE_KEY,
|
|
1410
1409
|
id: OpenNumfmtPanelOperator.id,
|
|
1411
|
-
tooltip: "
|
|
1410
|
+
tooltip: "sheets-numfmt-ui.title",
|
|
1412
1411
|
type: _univerjs_ui.MenuItemType.SELECTOR,
|
|
1413
1412
|
slot: true,
|
|
1414
1413
|
selections: [{ label: {
|
|
@@ -1428,14 +1427,14 @@ const FactoryOtherMenuItem = (accessor) => {
|
|
|
1428
1427
|
|
|
1429
1428
|
//#endregion
|
|
1430
1429
|
//#region src/views/components/MoreNumfmtType.tsx
|
|
1431
|
-
const MORE_NUMFMT_TYPE_KEY = "
|
|
1432
|
-
const OPTIONS_KEY = "
|
|
1430
|
+
const MORE_NUMFMT_TYPE_KEY = "sheets-numfmt-ui.moreNumfmtType";
|
|
1431
|
+
const OPTIONS_KEY = "sheets-numfmt-ui.moreNumfmtType.options";
|
|
1433
1432
|
function MoreNumfmtType(props) {
|
|
1434
1433
|
const { value } = props;
|
|
1435
1434
|
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
1436
1435
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1437
1436
|
className: "univer-text-sm",
|
|
1438
|
-
children: value !== null && value !== void 0 ? value : localeService.t("
|
|
1437
|
+
children: value !== null && value !== void 0 ? value : localeService.t("sheets-numfmt-ui.general")
|
|
1439
1438
|
});
|
|
1440
1439
|
}
|
|
1441
1440
|
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;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/ca-ES.ts
|
|
3
|
-
const locale = {
|
|
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;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -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 = {
|
|
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;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/es-ES.ts
|
|
3
|
-
const locale = {
|
|
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;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/fa-IR.ts
|
|
3
|
-
const locale = {
|
|
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;
|