@univerjs/sheets-numfmt-ui 1.0.0-beta.0 → 1.0.0-beta.1

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 (83) hide show
  1. package/lib/cjs/index.js +70 -47
  2. package/lib/cjs/locale/ar-SA.js +2 -2
  3. package/lib/cjs/locale/ca-ES.js +2 -2
  4. package/lib/cjs/locale/de-DE.js +2 -2
  5. package/lib/cjs/locale/en-US.js +2 -2
  6. package/lib/cjs/locale/es-ES.js +2 -2
  7. package/lib/cjs/locale/fa-IR.js +2 -2
  8. package/lib/cjs/locale/fr-FR.js +2 -2
  9. package/lib/cjs/locale/id-ID.js +2 -2
  10. package/lib/cjs/locale/it-IT.js +2 -2
  11. package/lib/cjs/locale/ja-JP.js +2 -2
  12. package/lib/cjs/locale/ko-KR.js +2 -2
  13. package/lib/cjs/locale/pl-PL.js +2 -2
  14. package/lib/cjs/locale/pt-BR.js +2 -2
  15. package/lib/cjs/locale/ru-RU.js +2 -2
  16. package/lib/cjs/locale/sk-SK.js +2 -2
  17. package/lib/cjs/locale/vi-VN.js +2 -2
  18. package/lib/cjs/locale/zh-CN.js +2 -2
  19. package/lib/cjs/locale/zh-HK.js +2 -2
  20. package/lib/cjs/locale/zh-TW.js +2 -2
  21. package/lib/es/index.js +75 -52
  22. package/lib/es/locale/ar-SA.js +2 -2
  23. package/lib/es/locale/ca-ES.js +2 -2
  24. package/lib/es/locale/de-DE.js +2 -2
  25. package/lib/es/locale/en-US.js +2 -2
  26. package/lib/es/locale/es-ES.js +2 -2
  27. package/lib/es/locale/fa-IR.js +2 -2
  28. package/lib/es/locale/fr-FR.js +2 -2
  29. package/lib/es/locale/id-ID.js +2 -2
  30. package/lib/es/locale/it-IT.js +2 -2
  31. package/lib/es/locale/ja-JP.js +2 -2
  32. package/lib/es/locale/ko-KR.js +2 -2
  33. package/lib/es/locale/pl-PL.js +2 -2
  34. package/lib/es/locale/pt-BR.js +2 -2
  35. package/lib/es/locale/ru-RU.js +2 -2
  36. package/lib/es/locale/sk-SK.js +2 -2
  37. package/lib/es/locale/vi-VN.js +2 -2
  38. package/lib/es/locale/zh-CN.js +2 -2
  39. package/lib/es/locale/zh-HK.js +2 -2
  40. package/lib/es/locale/zh-TW.js +2 -2
  41. package/lib/index.js +75 -52
  42. package/lib/locale/ar-SA.js +2 -2
  43. package/lib/locale/ca-ES.js +2 -2
  44. package/lib/locale/de-DE.js +2 -2
  45. package/lib/locale/en-US.js +2 -2
  46. package/lib/locale/es-ES.js +2 -2
  47. package/lib/locale/fa-IR.js +2 -2
  48. package/lib/locale/fr-FR.js +2 -2
  49. package/lib/locale/id-ID.js +2 -2
  50. package/lib/locale/it-IT.js +2 -2
  51. package/lib/locale/ja-JP.js +2 -2
  52. package/lib/locale/ko-KR.js +2 -2
  53. package/lib/locale/pl-PL.js +2 -2
  54. package/lib/locale/pt-BR.js +2 -2
  55. package/lib/locale/ru-RU.js +2 -2
  56. package/lib/locale/sk-SK.js +2 -2
  57. package/lib/locale/vi-VN.js +2 -2
  58. package/lib/locale/zh-CN.js +2 -2
  59. package/lib/locale/zh-HK.js +2 -2
  60. package/lib/locale/zh-TW.js +2 -2
  61. package/lib/types/controllers/numfmt-alert-render.controller.d.ts +10 -5
  62. package/lib/types/locale/en-US.d.ts +1 -1
  63. package/lib/umd/index.js +1 -1
  64. package/lib/umd/locale/ar-SA.js +1 -1
  65. package/lib/umd/locale/ca-ES.js +1 -1
  66. package/lib/umd/locale/de-DE.js +1 -1
  67. package/lib/umd/locale/en-US.js +1 -1
  68. package/lib/umd/locale/es-ES.js +1 -1
  69. package/lib/umd/locale/fa-IR.js +1 -1
  70. package/lib/umd/locale/fr-FR.js +1 -1
  71. package/lib/umd/locale/id-ID.js +1 -1
  72. package/lib/umd/locale/it-IT.js +1 -1
  73. package/lib/umd/locale/ja-JP.js +1 -1
  74. package/lib/umd/locale/ko-KR.js +1 -1
  75. package/lib/umd/locale/pl-PL.js +1 -1
  76. package/lib/umd/locale/pt-BR.js +1 -1
  77. package/lib/umd/locale/ru-RU.js +1 -1
  78. package/lib/umd/locale/sk-SK.js +1 -1
  79. package/lib/umd/locale/vi-VN.js +1 -1
  80. package/lib/umd/locale/zh-CN.js +1 -1
  81. package/lib/umd/locale/zh-HK.js +1 -1
  82. package/lib/umd/locale/zh-TW.js +1 -1
  83. package/package.json +10 -10
package/lib/cjs/index.js CHANGED
@@ -586,7 +586,7 @@ const menuSchema = { [_univerjs_ui.RibbonStartGroup.NUMBER]: {
586
586
  //#endregion
587
587
  //#region package.json
588
588
  var name = "@univerjs/sheets-numfmt-ui";
589
- var version = "1.0.0-beta.0";
589
+ var version = "1.0.0-beta.1";
590
590
 
591
591
  //#endregion
592
592
  //#region src/config/config.ts
@@ -1293,73 +1293,96 @@ ComponentsController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)
1293
1293
  //#region src/controllers/numfmt-alert-render.controller.ts
1294
1294
  const ALERT_KEY = "SHEET_NUMFMT_ALERT";
1295
1295
  let NumfmtAlertRenderController = class NumfmtAlertRenderController extends _univerjs_core.Disposable {
1296
- constructor(_context, _hoverManagerService, _cellAlertManagerService, _localeService, _numfmtService, _configService) {
1296
+ constructor(_context, _selectionManagerService, _cellAlertManagerService, _localeService, _numfmtService, _configService, _commandService, _univerInstanceService) {
1297
1297
  super();
1298
1298
  this._context = _context;
1299
- this._hoverManagerService = _hoverManagerService;
1299
+ this._selectionManagerService = _selectionManagerService;
1300
1300
  this._cellAlertManagerService = _cellAlertManagerService;
1301
1301
  this._localeService = _localeService;
1302
1302
  this._numfmtService = _numfmtService;
1303
1303
  this._configService = _configService;
1304
+ this._commandService = _commandService;
1305
+ this._univerInstanceService = _univerInstanceService;
1304
1306
  this._init();
1305
1307
  }
1306
1308
  _init() {
1307
1309
  this._initCellAlertPopup();
1308
1310
  }
1309
1311
  _initCellAlertPopup() {
1310
- this.disposeWithMe(this._hoverManagerService.currentCell$.pipe((0, rxjs.debounceTime)(100)).subscribe((cellPos) => {
1311
- if (cellPos) {
1312
- const location = cellPos.location;
1313
- const workbook = this._context.unit;
1314
- const worksheet = workbook.getActiveSheet();
1315
- if (!worksheet) return this._hideAlert();
1316
- const unitId = location.unitId;
1317
- const sheetId = location.subUnitId;
1318
- let numfmtValue;
1319
- const cellData = worksheet.getCell(location.row, location.col);
1320
- if (cellData === null || cellData === void 0 ? void 0 : cellData.s) {
1321
- const style = workbook.getStyles().get(cellData.s);
1322
- if (style === null || style === void 0 ? void 0 : style.n) numfmtValue = style.n;
1323
- }
1324
- if (!numfmtValue) numfmtValue = this._numfmtService.getValue(unitId, sheetId, location.row, location.col);
1325
- if (!numfmtValue) {
1326
- this._hideAlert();
1327
- return;
1328
- }
1329
- if ((0, _univerjs_core.isTextFormat)(numfmtValue.pattern) && _univerjs_core.Tools.isDefine(cellData === null || cellData === void 0 ? void 0 : cellData.v) && (0, _univerjs_core.isRealNum)(cellData.v)) {
1330
- var _this$_configService$, _currentAlert$alert;
1331
- if ((_this$_configService$ = this._configService.getConfig(_univerjs_sheets_numfmt.SHEETS_NUMFMT_PLUGIN_CONFIG_KEY)) === null || _this$_configService$ === void 0 ? void 0 : _this$_configService$.disableTextFormatAlert) return;
1332
- const currentAlert = this._cellAlertManagerService.currentAlert.get(ALERT_KEY);
1333
- const currentLoc = currentAlert === null || currentAlert === void 0 || (_currentAlert$alert = currentAlert.alert) === null || _currentAlert$alert === void 0 ? void 0 : _currentAlert$alert.location;
1334
- if (currentLoc && currentLoc.row === location.row && currentLoc.col === location.col && currentLoc.subUnitId === location.subUnitId && currentLoc.unitId === location.unitId) {
1335
- this._hideAlert();
1336
- return;
1337
- }
1338
- this._cellAlertManagerService.showAlert({
1339
- type: _univerjs_sheets_ui.CellAlertType.ERROR,
1340
- title: this._localeService.t("sheets-numfmt-ui.info.error"),
1341
- message: this._localeService.t("sheets-numfmt-ui.info.forceStringInfo"),
1342
- location,
1343
- width: 200,
1344
- height: 74,
1345
- key: ALERT_KEY
1346
- });
1347
- return;
1312
+ this.disposeWithMe(this._selectionManagerService.selectionChanged$.subscribe((selections) => this._updateAlert(selections)));
1313
+ this.disposeWithMe(this._context.unit.activeSheet$.subscribe(() => this._updateAlert(this._selectionManagerService.getCurrentSelections())));
1314
+ this.disposeWithMe(this._univerInstanceService.getCurrentTypeOfUnit$(_univerjs_core.UniverInstanceType.UNIVER_SHEET).subscribe(() => this._updateAlert(this._selectionManagerService.getCurrentSelections())));
1315
+ }
1316
+ _isCurrentSheet(worksheet) {
1317
+ const selectionParam = this._selectionManagerService.currentSelectionParam;
1318
+ return Boolean(worksheet && (selectionParam === null || selectionParam === void 0 ? void 0 : selectionParam.unitId) === this._context.unit.getUnitId() && selectionParam.sheetId === worksheet.getSheetId());
1319
+ }
1320
+ _updateAlert(selections) {
1321
+ var _this$_configService$, _getNumfmtParseValueF;
1322
+ this._hideAlert();
1323
+ const workbook = this._context.unit;
1324
+ const worksheet = workbook.getActiveSheet();
1325
+ if (!this._isCurrentSheet(worksheet)) return;
1326
+ if ((selections === null || selections === void 0 ? void 0 : selections.length) !== 1) return;
1327
+ if ((_this$_configService$ = this._configService.getConfig(_univerjs_sheets_numfmt.SHEETS_NUMFMT_PLUGIN_CONFIG_KEY)) === null || _this$_configService$ === void 0 ? void 0 : _this$_configService$.disableTextFormatAlert) return;
1328
+ const selection = selections[0];
1329
+ const primary = selection.primary;
1330
+ if (!primary) return;
1331
+ const row = primary.actualRow;
1332
+ const col = primary.actualColumn;
1333
+ const unitId = workbook.getUnitId();
1334
+ const subUnitId = worksheet.getSheetId();
1335
+ const cellData = worksheet.getCell(row, col);
1336
+ let numfmtValue;
1337
+ if (cellData === null || cellData === void 0 ? void 0 : cellData.s) {
1338
+ var _workbook$getStyles$g;
1339
+ numfmtValue = (_workbook$getStyles$g = workbook.getStyles().get(cellData.s)) === null || _workbook$getStyles$g === void 0 ? void 0 : _workbook$getStyles$g.n;
1340
+ }
1341
+ if (!numfmtValue) numfmtValue = this._numfmtService.getValue(unitId, subUnitId, row, col);
1342
+ const cellValue = cellData === null || cellData === void 0 ? void 0 : cellData.v;
1343
+ const isConvertibleNumber = (0, _univerjs_core.isRealNum)(cellValue) || typeof cellValue === "string" && typeof ((_getNumfmtParseValueF = (0, _univerjs_core.getNumfmtParseValueFilter)(cellValue)) === null || _getNumfmtParseValueF === void 0 ? void 0 : _getNumfmtParseValueF.v) === "number";
1344
+ if (!(0, _univerjs_core.isTextFormat)(numfmtValue === null || numfmtValue === void 0 ? void 0 : numfmtValue.pattern) || !_univerjs_core.Tools.isDefine(cellValue) || !isConvertibleNumber) return;
1345
+ const range = { ...selection.range };
1346
+ this._cellAlertManagerService.showAlert({
1347
+ type: _univerjs_sheets_ui.CellAlertType.WARNING,
1348
+ title: this._localeService.t("sheets-numfmt-ui.info.error"),
1349
+ message: this._localeService.t("sheets-numfmt-ui.info.forceStringInfo"),
1350
+ location: {
1351
+ unitId,
1352
+ subUnitId,
1353
+ row,
1354
+ col
1355
+ },
1356
+ width: 200,
1357
+ height: 74,
1358
+ key: this._alertKey,
1359
+ menu: [{
1360
+ label: this._localeService.t("sheets-numfmt-ui.info.convertToNumber"),
1361
+ onSelect: () => {
1362
+ if (this._commandService.syncExecuteCommand(_univerjs_sheets.TextToNumberCommand.id, {
1363
+ unitId,
1364
+ subUnitId,
1365
+ ranges: [range]
1366
+ })) this._hideAlert();
1348
1367
  }
1349
- }
1350
- this._hideAlert();
1351
- }));
1368
+ }]
1369
+ });
1370
+ }
1371
+ get _alertKey() {
1372
+ return `${ALERT_KEY}:${this._context.unit.getUnitId()}`;
1352
1373
  }
1353
1374
  _hideAlert() {
1354
- this._cellAlertManagerService.removeAlert(ALERT_KEY);
1375
+ this._cellAlertManagerService.removeAlert(this._alertKey);
1355
1376
  }
1356
1377
  };
1357
1378
  NumfmtAlertRenderController = __decorate([
1358
- __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.HoverManagerService)),
1379
+ __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_sheets.SheetsSelectionsService)),
1359
1380
  __decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.CellAlertManagerService)),
1360
1381
  __decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_core.LocaleService)),
1361
1382
  __decorateParam(4, (0, _univerjs_core.Inject)(_univerjs_sheets.INumfmtService)),
1362
- __decorateParam(5, _univerjs_core.IConfigService)
1383
+ __decorateParam(5, _univerjs_core.IConfigService),
1384
+ __decorateParam(6, _univerjs_core.ICommandService),
1385
+ __decorateParam(7, _univerjs_core.IUniverInstanceService)
1363
1386
  ], NumfmtAlertRenderController);
1364
1387
 
1365
1388
  //#endregion
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "تاريخ",
16
16
  time: "وقت",
17
17
  thousandthPercentile: "فاصل الألوف",
18
- preview: "معاينة",
19
18
  dateTime: "التاريخ والوقت",
20
19
  decimalLength: "المنازل العشرية",
21
20
  currencyType: "رمز العملة",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "إنشاء تنسيقات أرقام مخصصة استنادًا إلى التنسيقات الموجودة.",
37
36
  info: {
38
37
  error: "خطأ",
39
- forceStringInfo: "رقم مخزن كنص"
38
+ forceStringInfo: "رقم مخزن كنص",
39
+ convertToNumber: "تحويل إلى رقم"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "Data",
16
16
  time: "Hora",
17
17
  thousandthPercentile: "Separador de milers",
18
- preview: "Previsualització",
19
18
  dateTime: "Data i hora",
20
19
  decimalLength: "Decimals",
21
20
  currencyType: "Símbol de moneda",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "Genera formats de nombre personalitzats basats en els existents.",
37
36
  info: {
38
37
  error: "Error",
39
- forceStringInfo: "Número emmagatzemat com a text"
38
+ forceStringInfo: "Número emmagatzemat com a text",
39
+ convertToNumber: "Converteix en número"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "Datum",
16
16
  time: "Zeit",
17
17
  thousandthPercentile: "Tausendertrennzeichen",
18
- preview: "Vorschau",
19
18
  dateTime: "Datum und Uhrzeit",
20
19
  decimalLength: "Dezimalstellen",
21
20
  currencyType: "Währungssymbol",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "Benutzerdefinierte Zahlenformate basierend auf vorhandenen Formaten erstellen.",
37
36
  info: {
38
37
  error: "Fehler",
39
- forceStringInfo: "Zahl als Text gespeichert"
38
+ forceStringInfo: "Zahl als Text gespeichert",
39
+ convertToNumber: "In Zahl konvertieren"
40
40
  }
41
41
  } };
42
42
 
@@ -30,7 +30,6 @@ const locale = { "sheets-numfmt-ui": {
30
30
  date: "Date",
31
31
  time: "Time",
32
32
  thousandthPercentile: "Thousands separator",
33
- preview: "Preview",
34
33
  dateTime: "Date and time",
35
34
  decimalLength: "Decimal places",
36
35
  currencyType: "Currency Symbol",
@@ -51,7 +50,8 @@ const locale = { "sheets-numfmt-ui": {
51
50
  customFormatDes: "Generate custom number formats based on existing formats.",
52
51
  info: {
53
52
  error: "Error",
54
- forceStringInfo: "Number stored as text"
53
+ forceStringInfo: "Number stored as text",
54
+ convertToNumber: "Convert to Number"
55
55
  }
56
56
  } };
57
57
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "Fecha",
16
16
  time: "Hora",
17
17
  thousandthPercentile: "Separador de miles",
18
- preview: "Vista previa",
19
18
  dateTime: "Fecha y hora",
20
19
  decimalLength: "Decimales",
21
20
  currencyType: "Símbolo de moneda",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "Generar formatos de número personalizados basados en los existentes.",
37
36
  info: {
38
37
  error: "Error",
39
- forceStringInfo: "Número almacenado como texto"
38
+ forceStringInfo: "Número almacenado como texto",
39
+ convertToNumber: "Convertir en número"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "تاریخ",
16
16
  time: "زمان",
17
17
  thousandthPercentile: "جداساز هزارتایی",
18
- preview: "پیش‌نمایش",
19
18
  dateTime: "تاریخ و زمان",
20
19
  decimalLength: "اعشار",
21
20
  currencyType: "نماد ارز",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "ایجاد قالب‌بندی‌های عددی سفارشی بر اساس قالب‌بندی‌های موجود.",
37
36
  info: {
38
37
  error: "خطا",
39
- forceStringInfo: "عدد به عنوان متن ذخیره شده"
38
+ forceStringInfo: "عدد به عنوان متن ذخیره شده",
39
+ convertToNumber: "تبدیل به عدد"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "Date",
16
16
  time: "Heure",
17
17
  thousandthPercentile: "Séparateur de milliers",
18
- preview: "Aperçu",
19
18
  dateTime: "Date et heure",
20
19
  decimalLength: "Nombre de décimales",
21
20
  currencyType: "Symbole de devise",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "Générer des formats de nombre personnalisés basés sur des formats existants.",
37
36
  info: {
38
37
  error: "Erreur",
39
- forceStringInfo: "Nombre stocké en tant que texte"
38
+ forceStringInfo: "Nombre stocké en tant que texte",
39
+ convertToNumber: "Convertir en nombre"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "Tanggal",
16
16
  time: "Waktu",
17
17
  thousandthPercentile: "Pemisah ribuan",
18
- preview: "Pratinjau",
19
18
  dateTime: "Tanggal dan waktu",
20
19
  decimalLength: "Tempat desimal",
21
20
  currencyType: "Simbol Mata Uang",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "Hasilkan format angka kustom berdasarkan format yang ada.",
37
36
  info: {
38
37
  error: "Kesalahan",
39
- forceStringInfo: "Angka disimpan sebagai teks"
38
+ forceStringInfo: "Angka disimpan sebagai teks",
39
+ convertToNumber: "Konversi ke angka"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "Data",
16
16
  time: "Ora",
17
17
  thousandthPercentile: "Separatore delle migliaia",
18
- preview: "Anteprima",
19
18
  dateTime: "Data e ora",
20
19
  decimalLength: "Cifre decimali",
21
20
  currencyType: "Simbolo valuta",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "Genera formati numerici personalizzati basati sui formati esistenti.",
37
36
  info: {
38
37
  error: "Errore",
39
- forceStringInfo: "Numero memorizzato come testo"
38
+ forceStringInfo: "Numero memorizzato come testo",
39
+ convertToNumber: "Converti in numero"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "日付",
16
16
  time: "時刻",
17
17
  thousandthPercentile: "桁区切り",
18
- preview: "プレビュー",
19
18
  dateTime: "日付と時刻",
20
19
  decimalLength: "小数点以下の桁数",
21
20
  currencyType: "通貨記号",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "既存の表示形式を基にユーザー定義の数値表示形式を作成します。",
37
36
  info: {
38
37
  error: "エラー",
39
- forceStringInfo: "数値がテキストとして保存されました"
38
+ forceStringInfo: "数値がテキストとして保存されました",
39
+ convertToNumber: "数値に変換"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "날짜",
16
16
  time: "시간",
17
17
  thousandthPercentile: "천 단위 구분기호",
18
- preview: "미리보기",
19
18
  dateTime: "날짜 및 시간",
20
19
  decimalLength: "소수점 자리수",
21
20
  currencyType: "통화 기호",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "기존 서식을 기반으로 사용자 지정 숫자 서식을 만듭니다.",
37
36
  info: {
38
37
  error: "오류",
39
- forceStringInfo: "숫자가 텍스트로 저장되었습니다"
38
+ forceStringInfo: "숫자가 텍스트로 저장되었습니다",
39
+ convertToNumber: "숫자로 변환"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "Data",
16
16
  time: "Czas",
17
17
  thousandthPercentile: "Separator tysięcy",
18
- preview: "Podgląd",
19
18
  dateTime: "Data i czas",
20
19
  decimalLength: "Miejsca dziesiętne",
21
20
  currencyType: "Symbol waluty",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "Generuj niestandardowe formaty liczb na podstawie istniejących formatów.",
37
36
  info: {
38
37
  error: "Błąd",
39
- forceStringInfo: "Liczba przechowywana jako tekst"
38
+ forceStringInfo: "Liczba przechowywana jako tekst",
39
+ convertToNumber: "Konwertuj na liczbę"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "Data",
16
16
  time: "Hora",
17
17
  thousandthPercentile: "Separador de milhares",
18
- preview: "Visualização",
19
18
  dateTime: "Data e hora",
20
19
  decimalLength: "Casas decimais",
21
20
  currencyType: "Símbolo da moeda",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "Gere formatos de número personalizados com base em formatos existentes.",
37
36
  info: {
38
37
  error: "Erro",
39
- forceStringInfo: "Número armazenado como texto"
38
+ forceStringInfo: "Número armazenado como texto",
39
+ convertToNumber: "Converter em número"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "Дата",
16
16
  time: "Время",
17
17
  thousandthPercentile: "Разделитель тысяч",
18
- preview: "Предпросмотр",
19
18
  dateTime: "Дата и время",
20
19
  decimalLength: "Десятичные знаки",
21
20
  currencyType: "Символ валюты",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "Генерация пользовательских числовых форматов на основе существующих форматов.",
37
36
  info: {
38
37
  error: "Ошибка",
39
- forceStringInfo: "Число хранится как текст"
38
+ forceStringInfo: "Число хранится как текст",
39
+ convertToNumber: "Преобразовать в число"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "Dátum",
16
16
  time: "Čas",
17
17
  thousandthPercentile: "Oddeľovač tisícov",
18
- preview: "Náhľad",
19
18
  dateTime: "Dátum a čas",
20
19
  decimalLength: "Počet desatinných miest",
21
20
  currencyType: "Symbol meny",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "Vytvorte vlastné formáty čísiel na základe existujúcich formátov.",
37
36
  info: {
38
37
  error: "Chyba",
39
- forceStringInfo: "Číslo uložené ako text"
38
+ forceStringInfo: "Číslo uložené ako text",
39
+ convertToNumber: "Konvertovať na číslo"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "Ngày",
16
16
  time: "Thời gian",
17
17
  thousandthPercentile: "Phân vị phần nghìn",
18
- preview: "Xem trước",
19
18
  dateTime: "Ngày giờ",
20
19
  decimalLength: "Số chữ số thập phân",
21
20
  currencyType: "Loại tiền tệ",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "Tạo định dạng số tùy chỉnh dựa trên các định dạng hiện có.",
37
36
  info: {
38
37
  error: "Lỗi",
39
- forceStringInfo: "Số được lưu trữ dưới dạng văn bản"
38
+ forceStringInfo: "Số được lưu trữ dưới dạng văn bản",
39
+ convertToNumber: "Chuyển đổi thành số"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "日期",
16
16
  time: "时间",
17
17
  thousandthPercentile: "千分位符",
18
- preview: "示例",
19
18
  dateTime: "日期时间",
20
19
  decimalLength: "小数位数",
21
20
  currencyType: "货币类型",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "根据现有格式生成自定义数字格式。",
37
36
  info: {
38
37
  error: "错误",
39
- forceStringInfo: "以文本形式存储的数字"
38
+ forceStringInfo: "以文本形式存储的数字",
39
+ convertToNumber: "转换为数字"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "日期",
16
16
  time: "時間",
17
17
  thousandthPercentile: "千分位符",
18
- preview: "範例",
19
18
  dateTime: "日期時間",
20
19
  decimalLength: "小數位數",
21
20
  currencyType: "貨幣類型",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "基於現有格式產生自訂數字格式。",
37
36
  info: {
38
37
  error: "錯誤",
39
- forceStringInfo: "以文字形式儲存的數字"
38
+ forceStringInfo: "以文字形式儲存的數字",
39
+ convertToNumber: "轉換為數字"
40
40
  }
41
41
  } };
42
42
 
@@ -15,7 +15,6 @@ const locale = { "sheets-numfmt-ui": {
15
15
  date: "日期",
16
16
  time: "時間",
17
17
  thousandthPercentile: "千分位符",
18
- preview: "範例",
19
18
  dateTime: "日期時間",
20
19
  decimalLength: "小數位數",
21
20
  currencyType: "貨幣類型",
@@ -36,7 +35,8 @@ const locale = { "sheets-numfmt-ui": {
36
35
  customFormatDes: "基於現有格式產生自訂數字格式。",
37
36
  info: {
38
37
  error: "錯誤",
39
- forceStringInfo: "以文字形式儲存的數字"
38
+ forceStringInfo: "以文字形式儲存的數字",
39
+ convertToNumber: "轉換為數字"
40
40
  }
41
41
  } };
42
42