@betteroffice/xlsx-i18n 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/dist/de.mjs +51 -0
- package/dist/en.mjs +51 -0
- package/dist/fr.mjs +51 -0
- package/dist/he.mjs +51 -0
- package/dist/hi.mjs +51 -0
- package/dist/id.mjs +51 -0
- package/dist/index.d.mts +183 -140
- package/dist/index.mjs +510 -0
- package/dist/pl.mjs +51 -0
- package/dist/pt-BR.mjs +51 -0
- package/dist/tr.mjs +51 -0
- package/dist/zh-CN.mjs +51 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
UI locale strings, types, and runtime helpers for the
|
|
4
4
|
[`@betteroffice/xlsx-react`](https://www.npmjs.com/package/@betteroffice/xlsx-react)
|
|
5
|
-
editor. `en`
|
|
6
|
-
back to English for any untranslated key.
|
|
5
|
+
editor. `en` defines the locale shape; community locales override its strings.
|
|
7
6
|
|
|
8
7
|
```bash
|
|
9
8
|
bun add @betteroffice/xlsx-i18n
|
|
@@ -20,7 +19,7 @@ import { XlsxEditor } from '@betteroffice/xlsx-react';
|
|
|
20
19
|
<XlsxEditor file={file} i18n={de} />;
|
|
21
20
|
```
|
|
22
21
|
|
|
23
|
-
Keys set to `null`
|
|
22
|
+
Keys set to `null` keep the English string.
|
|
24
23
|
|
|
25
24
|
## Locales
|
|
26
25
|
|
package/dist/de.mjs
CHANGED
|
@@ -13,6 +13,51 @@ var de_default = {
|
|
|
13
13
|
undo: null,
|
|
14
14
|
redo: null
|
|
15
15
|
},
|
|
16
|
+
commands: {
|
|
17
|
+
fontSizeStep: null,
|
|
18
|
+
numberFormat: null,
|
|
19
|
+
decimalPlaces: null,
|
|
20
|
+
borderStyle: null,
|
|
21
|
+
moreTools: null,
|
|
22
|
+
customFontSize: null,
|
|
23
|
+
fontSizePoints: null,
|
|
24
|
+
customZoom: null,
|
|
25
|
+
zoomPercent: null,
|
|
26
|
+
apply: null,
|
|
27
|
+
cancel: null,
|
|
28
|
+
reasons: {
|
|
29
|
+
editorUnavailable: null,
|
|
30
|
+
documentLoading: null,
|
|
31
|
+
noDocument: null,
|
|
32
|
+
readOnly: null,
|
|
33
|
+
cellSelectionRequired: null,
|
|
34
|
+
unsupportedSelection: null,
|
|
35
|
+
multipleCellsRequired: null,
|
|
36
|
+
multipleColumnsRequired: null,
|
|
37
|
+
multipleRowsRequired: null,
|
|
38
|
+
noMergedCells: null,
|
|
39
|
+
collaborationUnsupported: null,
|
|
40
|
+
nothingToUndo: null,
|
|
41
|
+
nothingToRedo: null,
|
|
42
|
+
pngUnavailable: null,
|
|
43
|
+
noProposals: null,
|
|
44
|
+
proposalNotFound: null,
|
|
45
|
+
hostDisabled: null,
|
|
46
|
+
unsupportedCommand: null,
|
|
47
|
+
invalidArguments: null,
|
|
48
|
+
inputFailed: null,
|
|
49
|
+
documentReplaced: null,
|
|
50
|
+
targetChanged: null,
|
|
51
|
+
gestureActive: null,
|
|
52
|
+
proposalStale: null,
|
|
53
|
+
renderFailed: null,
|
|
54
|
+
commandFailed: null,
|
|
55
|
+
permissionDenied: "Die Host-Anwendung hat diesem Plugin diesen Befehl nicht erlaubt.",
|
|
56
|
+
unsupportedPolicy: "Plugins können diesen Befehl noch nicht ausführen. Verwenden Sie stattdessen einen Bearbeitungsstapel.",
|
|
57
|
+
pluginUnavailable: "Das Plugin ist nicht mehr aktiv.",
|
|
58
|
+
aborted: "Die Plugin-Aktion wurde abgebrochen, bevor der Befehl ausgeführt wurde."
|
|
59
|
+
}
|
|
60
|
+
},
|
|
16
61
|
editor: {
|
|
17
62
|
appLabel: null,
|
|
18
63
|
demoCellText: null,
|
|
@@ -37,6 +82,12 @@ var de_default = {
|
|
|
37
82
|
cellLabelSelected: null,
|
|
38
83
|
emptyCellLabel: null,
|
|
39
84
|
emptyCellLabelSelected: null
|
|
85
|
+
},
|
|
86
|
+
plugins: {
|
|
87
|
+
toolbarGroup: "Plugins",
|
|
88
|
+
panelTabs: "Plugin-Bereiche",
|
|
89
|
+
collapsePanel: "{title} einklappen",
|
|
90
|
+
expandPanel: "{title} ausklappen"
|
|
40
91
|
}
|
|
41
92
|
};
|
|
42
93
|
|
package/dist/en.mjs
CHANGED
|
@@ -104,6 +104,51 @@ var en_default = {
|
|
|
104
104
|
undo: "Undo",
|
|
105
105
|
redo: "Redo"
|
|
106
106
|
},
|
|
107
|
+
commands: {
|
|
108
|
+
fontSizeStep: "Change font size",
|
|
109
|
+
numberFormat: "Number format",
|
|
110
|
+
decimalPlaces: "Change decimal places",
|
|
111
|
+
borderStyle: "Border style",
|
|
112
|
+
moreTools: "More tools",
|
|
113
|
+
customFontSize: "Custom size…",
|
|
114
|
+
fontSizePoints: "Font size in points",
|
|
115
|
+
customZoom: "Custom zoom…",
|
|
116
|
+
zoomPercent: "Zoom in percent",
|
|
117
|
+
apply: "Apply",
|
|
118
|
+
cancel: "Cancel",
|
|
119
|
+
reasons: {
|
|
120
|
+
editorUnavailable: "The editor is not ready.",
|
|
121
|
+
documentLoading: "The workbook is still opening.",
|
|
122
|
+
noDocument: "No workbook is open.",
|
|
123
|
+
readOnly: "The workbook is read-only.",
|
|
124
|
+
cellSelectionRequired: "Select cells first.",
|
|
125
|
+
unsupportedSelection: "Not available while a chart is selected.",
|
|
126
|
+
multipleCellsRequired: "Select more than one cell.",
|
|
127
|
+
multipleColumnsRequired: "Select more than one column.",
|
|
128
|
+
multipleRowsRequired: "Select more than one row.",
|
|
129
|
+
noMergedCells: "The selection has no merged cells.",
|
|
130
|
+
collaborationUnsupported: "Not available while editing together.",
|
|
131
|
+
nothingToUndo: "Nothing to undo.",
|
|
132
|
+
nothingToRedo: "Nothing to redo.",
|
|
133
|
+
pngUnavailable: "PNG export is not included in this build.",
|
|
134
|
+
noProposals: "No proposals are pending.",
|
|
135
|
+
proposalNotFound: "This proposal is no longer pending.",
|
|
136
|
+
hostDisabled: "Not available in this toolbar.",
|
|
137
|
+
unsupportedCommand: "Not supported yet.",
|
|
138
|
+
invalidArguments: "This value is not valid.",
|
|
139
|
+
inputFailed: "The cell entry before this could not be saved.",
|
|
140
|
+
documentReplaced: "Another workbook was opened.",
|
|
141
|
+
targetChanged: "The selection changed.",
|
|
142
|
+
gestureActive: "Finish moving the chart first.",
|
|
143
|
+
proposalStale: "Cells changed since this was proposed.",
|
|
144
|
+
renderFailed: "The sheet could not be drawn for printing.",
|
|
145
|
+
commandFailed: "The change could not be applied.",
|
|
146
|
+
permissionDenied: "The host application has not allowed this plugin to use this command.",
|
|
147
|
+
unsupportedPolicy: "Plugins can't run this command yet. Use an edit batch instead.",
|
|
148
|
+
pluginUnavailable: "The plugin is no longer active.",
|
|
149
|
+
aborted: "The plugin action was cancelled before the command ran."
|
|
150
|
+
}
|
|
151
|
+
},
|
|
107
152
|
editor: {
|
|
108
153
|
appLabel: "Spreadsheet editor",
|
|
109
154
|
demoCellText: "OpenOOXML xlsx",
|
|
@@ -128,6 +173,12 @@ var en_default = {
|
|
|
128
173
|
cellLabelSelected: "{address}, {value}, selected",
|
|
129
174
|
emptyCellLabel: "{address}, empty",
|
|
130
175
|
emptyCellLabelSelected: "{address}, empty, selected"
|
|
176
|
+
},
|
|
177
|
+
plugins: {
|
|
178
|
+
toolbarGroup: "Plugins",
|
|
179
|
+
panelTabs: "Plugin panels",
|
|
180
|
+
collapsePanel: "Collapse {title}",
|
|
181
|
+
expandPanel: "Expand {title}"
|
|
131
182
|
}
|
|
132
183
|
};
|
|
133
184
|
|
package/dist/fr.mjs
CHANGED
|
@@ -13,6 +13,51 @@ var fr_default = {
|
|
|
13
13
|
undo: null,
|
|
14
14
|
redo: null
|
|
15
15
|
},
|
|
16
|
+
commands: {
|
|
17
|
+
fontSizeStep: null,
|
|
18
|
+
numberFormat: null,
|
|
19
|
+
decimalPlaces: null,
|
|
20
|
+
borderStyle: null,
|
|
21
|
+
moreTools: null,
|
|
22
|
+
customFontSize: null,
|
|
23
|
+
fontSizePoints: null,
|
|
24
|
+
customZoom: null,
|
|
25
|
+
zoomPercent: null,
|
|
26
|
+
apply: null,
|
|
27
|
+
cancel: null,
|
|
28
|
+
reasons: {
|
|
29
|
+
editorUnavailable: null,
|
|
30
|
+
documentLoading: null,
|
|
31
|
+
noDocument: null,
|
|
32
|
+
readOnly: null,
|
|
33
|
+
cellSelectionRequired: null,
|
|
34
|
+
unsupportedSelection: null,
|
|
35
|
+
multipleCellsRequired: null,
|
|
36
|
+
multipleColumnsRequired: null,
|
|
37
|
+
multipleRowsRequired: null,
|
|
38
|
+
noMergedCells: null,
|
|
39
|
+
collaborationUnsupported: null,
|
|
40
|
+
nothingToUndo: null,
|
|
41
|
+
nothingToRedo: null,
|
|
42
|
+
pngUnavailable: null,
|
|
43
|
+
noProposals: null,
|
|
44
|
+
proposalNotFound: null,
|
|
45
|
+
hostDisabled: null,
|
|
46
|
+
unsupportedCommand: null,
|
|
47
|
+
invalidArguments: null,
|
|
48
|
+
inputFailed: null,
|
|
49
|
+
documentReplaced: null,
|
|
50
|
+
targetChanged: null,
|
|
51
|
+
gestureActive: null,
|
|
52
|
+
proposalStale: null,
|
|
53
|
+
renderFailed: null,
|
|
54
|
+
commandFailed: null,
|
|
55
|
+
permissionDenied: "L'application hôte n'a pas autorisé ce plugin à utiliser cette commande.",
|
|
56
|
+
unsupportedPolicy: "Les plugins ne peuvent pas encore exécuter cette commande. Utilisez plutôt un lot de modifications.",
|
|
57
|
+
pluginUnavailable: "Le plugin n'est plus actif.",
|
|
58
|
+
aborted: "L'action du plugin a été annulée avant l'exécution de la commande."
|
|
59
|
+
}
|
|
60
|
+
},
|
|
16
61
|
editor: {
|
|
17
62
|
appLabel: null,
|
|
18
63
|
demoCellText: null,
|
|
@@ -37,6 +82,12 @@ var fr_default = {
|
|
|
37
82
|
cellLabelSelected: null,
|
|
38
83
|
emptyCellLabel: null,
|
|
39
84
|
emptyCellLabelSelected: null
|
|
85
|
+
},
|
|
86
|
+
plugins: {
|
|
87
|
+
toolbarGroup: "Plugins",
|
|
88
|
+
panelTabs: "Panneaux des plugins",
|
|
89
|
+
collapsePanel: "Réduire {title}",
|
|
90
|
+
expandPanel: "Développer {title}"
|
|
40
91
|
}
|
|
41
92
|
};
|
|
42
93
|
|
package/dist/he.mjs
CHANGED
|
@@ -13,6 +13,51 @@ var he_default = {
|
|
|
13
13
|
undo: null,
|
|
14
14
|
redo: null
|
|
15
15
|
},
|
|
16
|
+
commands: {
|
|
17
|
+
fontSizeStep: null,
|
|
18
|
+
numberFormat: null,
|
|
19
|
+
decimalPlaces: null,
|
|
20
|
+
borderStyle: null,
|
|
21
|
+
moreTools: null,
|
|
22
|
+
customFontSize: null,
|
|
23
|
+
fontSizePoints: null,
|
|
24
|
+
customZoom: null,
|
|
25
|
+
zoomPercent: null,
|
|
26
|
+
apply: null,
|
|
27
|
+
cancel: null,
|
|
28
|
+
reasons: {
|
|
29
|
+
editorUnavailable: null,
|
|
30
|
+
documentLoading: null,
|
|
31
|
+
noDocument: null,
|
|
32
|
+
readOnly: null,
|
|
33
|
+
cellSelectionRequired: null,
|
|
34
|
+
unsupportedSelection: null,
|
|
35
|
+
multipleCellsRequired: null,
|
|
36
|
+
multipleColumnsRequired: null,
|
|
37
|
+
multipleRowsRequired: null,
|
|
38
|
+
noMergedCells: null,
|
|
39
|
+
collaborationUnsupported: null,
|
|
40
|
+
nothingToUndo: null,
|
|
41
|
+
nothingToRedo: null,
|
|
42
|
+
pngUnavailable: null,
|
|
43
|
+
noProposals: null,
|
|
44
|
+
proposalNotFound: null,
|
|
45
|
+
hostDisabled: null,
|
|
46
|
+
unsupportedCommand: null,
|
|
47
|
+
invalidArguments: null,
|
|
48
|
+
inputFailed: null,
|
|
49
|
+
documentReplaced: null,
|
|
50
|
+
targetChanged: null,
|
|
51
|
+
gestureActive: null,
|
|
52
|
+
proposalStale: null,
|
|
53
|
+
renderFailed: null,
|
|
54
|
+
commandFailed: null,
|
|
55
|
+
permissionDenied: "היישום המארח לא התיר לתוסף זה להשתמש בפקודה זו.",
|
|
56
|
+
unsupportedPolicy: "תוספים עדיין לא יכולים להריץ פקודה זו. השתמש במקום זאת באצוות עריכה.",
|
|
57
|
+
pluginUnavailable: "התוסף אינו פעיל עוד.",
|
|
58
|
+
aborted: "פעולת התוסף בוטלה לפני שהפקודה רצה."
|
|
59
|
+
}
|
|
60
|
+
},
|
|
16
61
|
editor: {
|
|
17
62
|
appLabel: null,
|
|
18
63
|
demoCellText: null,
|
|
@@ -37,6 +82,12 @@ var he_default = {
|
|
|
37
82
|
cellLabelSelected: null,
|
|
38
83
|
emptyCellLabel: null,
|
|
39
84
|
emptyCellLabelSelected: null
|
|
85
|
+
},
|
|
86
|
+
plugins: {
|
|
87
|
+
toolbarGroup: "תוספים",
|
|
88
|
+
panelTabs: "חלוניות תוספים",
|
|
89
|
+
collapsePanel: "כווץ את {title}",
|
|
90
|
+
expandPanel: "הרחב את {title}"
|
|
40
91
|
}
|
|
41
92
|
};
|
|
42
93
|
|
package/dist/hi.mjs
CHANGED
|
@@ -13,6 +13,51 @@ var hi_default = {
|
|
|
13
13
|
undo: null,
|
|
14
14
|
redo: null
|
|
15
15
|
},
|
|
16
|
+
commands: {
|
|
17
|
+
fontSizeStep: null,
|
|
18
|
+
numberFormat: null,
|
|
19
|
+
decimalPlaces: null,
|
|
20
|
+
borderStyle: null,
|
|
21
|
+
moreTools: null,
|
|
22
|
+
customFontSize: null,
|
|
23
|
+
fontSizePoints: null,
|
|
24
|
+
customZoom: null,
|
|
25
|
+
zoomPercent: null,
|
|
26
|
+
apply: null,
|
|
27
|
+
cancel: null,
|
|
28
|
+
reasons: {
|
|
29
|
+
editorUnavailable: null,
|
|
30
|
+
documentLoading: null,
|
|
31
|
+
noDocument: null,
|
|
32
|
+
readOnly: null,
|
|
33
|
+
cellSelectionRequired: null,
|
|
34
|
+
unsupportedSelection: null,
|
|
35
|
+
multipleCellsRequired: null,
|
|
36
|
+
multipleColumnsRequired: null,
|
|
37
|
+
multipleRowsRequired: null,
|
|
38
|
+
noMergedCells: null,
|
|
39
|
+
collaborationUnsupported: null,
|
|
40
|
+
nothingToUndo: null,
|
|
41
|
+
nothingToRedo: null,
|
|
42
|
+
pngUnavailable: null,
|
|
43
|
+
noProposals: null,
|
|
44
|
+
proposalNotFound: null,
|
|
45
|
+
hostDisabled: null,
|
|
46
|
+
unsupportedCommand: null,
|
|
47
|
+
invalidArguments: null,
|
|
48
|
+
inputFailed: null,
|
|
49
|
+
documentReplaced: null,
|
|
50
|
+
targetChanged: null,
|
|
51
|
+
gestureActive: null,
|
|
52
|
+
proposalStale: null,
|
|
53
|
+
renderFailed: null,
|
|
54
|
+
commandFailed: null,
|
|
55
|
+
permissionDenied: "होस्ट एप्लिकेशन ने इस प्लगइन को यह कमांड उपयोग करने की अनुमति नहीं दी है।",
|
|
56
|
+
unsupportedPolicy: "प्लगइन अभी यह कमांड नहीं चला सकते। इसके बजाय संपादन बैच का उपयोग करें।",
|
|
57
|
+
pluginUnavailable: "प्लगइन अब सक्रिय नहीं है।",
|
|
58
|
+
aborted: "कमांड चलने से पहले प्लगइन की कार्रवाई रद्द कर दी गई।"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
16
61
|
editor: {
|
|
17
62
|
appLabel: null,
|
|
18
63
|
demoCellText: null,
|
|
@@ -37,6 +82,12 @@ var hi_default = {
|
|
|
37
82
|
cellLabelSelected: null,
|
|
38
83
|
emptyCellLabel: null,
|
|
39
84
|
emptyCellLabelSelected: null
|
|
85
|
+
},
|
|
86
|
+
plugins: {
|
|
87
|
+
toolbarGroup: "प्लगइन",
|
|
88
|
+
panelTabs: "प्लगइन पैनल",
|
|
89
|
+
collapsePanel: "{title} संक्षिप्त करें",
|
|
90
|
+
expandPanel: "{title} विस्तृत करें"
|
|
40
91
|
}
|
|
41
92
|
};
|
|
42
93
|
|
package/dist/id.mjs
CHANGED
|
@@ -13,6 +13,51 @@ var id_default = {
|
|
|
13
13
|
undo: null,
|
|
14
14
|
redo: null
|
|
15
15
|
},
|
|
16
|
+
commands: {
|
|
17
|
+
fontSizeStep: null,
|
|
18
|
+
numberFormat: null,
|
|
19
|
+
decimalPlaces: null,
|
|
20
|
+
borderStyle: null,
|
|
21
|
+
moreTools: null,
|
|
22
|
+
customFontSize: null,
|
|
23
|
+
fontSizePoints: null,
|
|
24
|
+
customZoom: null,
|
|
25
|
+
zoomPercent: null,
|
|
26
|
+
apply: null,
|
|
27
|
+
cancel: null,
|
|
28
|
+
reasons: {
|
|
29
|
+
editorUnavailable: null,
|
|
30
|
+
documentLoading: null,
|
|
31
|
+
noDocument: null,
|
|
32
|
+
readOnly: null,
|
|
33
|
+
cellSelectionRequired: null,
|
|
34
|
+
unsupportedSelection: null,
|
|
35
|
+
multipleCellsRequired: null,
|
|
36
|
+
multipleColumnsRequired: null,
|
|
37
|
+
multipleRowsRequired: null,
|
|
38
|
+
noMergedCells: null,
|
|
39
|
+
collaborationUnsupported: null,
|
|
40
|
+
nothingToUndo: null,
|
|
41
|
+
nothingToRedo: null,
|
|
42
|
+
pngUnavailable: null,
|
|
43
|
+
noProposals: null,
|
|
44
|
+
proposalNotFound: null,
|
|
45
|
+
hostDisabled: null,
|
|
46
|
+
unsupportedCommand: null,
|
|
47
|
+
invalidArguments: null,
|
|
48
|
+
inputFailed: null,
|
|
49
|
+
documentReplaced: null,
|
|
50
|
+
targetChanged: null,
|
|
51
|
+
gestureActive: null,
|
|
52
|
+
proposalStale: null,
|
|
53
|
+
renderFailed: null,
|
|
54
|
+
commandFailed: null,
|
|
55
|
+
permissionDenied: "Aplikasi host tidak mengizinkan plugin ini menggunakan perintah ini.",
|
|
56
|
+
unsupportedPolicy: "Plugin belum dapat menjalankan perintah ini. Gunakan batch edit sebagai gantinya.",
|
|
57
|
+
pluginUnavailable: "Plugin tidak lagi aktif.",
|
|
58
|
+
aborted: "Tindakan plugin dibatalkan sebelum perintah dijalankan."
|
|
59
|
+
}
|
|
60
|
+
},
|
|
16
61
|
editor: {
|
|
17
62
|
appLabel: null,
|
|
18
63
|
demoCellText: null,
|
|
@@ -37,6 +82,12 @@ var id_default = {
|
|
|
37
82
|
cellLabelSelected: null,
|
|
38
83
|
emptyCellLabel: null,
|
|
39
84
|
emptyCellLabelSelected: null
|
|
85
|
+
},
|
|
86
|
+
plugins: {
|
|
87
|
+
toolbarGroup: "Plugin",
|
|
88
|
+
panelTabs: "Panel plugin",
|
|
89
|
+
collapsePanel: "Ciutkan {title}",
|
|
90
|
+
expandPanel: "Luaskan {title}"
|
|
40
91
|
}
|
|
41
92
|
};
|
|
42
93
|
|