@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/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CellValueType, CommandType, DEFAULT_TEXT_FORMAT_EXCEL, DependentOn, Disposable, DisposableCollection, ICommandService, IConfigService, ILocalStorageService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, LocaleService, Optional, Plugin, Range, ThemeService, Tools, UniverInstanceType, fromCallback, getNumfmtParseValueFilter, isDefaultFormat, isPatternEqualWithoutDecimal, isRealNum, isTextFormat, merge, numfmt, registerDependencies, toDisposable, touchDependencies, willLoseNumericPrecision } from "@univerjs/core";
|
|
1
|
+
import { CellValueType, CommandType, DEFAULT_TEXT_FORMAT_EXCEL, DependentOn, Disposable, DisposableCollection, ICommandService, IConfigService, ILocalStorageService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, LocaleService, Optional, Plugin, Range, ThemeService, Tools, UniverInstanceType, currencySymbols, fromCallback, getNumfmtParseValueFilter, isDefaultFormat, isPatternEqualWithoutDecimal, isRealNum, isTextFormat, merge, numfmt, registerDependencies, toDisposable, touchDependencies, willLoseNumericPrecision } from "@univerjs/core";
|
|
2
2
|
import { IRenderManagerService } from "@univerjs/engine-render";
|
|
3
|
-
import { AddDecimalCommand, CURRENCYFORMAT, DATEFMTLISG, NUMBERFORMAT, SHEETS_NUMFMT_PLUGIN_CONFIG_KEY, SetCurrencyCommand, SetNumfmtCommand, SetPercentCommand, SheetsNumfmtCellContentController, SubtractDecimalCommand, UniverSheetsNumfmtPlugin,
|
|
3
|
+
import { AddDecimalCommand, CURRENCYFORMAT, DATEFMTLISG, NUMBERFORMAT, SHEETS_NUMFMT_PLUGIN_CONFIG_KEY, SetCurrencyCommand, SetNumfmtCommand, SetPercentCommand, SheetsNumfmtCellContentController, SubtractDecimalCommand, UniverSheetsNumfmtPlugin, getCurrencyFormatOptions, getCurrencySymbolByLocale, getCurrencySymbolIconByLocale, getCurrencyType, getDateFormatOptions, getDecimalFromPattern, getNumberFormatOptions, getPatternPreview, getPatternPreviewIgnoreGeneral, getPatternType, isPatternHasDecimal, localeCurrencySymbolMap, setPatternDecimal } from "@univerjs/sheets-numfmt";
|
|
4
4
|
import { CellAlertManagerService, CellAlertType, HoverManagerService, IEditorBridgeService, IRepeatLastActionService, RepeatLastActionPermission, SheetSkeletonManagerService, UniverSheetsUIPlugin, deriveStateFromActiveSheet$, getCurrentRangeDisable$ } from "@univerjs/sheets-ui";
|
|
5
5
|
import { AFTER_CELL_EDIT, BEFORE_CELL_EDIT, INTERCEPTOR_POINT, INumfmtService, RangeProtectionPermissionEditPoint, RemoveNumfmtMutation, SetNumfmtMutation, SetRangeValuesCommand, SheetInterceptorService, SheetsSelectionsService, WorkbookEditablePermission, WorksheetEditPermission, WorksheetSetCellStylePermission, factoryRemoveNumfmtUndoMutation, factorySetNumfmtUndoMutation, transformCellsToRange } from "@univerjs/sheets";
|
|
6
6
|
import { ComponentManager, ILayoutService, IMenuManagerService, ISidebarService, IZenZoneService, MenuItemType, RibbonStartGroup, getMenuHiddenObservable, useDependency } from "@univerjs/ui";
|
|
@@ -14,7 +14,7 @@ import { stripErrorMargin } from "@univerjs/engine-formula";
|
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "@univerjs/sheets-numfmt-ui";
|
|
17
|
-
var version = "0.
|
|
17
|
+
var version = "0.25.0-insiders.20260608-e4336f7";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/config/config.ts
|
|
@@ -23,7 +23,7 @@ const configSymbol = Symbol(SHEETS_NUMFMT_UI_PLUGIN_CONFIG_KEY);
|
|
|
23
23
|
const defaultPluginConfig = {};
|
|
24
24
|
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region \0@oxc-project+runtime@0.
|
|
26
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorateParam.js
|
|
27
27
|
function __decorateParam(paramIndex, decorator) {
|
|
28
28
|
return function(target, key) {
|
|
29
29
|
decorator(target, key, paramIndex);
|
|
@@ -31,7 +31,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region \0@oxc-project+runtime@0.
|
|
34
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorate.js
|
|
35
35
|
function __decorate(decorators, target, key, desc) {
|
|
36
36
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
37
37
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -89,8 +89,8 @@ let NumfmtAlertRenderController = class NumfmtAlertRenderController extends Disp
|
|
|
89
89
|
}
|
|
90
90
|
this._cellAlertManagerService.showAlert({
|
|
91
91
|
type: CellAlertType.ERROR,
|
|
92
|
-
title: this._localeService.t("info.error"),
|
|
93
|
-
message: this._localeService.t("info.forceStringInfo"),
|
|
92
|
+
title: this._localeService.t("sheets-numfmt-ui.info.error"),
|
|
93
|
+
message: this._localeService.t("sheets-numfmt-ui.info.forceStringInfo"),
|
|
94
94
|
location,
|
|
95
95
|
width: 200,
|
|
96
96
|
height: 74,
|
|
@@ -332,7 +332,7 @@ const AccountingPanel = (props) => {
|
|
|
332
332
|
label: key,
|
|
333
333
|
value: key
|
|
334
334
|
})), []);
|
|
335
|
-
const
|
|
335
|
+
const localeService = useDependency(LocaleService);
|
|
336
336
|
action.current = () => setPatternDecimal(`_("${suffix}"* #,##0${decimal > 0 ? ".0" : ""}_)`, decimal);
|
|
337
337
|
const handleSelect = (v) => {
|
|
338
338
|
setSuffix(v);
|
|
@@ -349,7 +349,7 @@ const AccountingPanel = (props) => {
|
|
|
349
349
|
className: "option",
|
|
350
350
|
children: [/* @__PURE__ */ jsx("div", {
|
|
351
351
|
className: "univer-text-sm univer-text-gray-400",
|
|
352
|
-
children: t("
|
|
352
|
+
children: localeService.t("sheets-numfmt-ui.decimalLength")
|
|
353
353
|
}), /* @__PURE__ */ jsx("div", {
|
|
354
354
|
className: "univer-mt-2 univer-w-32",
|
|
355
355
|
children: /* @__PURE__ */ jsx(InputNumber, {
|
|
@@ -365,7 +365,7 @@ const AccountingPanel = (props) => {
|
|
|
365
365
|
className: "option",
|
|
366
366
|
children: [/* @__PURE__ */ jsx("div", {
|
|
367
367
|
className: "univer-text-sm univer-text-gray-400",
|
|
368
|
-
children: t("
|
|
368
|
+
children: localeService.t("sheets-numfmt-ui.currencyType")
|
|
369
369
|
}), /* @__PURE__ */ jsx("div", {
|
|
370
370
|
className: "univer-mt-2 univer-w-36",
|
|
371
371
|
children: /* @__PURE__ */ jsx(Select, {
|
|
@@ -377,7 +377,7 @@ const AccountingPanel = (props) => {
|
|
|
377
377
|
})]
|
|
378
378
|
}), /* @__PURE__ */ jsx("div", {
|
|
379
379
|
className: "univer-mt-4 univer-text-sm univer-text-gray-400",
|
|
380
|
-
children: t("
|
|
380
|
+
children: localeService.t("sheets-numfmt-ui.accountingDes")
|
|
381
381
|
})] });
|
|
382
382
|
};
|
|
383
383
|
|
|
@@ -387,7 +387,7 @@ const isCurrencyPanel = (pattern) => {
|
|
|
387
387
|
return !!getCurrencyType(pattern) && !pattern.startsWith("_(");
|
|
388
388
|
};
|
|
389
389
|
const CurrencyPanel = (props) => {
|
|
390
|
-
const
|
|
390
|
+
const localeService = useDependency(LocaleService);
|
|
391
391
|
const userHabitCurrency = useContext(UserHabitCurrencyContext);
|
|
392
392
|
const [suffix, setSuffix] = useState(() => getCurrencyType(props.defaultPattern) || userHabitCurrency[0]);
|
|
393
393
|
const [decimal, setDecimal] = useState(() => getDecimalFromPattern(props.defaultPattern || "", 2));
|
|
@@ -425,7 +425,7 @@ const CurrencyPanel = (props) => {
|
|
|
425
425
|
className: "option",
|
|
426
426
|
children: [/* @__PURE__ */ jsx("div", {
|
|
427
427
|
className: "univer-text-sm univer-text-gray-400",
|
|
428
|
-
children: t("
|
|
428
|
+
children: localeService.t("sheets-numfmt-ui.decimalLength")
|
|
429
429
|
}), /* @__PURE__ */ jsx("div", {
|
|
430
430
|
className: "univer-mt-2 univer-w-32",
|
|
431
431
|
children: /* @__PURE__ */ jsx(InputNumber, {
|
|
@@ -439,7 +439,7 @@ const CurrencyPanel = (props) => {
|
|
|
439
439
|
className: "option",
|
|
440
440
|
children: [/* @__PURE__ */ jsx("div", {
|
|
441
441
|
className: "univer-text-sm univer-text-gray-400",
|
|
442
|
-
children: t("
|
|
442
|
+
children: localeService.t("sheets-numfmt-ui.currencyType")
|
|
443
443
|
}), /* @__PURE__ */ jsx("div", {
|
|
444
444
|
className: "univer-mt-2 univer-w-36",
|
|
445
445
|
children: /* @__PURE__ */ jsx(Select, {
|
|
@@ -452,7 +452,7 @@ const CurrencyPanel = (props) => {
|
|
|
452
452
|
}),
|
|
453
453
|
/* @__PURE__ */ jsx("div", {
|
|
454
454
|
className: "label univer-mt-4",
|
|
455
|
-
children: t("
|
|
455
|
+
children: localeService.t("sheets-numfmt-ui.negType")
|
|
456
456
|
}),
|
|
457
457
|
/* @__PURE__ */ jsx("div", {
|
|
458
458
|
className: "univer-mt-2",
|
|
@@ -464,7 +464,7 @@ const CurrencyPanel = (props) => {
|
|
|
464
464
|
}),
|
|
465
465
|
/* @__PURE__ */ jsx("div", {
|
|
466
466
|
className: "univer-mt-4 univer-text-sm univer-text-gray-400",
|
|
467
|
-
children: t("
|
|
467
|
+
children: localeService.t("sheets-numfmt-ui.currencyDes")
|
|
468
468
|
})
|
|
469
469
|
] });
|
|
470
470
|
};
|
|
@@ -513,10 +513,10 @@ function CustomFormat(props) {
|
|
|
513
513
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
514
514
|
/* @__PURE__ */ jsx("div", {
|
|
515
515
|
className: "univer-mt-4 univer-text-sm univer-text-gray-400",
|
|
516
|
-
children: localeService.t("
|
|
516
|
+
children: localeService.t("sheets-numfmt-ui.customFormat")
|
|
517
517
|
}),
|
|
518
518
|
/* @__PURE__ */ jsx(Input, {
|
|
519
|
-
placeholder: localeService.t("
|
|
519
|
+
placeholder: localeService.t("sheets-numfmt-ui.customFormat"),
|
|
520
520
|
onBlur: handleBlur,
|
|
521
521
|
value: pattern,
|
|
522
522
|
onChange: setPattern,
|
|
@@ -535,7 +535,7 @@ function CustomFormat(props) {
|
|
|
535
535
|
}),
|
|
536
536
|
/* @__PURE__ */ jsx("div", {
|
|
537
537
|
className: "univer-mt-3 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
|
|
538
|
-
children: localeService.t("
|
|
538
|
+
children: localeService.t("sheets-numfmt-ui.customFormatDes")
|
|
539
539
|
})
|
|
540
540
|
] });
|
|
541
541
|
}
|
|
@@ -570,7 +570,7 @@ function DatePanel(props) {
|
|
|
570
570
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
571
571
|
/* @__PURE__ */ jsx("div", {
|
|
572
572
|
className: "univer-mt-4 univer-text-sm univer-text-gray-400",
|
|
573
|
-
children: localeService.t("
|
|
573
|
+
children: localeService.t("sheets-numfmt-ui.dateType")
|
|
574
574
|
}),
|
|
575
575
|
/* @__PURE__ */ jsx("div", {
|
|
576
576
|
className: "univer-mt-2",
|
|
@@ -582,7 +582,7 @@ function DatePanel(props) {
|
|
|
582
582
|
}),
|
|
583
583
|
/* @__PURE__ */ jsx("div", {
|
|
584
584
|
className: "univer-mt-3.5 univer-text-sm/5 univer-text-gray-600 dark:!univer-text-gray-200",
|
|
585
|
-
children: localeService.t("
|
|
585
|
+
children: localeService.t("sheets-numfmt-ui.dateDes")
|
|
586
586
|
})
|
|
587
587
|
] });
|
|
588
588
|
}
|
|
@@ -591,11 +591,11 @@ function DatePanel(props) {
|
|
|
591
591
|
//#region src/views/components/General.tsx
|
|
592
592
|
const isGeneralPanel = (pattern) => !pattern;
|
|
593
593
|
const GeneralPanel = (props) => {
|
|
594
|
-
const
|
|
594
|
+
const localeService = useDependency(LocaleService);
|
|
595
595
|
props.action.current = () => "";
|
|
596
596
|
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", {
|
|
597
597
|
className: "univer-mt-3.5 univer-text-sm/5 univer-text-gray-600 dark:!univer-text-gray-200",
|
|
598
|
-
children: t("
|
|
598
|
+
children: localeService.t("sheets-numfmt-ui.generalDes")
|
|
599
599
|
}) });
|
|
600
600
|
};
|
|
601
601
|
|
|
@@ -626,7 +626,7 @@ function ThousandthPercentilePanel(props) {
|
|
|
626
626
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
627
627
|
/* @__PURE__ */ jsx("div", {
|
|
628
628
|
className: "univer-mt-4 univer-text-sm univer-text-gray-400",
|
|
629
|
-
children: localeService.t("
|
|
629
|
+
children: localeService.t("sheets-numfmt-ui.decimalLength")
|
|
630
630
|
}),
|
|
631
631
|
/* @__PURE__ */ jsx("div", {
|
|
632
632
|
className: "univer-mt-2",
|
|
@@ -640,7 +640,7 @@ function ThousandthPercentilePanel(props) {
|
|
|
640
640
|
}),
|
|
641
641
|
/* @__PURE__ */ jsxs("div", {
|
|
642
642
|
className: "univer-mt-4 univer-text-sm univer-text-gray-400",
|
|
643
|
-
children: [" ", localeService.t("
|
|
643
|
+
children: [" ", localeService.t("sheets-numfmt-ui.negType")]
|
|
644
644
|
}),
|
|
645
645
|
/* @__PURE__ */ jsx("div", {
|
|
646
646
|
className: "univer-mt-2",
|
|
@@ -652,7 +652,7 @@ function ThousandthPercentilePanel(props) {
|
|
|
652
652
|
}),
|
|
653
653
|
/* @__PURE__ */ jsx("div", {
|
|
654
654
|
className: "univer-mt-3.5 univer-text-sm/5 univer-text-gray-600 dark:!univer-text-gray-200",
|
|
655
|
-
children: localeService.t("
|
|
655
|
+
children: localeService.t("sheets-numfmt-ui.thousandthPercentileDes")
|
|
656
656
|
})
|
|
657
657
|
] });
|
|
658
658
|
}
|
|
@@ -663,37 +663,36 @@ const SheetNumfmtPanel = (props) => {
|
|
|
663
663
|
const { defaultValue, defaultPattern, row, col } = props.value;
|
|
664
664
|
const localeService = useDependency(LocaleService);
|
|
665
665
|
const getCurrentPattern = useRef(() => "");
|
|
666
|
-
const t = localeService.t;
|
|
667
666
|
const nextTick = useNextTick();
|
|
668
667
|
const typeOptions = useMemo(() => [
|
|
669
668
|
{
|
|
670
|
-
label: "
|
|
669
|
+
label: "sheets-numfmt-ui.general",
|
|
671
670
|
component: GeneralPanel
|
|
672
671
|
},
|
|
673
672
|
{
|
|
674
|
-
label: "
|
|
673
|
+
label: "sheets-numfmt-ui.accounting",
|
|
675
674
|
component: AccountingPanel
|
|
676
675
|
},
|
|
677
676
|
{
|
|
678
|
-
label: "
|
|
677
|
+
label: "sheets-numfmt-ui.currency",
|
|
679
678
|
component: CurrencyPanel
|
|
680
679
|
},
|
|
681
680
|
{
|
|
682
|
-
label: "
|
|
681
|
+
label: "sheets-numfmt-ui.date",
|
|
683
682
|
component: DatePanel
|
|
684
683
|
},
|
|
685
684
|
{
|
|
686
|
-
label: "
|
|
685
|
+
label: "sheets-numfmt-ui.thousandthPercentile",
|
|
687
686
|
component: ThousandthPercentilePanel
|
|
688
687
|
},
|
|
689
688
|
{
|
|
690
|
-
label: "
|
|
689
|
+
label: "sheets-numfmt-ui.customFormat",
|
|
691
690
|
component: CustomFormat
|
|
692
691
|
}
|
|
693
692
|
].map((item) => ({
|
|
694
693
|
...item,
|
|
695
|
-
label: t(item.label)
|
|
696
|
-
})), []);
|
|
694
|
+
label: localeService.t(item.label)
|
|
695
|
+
})), [localeService]);
|
|
697
696
|
const [type, setType] = useState(findDefaultType);
|
|
698
697
|
const [key, setKey] = useState(() => `${row}_${col}`);
|
|
699
698
|
const { mark, userHabitCurrency } = useCurrencyOptions(() => setKey(`${row}_${col}_userCurrency'`));
|
|
@@ -757,7 +756,7 @@ const SheetNumfmtPanel = (props) => {
|
|
|
757
756
|
children: [/* @__PURE__ */ jsxs("div", { children: [
|
|
758
757
|
/* @__PURE__ */ jsx("div", {
|
|
759
758
|
className: "univer-mt-3.5 univer-text-sm univer-text-gray-400",
|
|
760
|
-
children: t("
|
|
759
|
+
children: localeService.t("sheets-numfmt-ui.numfmtType")
|
|
761
760
|
}),
|
|
762
761
|
/* @__PURE__ */ jsx("div", {
|
|
763
762
|
className: "univer-mt-2",
|
|
@@ -780,18 +779,18 @@ const SheetNumfmtPanel = (props) => {
|
|
|
780
779
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
781
780
|
onClick: handleCancel,
|
|
782
781
|
className: "univer-mr-3",
|
|
783
|
-
children: t("
|
|
782
|
+
children: localeService.t("sheets-numfmt-ui.cancel")
|
|
784
783
|
}), /* @__PURE__ */ jsx(Button, {
|
|
785
784
|
variant: "primary",
|
|
786
785
|
onClick: handleConfirm,
|
|
787
|
-
children: t("
|
|
786
|
+
children: localeService.t("sheets-numfmt-ui.confirm")
|
|
788
787
|
})]
|
|
789
788
|
})]
|
|
790
789
|
});
|
|
791
790
|
};
|
|
792
791
|
|
|
793
792
|
//#endregion
|
|
794
|
-
//#region \0@oxc-project+runtime@0.
|
|
793
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/typeof.js
|
|
795
794
|
function _typeof(o) {
|
|
796
795
|
"@babel/helpers - typeof";
|
|
797
796
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -802,7 +801,7 @@ function _typeof(o) {
|
|
|
802
801
|
}
|
|
803
802
|
|
|
804
803
|
//#endregion
|
|
805
|
-
//#region \0@oxc-project+runtime@0.
|
|
804
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPrimitive.js
|
|
806
805
|
function toPrimitive(t, r) {
|
|
807
806
|
if ("object" != _typeof(t) || !t) return t;
|
|
808
807
|
var e = t[Symbol.toPrimitive];
|
|
@@ -815,14 +814,14 @@ function toPrimitive(t, r) {
|
|
|
815
814
|
}
|
|
816
815
|
|
|
817
816
|
//#endregion
|
|
818
|
-
//#region \0@oxc-project+runtime@0.
|
|
817
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPropertyKey.js
|
|
819
818
|
function toPropertyKey(t) {
|
|
820
819
|
var i = toPrimitive(t, "string");
|
|
821
820
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
822
821
|
}
|
|
823
822
|
|
|
824
823
|
//#endregion
|
|
825
|
-
//#region \0@oxc-project+runtime@0.
|
|
824
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/defineProperty.js
|
|
826
825
|
function _defineProperty(e, r, t) {
|
|
827
826
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
828
827
|
value: t,
|
|
@@ -913,7 +912,7 @@ let SheetNumfmtUIController = class SheetNumfmtUIController extends Disposable {
|
|
|
913
912
|
}
|
|
914
913
|
};
|
|
915
914
|
this._sidebarDisposable = sidebarService.open({
|
|
916
|
-
header: { title: localeService.t("
|
|
915
|
+
header: { title: localeService.t("sheets-numfmt-ui.title") },
|
|
917
916
|
children: {
|
|
918
917
|
label: SHEET_NUMFMT_PANEL,
|
|
919
918
|
...props
|
|
@@ -1248,63 +1247,63 @@ function canConvertRichTextToNumfmt(body) {
|
|
|
1248
1247
|
const MENU_OPTIONS = (currencySymbol) => {
|
|
1249
1248
|
return [
|
|
1250
1249
|
{
|
|
1251
|
-
label: "
|
|
1250
|
+
label: "sheets-numfmt-ui.general",
|
|
1252
1251
|
pattern: null
|
|
1253
1252
|
},
|
|
1254
1253
|
{
|
|
1255
|
-
label: "
|
|
1254
|
+
label: "sheets-numfmt-ui.text",
|
|
1256
1255
|
pattern: DEFAULT_TEXT_FORMAT_EXCEL
|
|
1257
1256
|
},
|
|
1258
1257
|
"|",
|
|
1259
1258
|
{
|
|
1260
|
-
label: "
|
|
1259
|
+
label: "sheets-numfmt-ui.number",
|
|
1261
1260
|
pattern: "0"
|
|
1262
1261
|
},
|
|
1263
1262
|
{
|
|
1264
|
-
label: "
|
|
1263
|
+
label: "sheets-numfmt-ui.percent",
|
|
1265
1264
|
pattern: "0.00%"
|
|
1266
1265
|
},
|
|
1267
1266
|
{
|
|
1268
|
-
label: "
|
|
1267
|
+
label: "sheets-numfmt-ui.scientific",
|
|
1269
1268
|
pattern: "0.00E+00"
|
|
1270
1269
|
},
|
|
1271
1270
|
"|",
|
|
1272
1271
|
{
|
|
1273
|
-
label: "
|
|
1272
|
+
label: "sheets-numfmt-ui.accounting",
|
|
1274
1273
|
pattern: `"${currencySymbol}" #,##0.00_);[Red]("${currencySymbol}"#,##0.00)`
|
|
1275
1274
|
},
|
|
1276
1275
|
{
|
|
1277
|
-
label: "
|
|
1276
|
+
label: "sheets-numfmt-ui.financialValue",
|
|
1278
1277
|
pattern: "#,##0.00;[Red]#,##0.00"
|
|
1279
1278
|
},
|
|
1280
1279
|
{
|
|
1281
|
-
label: "
|
|
1280
|
+
label: "sheets-numfmt-ui.currency",
|
|
1282
1281
|
pattern: `"${currencySymbol}"#,##0.00_);[Red]("${currencySymbol}"#,##0.00)`
|
|
1283
1282
|
},
|
|
1284
1283
|
{
|
|
1285
|
-
label: "
|
|
1284
|
+
label: "sheets-numfmt-ui.roundingCurrency",
|
|
1286
1285
|
pattern: `"${currencySymbol}"#,##0;[Red]"${currencySymbol}"#,##0`
|
|
1287
1286
|
},
|
|
1288
1287
|
"|",
|
|
1289
1288
|
{
|
|
1290
|
-
label: "
|
|
1289
|
+
label: "sheets-numfmt-ui.date",
|
|
1291
1290
|
pattern: "yyyy-mm-dd;@"
|
|
1292
1291
|
},
|
|
1293
1292
|
{
|
|
1294
|
-
label: "
|
|
1293
|
+
label: "sheets-numfmt-ui.time",
|
|
1295
1294
|
pattern: "am/pm h\":\"mm\":\"ss"
|
|
1296
1295
|
},
|
|
1297
1296
|
{
|
|
1298
|
-
label: "
|
|
1297
|
+
label: "sheets-numfmt-ui.dateTime",
|
|
1299
1298
|
pattern: "yyyy-m-d am/pm h:mm"
|
|
1300
1299
|
},
|
|
1301
1300
|
{
|
|
1302
|
-
label: "
|
|
1301
|
+
label: "sheets-numfmt-ui.timeDuration",
|
|
1303
1302
|
pattern: "h:mm:ss"
|
|
1304
1303
|
},
|
|
1305
1304
|
"|",
|
|
1306
1305
|
{
|
|
1307
|
-
label: "
|
|
1306
|
+
label: "sheets-numfmt-ui.moreFmt",
|
|
1308
1307
|
pattern: ""
|
|
1309
1308
|
}
|
|
1310
1309
|
];
|
|
@@ -1319,8 +1318,8 @@ const CurrencySymbolIconMenuItem = (accessor) => {
|
|
|
1319
1318
|
});
|
|
1320
1319
|
}),
|
|
1321
1320
|
id: SetCurrencyCommand.id,
|
|
1322
|
-
title: "
|
|
1323
|
-
tooltip: "
|
|
1321
|
+
title: "sheets-numfmt-ui.currency",
|
|
1322
|
+
tooltip: "sheets-numfmt-ui.currency",
|
|
1324
1323
|
type: MenuItemType.BUTTON,
|
|
1325
1324
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
|
|
1326
1325
|
disabled$: getCurrentRangeDisable$(accessor, {
|
|
@@ -1334,8 +1333,8 @@ const AddDecimalMenuItem = (accessor) => {
|
|
|
1334
1333
|
return {
|
|
1335
1334
|
icon: "AddDigitsIcon",
|
|
1336
1335
|
id: AddDecimalCommand.id,
|
|
1337
|
-
title: "
|
|
1338
|
-
tooltip: "
|
|
1336
|
+
title: "sheets-numfmt-ui.addDecimal",
|
|
1337
|
+
tooltip: "sheets-numfmt-ui.addDecimal",
|
|
1339
1338
|
type: MenuItemType.BUTTON,
|
|
1340
1339
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
|
|
1341
1340
|
disabled$: getCurrentRangeDisable$(accessor, {
|
|
@@ -1349,8 +1348,8 @@ const SubtractDecimalMenuItem = (accessor) => {
|
|
|
1349
1348
|
return {
|
|
1350
1349
|
icon: "ReduceDigitsIcon",
|
|
1351
1350
|
id: SubtractDecimalCommand.id,
|
|
1352
|
-
title: "
|
|
1353
|
-
tooltip: "
|
|
1351
|
+
title: "sheets-numfmt-ui.subtractDecimal",
|
|
1352
|
+
tooltip: "sheets-numfmt-ui.subtractDecimal",
|
|
1354
1353
|
type: MenuItemType.BUTTON,
|
|
1355
1354
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
|
|
1356
1355
|
disabled$: getCurrentRangeDisable$(accessor, {
|
|
@@ -1364,8 +1363,8 @@ const PercentMenuItem = (accessor) => {
|
|
|
1364
1363
|
return {
|
|
1365
1364
|
icon: "PercentIcon",
|
|
1366
1365
|
id: SetPercentCommand.id,
|
|
1367
|
-
title: "
|
|
1368
|
-
tooltip: "
|
|
1366
|
+
title: "sheets-numfmt-ui.percent",
|
|
1367
|
+
tooltip: "sheets-numfmt-ui.percent",
|
|
1369
1368
|
type: MenuItemType.BUTTON,
|
|
1370
1369
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
|
|
1371
1370
|
disabled$: getCurrentRangeDisable$(accessor, {
|
|
@@ -1391,7 +1390,7 @@ const FactoryOtherMenuItem = (accessor) => {
|
|
|
1391
1390
|
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;
|
|
1392
1391
|
const pattern = numfmtValue === null || numfmtValue === void 0 ? void 0 : numfmtValue.pattern;
|
|
1393
1392
|
const currencySymbol = getCurrencySymbolByLocale(localeService.getCurrentLocale());
|
|
1394
|
-
let value = localeService.t("
|
|
1393
|
+
let value = localeService.t("sheets-numfmt-ui.general");
|
|
1395
1394
|
if (isDefaultFormat(pattern)) {
|
|
1396
1395
|
subscribe.next(value);
|
|
1397
1396
|
return;
|
|
@@ -1399,7 +1398,7 @@ const FactoryOtherMenuItem = (accessor) => {
|
|
|
1399
1398
|
if (pattern) {
|
|
1400
1399
|
const item = MENU_OPTIONS(currencySymbol).filter((item) => typeof item === "object" && item.pattern).find((item) => isPatternEqualWithoutDecimal(pattern, item.pattern));
|
|
1401
1400
|
if (item && typeof item === "object" && item.pattern) value = localeService.t(item.label);
|
|
1402
|
-
else value = localeService.t("
|
|
1401
|
+
else value = localeService.t("sheets-numfmt-ui.moreFmt");
|
|
1403
1402
|
}
|
|
1404
1403
|
subscribe.next(value);
|
|
1405
1404
|
}
|
|
@@ -1407,7 +1406,7 @@ const FactoryOtherMenuItem = (accessor) => {
|
|
|
1407
1406
|
return {
|
|
1408
1407
|
label: MORE_NUMFMT_TYPE_KEY,
|
|
1409
1408
|
id: OpenNumfmtPanelOperator.id,
|
|
1410
|
-
tooltip: "
|
|
1409
|
+
tooltip: "sheets-numfmt-ui.title",
|
|
1411
1410
|
type: MenuItemType.SELECTOR,
|
|
1412
1411
|
slot: true,
|
|
1413
1412
|
selections: [{ label: {
|
|
@@ -1427,14 +1426,14 @@ const FactoryOtherMenuItem = (accessor) => {
|
|
|
1427
1426
|
|
|
1428
1427
|
//#endregion
|
|
1429
1428
|
//#region src/views/components/MoreNumfmtType.tsx
|
|
1430
|
-
const MORE_NUMFMT_TYPE_KEY = "
|
|
1431
|
-
const OPTIONS_KEY = "
|
|
1429
|
+
const MORE_NUMFMT_TYPE_KEY = "sheets-numfmt-ui.moreNumfmtType";
|
|
1430
|
+
const OPTIONS_KEY = "sheets-numfmt-ui.moreNumfmtType.options";
|
|
1432
1431
|
function MoreNumfmtType(props) {
|
|
1433
1432
|
const { value } = props;
|
|
1434
1433
|
const localeService = useDependency(LocaleService);
|
|
1435
1434
|
return /* @__PURE__ */ jsx("span", {
|
|
1436
1435
|
className: "univer-text-sm",
|
|
1437
|
-
children: value !== null && value !== void 0 ? value : localeService.t("
|
|
1436
|
+
children: value !== null && value !== void 0 ? value : localeService.t("sheets-numfmt-ui.general")
|
|
1438
1437
|
});
|
|
1439
1438
|
}
|
|
1440
1439
|
function Options() {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region src/locale/ar-SA.ts
|
|
2
|
+
const locale = { "sheets-numfmt-ui": {
|
|
3
|
+
title: "تنسيق الأرقام",
|
|
4
|
+
numfmtType: "أنواع التنسيق",
|
|
5
|
+
cancel: "إلغاء",
|
|
6
|
+
confirm: "تأكيد",
|
|
7
|
+
general: "عام",
|
|
8
|
+
accounting: "محاسبة",
|
|
9
|
+
text: "نص",
|
|
10
|
+
number: "رقم",
|
|
11
|
+
percent: "نسبة مئوية",
|
|
12
|
+
scientific: "علمي",
|
|
13
|
+
currency: "عملة",
|
|
14
|
+
date: "تاريخ",
|
|
15
|
+
time: "وقت",
|
|
16
|
+
thousandthPercentile: "فاصل الألوف",
|
|
17
|
+
preview: "معاينة",
|
|
18
|
+
dateTime: "التاريخ والوقت",
|
|
19
|
+
decimalLength: "المنازل العشرية",
|
|
20
|
+
currencyType: "رمز العملة",
|
|
21
|
+
moreFmt: "التنسيقات",
|
|
22
|
+
financialValue: "قيمة مالية",
|
|
23
|
+
roundingCurrency: "تقريب العملة",
|
|
24
|
+
timeDuration: "المدة الزمنية",
|
|
25
|
+
currencyDes: "يُستخدم تنسيق العملة لتمثيل قيم العملة العامة. يقوم تنسيق المحاسبة بمحاذاة عمود من القيم مع النقاط العشرية",
|
|
26
|
+
accountingDes: "يقوم تنسيق الأرقام المحاسبي بمحاذاة عمود من القيم مع رموز العملة والنقاط العشرية",
|
|
27
|
+
dateType: "نوع التاريخ",
|
|
28
|
+
dateDes: "يعرض تنسيق التاريخ قيم سلسلة التاريخ والوقت كقيم تاريخ.",
|
|
29
|
+
negType: "نوع العدد السالب",
|
|
30
|
+
generalDes: "لا يحتوي التنسيق العام على أي تنسيق رقم محدد.",
|
|
31
|
+
thousandthPercentileDes: "يُستخدم تنسيق النسبة المئوية لتمثيل الأرقام العادية. توفر تنسيقات العملة والمحاسبة تنسيقًا متخصصًا لحسابات قيم العملة.",
|
|
32
|
+
addDecimal: "زيادة المنازل العشرية",
|
|
33
|
+
subtractDecimal: "تقليل المنازل العشرية",
|
|
34
|
+
customFormat: "تنسيق مخصص",
|
|
35
|
+
customFormatDes: "إنشاء تنسيقات أرقام مخصصة استنادًا إلى التنسيقات الموجودة.",
|
|
36
|
+
info: {
|
|
37
|
+
error: "خطأ",
|
|
38
|
+
forceStringInfo: "رقم مخزن كنص"
|
|
39
|
+
}
|
|
40
|
+
} };
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
export { locale as default };
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/locale/ca-ES.ts
|
|
2
|
-
const locale = {
|
|
2
|
+
const locale = { "sheets-numfmt-ui": {
|
|
3
3
|
title: "Format de nombre",
|
|
4
4
|
numfmtType: "Tipus de format",
|
|
5
5
|
cancel: "Cancel·lar",
|
|
@@ -32,8 +32,12 @@ const locale = { sheet: { numfmt: {
|
|
|
32
32
|
addDecimal: "Augmentar decimals",
|
|
33
33
|
subtractDecimal: "Disminuir decimals",
|
|
34
34
|
customFormat: "Format personalitzat",
|
|
35
|
-
customFormatDes: "Genera formats de nombre personalitzats basats en els existents."
|
|
36
|
-
|
|
35
|
+
customFormatDes: "Genera formats de nombre personalitzats basats en els existents.",
|
|
36
|
+
info: {
|
|
37
|
+
error: "Error",
|
|
38
|
+
forceStringInfo: "Número emmagatzemat com a text"
|
|
39
|
+
}
|
|
40
|
+
} };
|
|
37
41
|
|
|
38
42
|
//#endregion
|
|
39
43
|
export { locale as default };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region src/locale/de-DE.ts
|
|
2
|
+
const locale = { "sheets-numfmt-ui": {
|
|
3
|
+
title: "Zahlenformat",
|
|
4
|
+
numfmtType: "Formattypen",
|
|
5
|
+
cancel: "Abbrechen",
|
|
6
|
+
confirm: "Bestätigen",
|
|
7
|
+
general: "Allgemein",
|
|
8
|
+
accounting: "Buchhaltung",
|
|
9
|
+
text: "Text",
|
|
10
|
+
number: "Zahl",
|
|
11
|
+
percent: "Prozent",
|
|
12
|
+
scientific: "Wissenschaftlich",
|
|
13
|
+
currency: "Währung",
|
|
14
|
+
date: "Datum",
|
|
15
|
+
time: "Zeit",
|
|
16
|
+
thousandthPercentile: "Tausendertrennzeichen",
|
|
17
|
+
preview: "Vorschau",
|
|
18
|
+
dateTime: "Datum und Uhrzeit",
|
|
19
|
+
decimalLength: "Dezimalstellen",
|
|
20
|
+
currencyType: "Währungssymbol",
|
|
21
|
+
moreFmt: "Formate",
|
|
22
|
+
financialValue: "Finanzwert",
|
|
23
|
+
roundingCurrency: "Währung aufrunden",
|
|
24
|
+
timeDuration: "Dauer",
|
|
25
|
+
currencyDes: "Das Währungsformat wird verwendet, um allgemeine Währungswerte darzustellen. Das Buchhaltungsformat richtet eine Spalte von Werten an Dezimalpunkten aus",
|
|
26
|
+
accountingDes: "Das Buchhaltungszahlenformat richtet eine Spalte von Werten an Währungssymbolen und Dezimalpunkten aus",
|
|
27
|
+
dateType: "Datumstyp",
|
|
28
|
+
dateDes: "Das Datumsformat stellt Datums- und Zeitserienwerte als Datumswerte dar.",
|
|
29
|
+
negType: "Negativer Zahlentyp",
|
|
30
|
+
generalDes: "Das allgemeine Format enthält kein spezifisches Zahlenformat.",
|
|
31
|
+
thousandthPercentileDes: "Das Tausendertrennzeichenformat wird für die Darstellung gewöhnlicher Zahlen verwendet. Währungs- und Buchhaltungsformate bieten ein spezialisiertes Format für Währungswertberechnungen.",
|
|
32
|
+
addDecimal: "Dezimalstellen erhöhen",
|
|
33
|
+
subtractDecimal: "Dezimalstellen verringern",
|
|
34
|
+
customFormat: "Benutzerdefiniertes Format",
|
|
35
|
+
customFormatDes: "Benutzerdefinierte Zahlenformate basierend auf vorhandenen Formaten erstellen.",
|
|
36
|
+
info: {
|
|
37
|
+
error: "Fehler",
|
|
38
|
+
forceStringInfo: "Zahl als Text gespeichert"
|
|
39
|
+
}
|
|
40
|
+
} };
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
export { locale as default };
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -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 = {
|
|
17
|
+
const locale = { "sheets-numfmt-ui": {
|
|
18
18
|
title: "Number format",
|
|
19
19
|
numfmtType: "Format types",
|
|
20
20
|
cancel: "Cancel",
|
|
@@ -47,8 +47,12 @@ const locale = { sheet: { numfmt: {
|
|
|
47
47
|
addDecimal: "Increase decimal places",
|
|
48
48
|
subtractDecimal: "Decreasing decimal places",
|
|
49
49
|
customFormat: "Custom Format",
|
|
50
|
-
customFormatDes: "Generate custom number formats based on existing formats."
|
|
51
|
-
|
|
50
|
+
customFormatDes: "Generate custom number formats based on existing formats.",
|
|
51
|
+
info: {
|
|
52
|
+
error: "Error",
|
|
53
|
+
forceStringInfo: "Number stored as text"
|
|
54
|
+
}
|
|
55
|
+
} };
|
|
52
56
|
|
|
53
57
|
//#endregion
|
|
54
58
|
export { locale as default };
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/locale/es-ES.ts
|
|
2
|
-
const locale = {
|
|
2
|
+
const locale = { "sheets-numfmt-ui": {
|
|
3
3
|
title: "Formato de número",
|
|
4
4
|
numfmtType: "Tipos de formato",
|
|
5
5
|
cancel: "Cancelar",
|
|
@@ -32,8 +32,12 @@ const locale = { sheet: { numfmt: {
|
|
|
32
32
|
addDecimal: "Aumentar decimales",
|
|
33
33
|
subtractDecimal: "Disminuir decimales",
|
|
34
34
|
customFormat: "Formato personalizado",
|
|
35
|
-
customFormatDes: "Generar formatos de número personalizados basados en los existentes."
|
|
36
|
-
|
|
35
|
+
customFormatDes: "Generar formatos de número personalizados basados en los existentes.",
|
|
36
|
+
info: {
|
|
37
|
+
error: "Error",
|
|
38
|
+
forceStringInfo: "Número almacenado como texto"
|
|
39
|
+
}
|
|
40
|
+
} };
|
|
37
41
|
|
|
38
42
|
//#endregion
|
|
39
43
|
export { locale as default };
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/locale/fa-IR.ts
|
|
2
|
-
const locale = {
|
|
2
|
+
const locale = { "sheets-numfmt-ui": {
|
|
3
3
|
title: "قالببندی عدد",
|
|
4
4
|
numfmtType: "انواع قالببندی",
|
|
5
5
|
cancel: "انصراف",
|
|
@@ -32,8 +32,12 @@ const locale = { sheet: { numfmt: {
|
|
|
32
32
|
addDecimal: "افزایش اعشار",
|
|
33
33
|
subtractDecimal: "کاهش اعشار",
|
|
34
34
|
customFormat: "قالببندی سفارشی",
|
|
35
|
-
customFormatDes: "ایجاد قالببندیهای عددی سفارشی بر اساس قالببندیهای موجود."
|
|
36
|
-
|
|
35
|
+
customFormatDes: "ایجاد قالببندیهای عددی سفارشی بر اساس قالببندیهای موجود.",
|
|
36
|
+
info: {
|
|
37
|
+
error: "خطا",
|
|
38
|
+
forceStringInfo: "عدد به عنوان متن ذخیره شده"
|
|
39
|
+
}
|
|
40
|
+
} };
|
|
37
41
|
|
|
38
42
|
//#endregion
|
|
39
43
|
export { locale as default };
|