@betteroffice/xlsx-i18n 0.2.0 → 0.2.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 (2) hide show
  1. package/dist/index.d.mts +132 -140
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -1,150 +1,142 @@
1
- var _lang = "en";
2
- var toolbar = {
3
- actionsLabel: "Spreadsheet actions",
4
- fileActionsLabel: "File actions",
5
- historyLabel: "History",
6
- searchMenus: "Search menus",
7
- print: "Print",
8
- paintFormat: "Paint format",
9
- zoom: "Zoom",
10
- zoomValue: "Zoom: {value}",
11
- currency: "Format as currency",
12
- currencySymbol: "$",
13
- percent: "Format as percent",
14
- decreaseDecimal: "Decrease decimal places",
15
- increaseDecimal: "Increase decimal places",
16
- moreNumberFormats: "More number formats",
17
- fontFamily: "Font family",
18
- fontSize: "Font size",
19
- decreaseFontSize: "Decrease font size",
20
- increaseFontSize: "Increase font size",
21
- bold: "Bold",
22
- italic: "Italic",
23
- strikethrough: "Strikethrough",
24
- textColor: "Text color",
25
- fillColor: "Fill color",
26
- borders: "Borders",
27
- borderColor: "Border color",
28
- mergeCells: "Merge cells",
29
- horizontalAlignment: "Horizontal alignment",
30
- verticalAlignment: "Vertical alignment",
31
- textWrapping: "Text wrapping",
32
- more: "More toolbar items",
33
- groups: {
34
- search: "Search",
35
- history: "History",
36
- print: "Print",
37
- paintFormat: "Paint format",
38
- zoom: "Zoom",
39
- number: "Number formats",
40
- font: "Font",
41
- text: "Text formatting",
42
- colors: "Colors",
43
- borders: "Borders",
44
- merge: "Merge cells",
45
- alignment: "Alignment"
46
- },
47
- numberFormats: {
48
- automatic: "Automatic",
49
- plainText: "Plain text",
50
- number: "Number",
51
- percent: "Percent",
52
- scientific: "Scientific",
53
- currency: "Currency",
54
- date: "Date",
55
- time: "Time",
56
- custom: "Custom number format…"
57
- },
58
- borderPresets: {
59
- all: "All borders",
60
- inner: "Inner borders",
61
- horizontal: "Horizontal borders",
62
- vertical: "Vertical borders",
63
- outer: "Outer borders",
64
- left: "Left border",
65
- top: "Top border",
66
- right: "Right border",
67
- bottom: "Bottom border",
68
- none: "Clear borders"
69
- },
70
- borderStyles: {
71
- solid: "Solid border",
72
- dashed: "Dashed border",
73
- dotted: "Dotted border",
74
- double: "Double border"
75
- },
76
- merge: {
77
- all: "Merge all",
78
- horizontal: "Merge horizontally",
79
- vertical: "Merge vertically",
80
- unmerge: "Unmerge"
81
- },
82
- horizontalAlign: {
83
- left: "Left",
84
- center: "Center",
85
- right: "Right"
86
- },
87
- verticalAlign: {
88
- top: "Top",
89
- middle: "Middle",
90
- bottom: "Bottom"
91
- },
92
- wrapping: {
93
- overflow: "Overflow",
94
- wrap: "Wrap",
95
- clip: "Clip"
96
- },
97
- formulaBarLabel: "Formula bar",
98
- nameBoxPlaceholder: "Name box",
99
- formulaPlaceholder: "Enter a value or formula",
100
- save: "Save",
101
- exportPng: "Export PNG",
102
- undo: "Undo",
103
- redo: "Redo"
104
- };
105
- var editor = {
106
- appLabel: "Spreadsheet editor",
107
- demoCellText: "OpenOOXML xlsx",
108
- openError: "Couldn't open this workbook",
109
- sheetTabsLabel: "Sheets"
110
- };
111
- var proposals = {
112
- panelLabel: "Agent proposals",
113
- empty: "No pending proposals",
114
- cellCount: "{count, plural, one {# cell} other {# cells}}",
115
- changeArrow: "→",
116
- accept: "Accept",
117
- reject: "Reject",
118
- forceApply: "Force apply",
119
- staleWarning: "Cells changed since proposed: {cells}"
120
- };
121
- var a11y = {
122
- gridLabel: "Spreadsheet grid",
123
- rowHeaderLabel: "Row {row}",
124
- columnHeaderLabel: "Column {column}",
125
- cellLabel: "{address}, {value}",
126
- cellLabelSelected: "{address}, {value}, selected",
127
- emptyCellLabel: "{address}, empty",
128
- emptyCellLabelSelected: "{address}, empty, selected"
129
- };
130
- var enJson = {
131
- _lang: _lang,
132
- toolbar: toolbar,
133
- editor: editor,
134
- proposals: proposals,
135
- a11y: a11y
136
- };
137
-
138
1
  /**
139
2
  * Shared locale data, types, and runtime helpers for @betteroffice/xlsx-react.
140
3
  *
141
4
  * @packageDocumentation
142
5
  * @public
143
6
  */
144
-
145
- type LocaleStrings = typeof enJson;
7
+ type LocaleStrings = typeof en;
146
8
  type LocaleCode = 'en' | 'de' | 'fr' | 'he' | 'hi' | 'id' | 'pl' | 'pt-BR' | 'tr' | 'zh-CN';
147
- declare const en: LocaleStrings;
9
+ declare const en: {
10
+ _lang: string;
11
+ toolbar: {
12
+ actionsLabel: string;
13
+ fileActionsLabel: string;
14
+ historyLabel: string;
15
+ searchMenus: string;
16
+ print: string;
17
+ paintFormat: string;
18
+ zoom: string;
19
+ zoomValue: string;
20
+ currency: string;
21
+ currencySymbol: string;
22
+ percent: string;
23
+ decreaseDecimal: string;
24
+ increaseDecimal: string;
25
+ moreNumberFormats: string;
26
+ fontFamily: string;
27
+ fontSize: string;
28
+ decreaseFontSize: string;
29
+ increaseFontSize: string;
30
+ bold: string;
31
+ italic: string;
32
+ strikethrough: string;
33
+ textColor: string;
34
+ fillColor: string;
35
+ borders: string;
36
+ borderColor: string;
37
+ mergeCells: string;
38
+ horizontalAlignment: string;
39
+ verticalAlignment: string;
40
+ textWrapping: string;
41
+ more: string;
42
+ groups: {
43
+ search: string;
44
+ history: string;
45
+ print: string;
46
+ paintFormat: string;
47
+ zoom: string;
48
+ number: string;
49
+ font: string;
50
+ text: string;
51
+ colors: string;
52
+ borders: string;
53
+ merge: string;
54
+ alignment: string;
55
+ };
56
+ numberFormats: {
57
+ automatic: string;
58
+ plainText: string;
59
+ number: string;
60
+ percent: string;
61
+ scientific: string;
62
+ currency: string;
63
+ date: string;
64
+ time: string;
65
+ custom: string;
66
+ };
67
+ borderPresets: {
68
+ all: string;
69
+ inner: string;
70
+ horizontal: string;
71
+ vertical: string;
72
+ outer: string;
73
+ left: string;
74
+ top: string;
75
+ right: string;
76
+ bottom: string;
77
+ none: string;
78
+ };
79
+ borderStyles: {
80
+ solid: string;
81
+ dashed: string;
82
+ dotted: string;
83
+ double: string;
84
+ };
85
+ merge: {
86
+ all: string;
87
+ horizontal: string;
88
+ vertical: string;
89
+ unmerge: string;
90
+ };
91
+ horizontalAlign: {
92
+ left: string;
93
+ center: string;
94
+ right: string;
95
+ };
96
+ verticalAlign: {
97
+ top: string;
98
+ middle: string;
99
+ bottom: string;
100
+ };
101
+ wrapping: {
102
+ overflow: string;
103
+ wrap: string;
104
+ clip: string;
105
+ };
106
+ formulaBarLabel: string;
107
+ nameBoxPlaceholder: string;
108
+ formulaPlaceholder: string;
109
+ save: string;
110
+ exportPng: string;
111
+ undo: string;
112
+ redo: string;
113
+ };
114
+ editor: {
115
+ appLabel: string;
116
+ demoCellText: string;
117
+ openError: string;
118
+ sheetTabsLabel: string;
119
+ };
120
+ proposals: {
121
+ panelLabel: string;
122
+ empty: string;
123
+ cellCount: string;
124
+ changeArrow: string;
125
+ accept: string;
126
+ reject: string;
127
+ forceApply: string;
128
+ staleWarning: string;
129
+ };
130
+ a11y: {
131
+ gridLabel: string;
132
+ rowHeaderLabel: string;
133
+ columnHeaderLabel: string;
134
+ cellLabel: string;
135
+ cellLabelSelected: string;
136
+ emptyCellLabel: string;
137
+ emptyCellLabelSelected: string;
138
+ };
139
+ };
148
140
  declare const de: PartialLocaleStrings;
149
141
  declare const fr: PartialLocaleStrings;
150
142
  declare const he: PartialLocaleStrings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betteroffice/xlsx-i18n",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Shared UI locale strings and types for the @betteroffice/xlsx React editor.",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.mjs",