@sqren/docx-editor-i18n 1.7.0-fork.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.
- package/LICENSE +201 -0
- package/README.md +132 -0
- package/dist/de.d.mts +33 -0
- package/dist/de.d.ts +33 -0
- package/dist/de.js +906 -0
- package/dist/de.mjs +879 -0
- package/dist/en.d.mts +33 -0
- package/dist/en.d.ts +33 -0
- package/dist/en.js +906 -0
- package/dist/en.mjs +879 -0
- package/dist/fr.d.mts +33 -0
- package/dist/fr.d.ts +33 -0
- package/dist/fr.js +906 -0
- package/dist/fr.mjs +879 -0
- package/dist/he.d.mts +33 -0
- package/dist/he.d.ts +33 -0
- package/dist/he.js +906 -0
- package/dist/he.mjs +879 -0
- package/dist/hi.d.mts +33 -0
- package/dist/hi.d.ts +33 -0
- package/dist/hi.js +906 -0
- package/dist/hi.mjs +879 -0
- package/dist/id.d.mts +33 -0
- package/dist/id.d.ts +33 -0
- package/dist/id.js +906 -0
- package/dist/id.mjs +879 -0
- package/dist/index.d.mts +1099 -0
- package/dist/index.d.ts +1099 -0
- package/dist/index.js +8862 -0
- package/dist/index.mjs +8823 -0
- package/dist/pl.d.mts +33 -0
- package/dist/pl.d.ts +33 -0
- package/dist/pl.js +906 -0
- package/dist/pl.mjs +879 -0
- package/dist/pt-BR.d.mts +33 -0
- package/dist/pt-BR.d.ts +33 -0
- package/dist/pt-BR.js +906 -0
- package/dist/pt-BR.mjs +879 -0
- package/dist/tr.d.mts +33 -0
- package/dist/tr.d.ts +33 -0
- package/dist/tr.js +906 -0
- package/dist/tr.mjs +879 -0
- package/dist/zh-CN.d.mts +33 -0
- package/dist/zh-CN.d.ts +33 -0
- package/dist/zh-CN.js +906 -0
- package/dist/zh-CN.mjs +879 -0
- package/package.json +103 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,1099 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared locale data, types, and runtime helpers for the @eigenpal
|
|
3
|
+
* docx-editor adapters.
|
|
4
|
+
*
|
|
5
|
+
* Import everything from the package root. `sideEffects: false` lets
|
|
6
|
+
* consumer bundlers tree-shake unused locales.
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* import {
|
|
10
|
+
* en, de, pl, tr, he, ptBR, zhCN, // typed locale data
|
|
11
|
+
* locales, // record keyed by BCP-47 tag
|
|
12
|
+
* deepMerge, createT, // build a t() for custom hosts
|
|
13
|
+
* type LocaleStrings, // shape of `en` (source of truth)
|
|
14
|
+
* type Translations, // shape of a community partial
|
|
15
|
+
* type TranslationKey, // every valid `t()` key
|
|
16
|
+
* type LocaleCode, // 'en' | 'de' | 'pt-BR' | ...
|
|
17
|
+
* } from '@sqren/docx-editor-i18n';
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* The React and Vue adapters wrap `createT` in framework-native bindings
|
|
21
|
+
* (`useTranslation`, `LocaleProvider`, etc.); use those for app code.
|
|
22
|
+
* Reach for `createT` directly when building a non-React/Vue host.
|
|
23
|
+
*
|
|
24
|
+
* @packageDocumentation
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
var _lang = "en";
|
|
28
|
+
var common = {
|
|
29
|
+
cancel: "Cancel",
|
|
30
|
+
insert: "Insert",
|
|
31
|
+
apply: "Apply",
|
|
32
|
+
close: "Close",
|
|
33
|
+
"delete": "Delete",
|
|
34
|
+
update: "Update",
|
|
35
|
+
save: "Save",
|
|
36
|
+
retry: "Retry",
|
|
37
|
+
send: "Send",
|
|
38
|
+
edit: "Edit",
|
|
39
|
+
comment: "Comment",
|
|
40
|
+
reply: "Reply",
|
|
41
|
+
accept: "Accept",
|
|
42
|
+
reject: "Reject",
|
|
43
|
+
dismiss: "Dismiss",
|
|
44
|
+
change: "Change",
|
|
45
|
+
clear: "Clear",
|
|
46
|
+
px: "px",
|
|
47
|
+
closeDialog: "Close dialog"
|
|
48
|
+
};
|
|
49
|
+
var toolbar = {
|
|
50
|
+
ariaLabel: "Formatting toolbar",
|
|
51
|
+
file: "File",
|
|
52
|
+
format: "Format",
|
|
53
|
+
insert: "Insert",
|
|
54
|
+
open: "Open",
|
|
55
|
+
openShortcut: "Ctrl+O",
|
|
56
|
+
save: "Save",
|
|
57
|
+
saveShortcut: "Ctrl+S",
|
|
58
|
+
print: "Print",
|
|
59
|
+
printShortcut: "Ctrl+P",
|
|
60
|
+
pageSetup: "Page setup",
|
|
61
|
+
leftToRight: "Left-to-right text",
|
|
62
|
+
rightToLeft: "Right-to-left text",
|
|
63
|
+
image: "Image",
|
|
64
|
+
table: "Table",
|
|
65
|
+
"break": "Break",
|
|
66
|
+
pageBreak: "Page break",
|
|
67
|
+
sectionBreakNextPage: "Section break (next page)",
|
|
68
|
+
sectionBreakContinuous: "Section break (continuous)",
|
|
69
|
+
tableOfContents: "Table of contents",
|
|
70
|
+
symbol: "Symbol",
|
|
71
|
+
watermark: "Watermark",
|
|
72
|
+
help: "Help",
|
|
73
|
+
reportIssue: "Report issue"
|
|
74
|
+
};
|
|
75
|
+
var formattingBar = {
|
|
76
|
+
groups: {
|
|
77
|
+
history: "History",
|
|
78
|
+
zoom: "Zoom",
|
|
79
|
+
styles: "Styles",
|
|
80
|
+
font: "Font",
|
|
81
|
+
textFormatting: "Text formatting",
|
|
82
|
+
script: "Script",
|
|
83
|
+
alignment: "Alignment",
|
|
84
|
+
listFormatting: "List formatting",
|
|
85
|
+
image: "Image",
|
|
86
|
+
table: "Table"
|
|
87
|
+
},
|
|
88
|
+
undo: "Undo",
|
|
89
|
+
undoShortcut: "Undo (Ctrl+Z)",
|
|
90
|
+
redo: "Redo",
|
|
91
|
+
redoShortcut: "Redo (Ctrl+Y)",
|
|
92
|
+
bold: "Bold",
|
|
93
|
+
boldShortcut: "Bold (Ctrl+B)",
|
|
94
|
+
italic: "Italic",
|
|
95
|
+
italicShortcut: "Italic (Ctrl+I)",
|
|
96
|
+
underline: "Underline",
|
|
97
|
+
underlineShortcut: "Underline (Ctrl+U)",
|
|
98
|
+
strikethrough: "Strikethrough",
|
|
99
|
+
fontColor: "Font Color",
|
|
100
|
+
highlightColor: "Text Highlight Color",
|
|
101
|
+
insertLink: "Insert link",
|
|
102
|
+
insertLinkShortcut: "Insert link (Ctrl+K)",
|
|
103
|
+
superscript: "Superscript",
|
|
104
|
+
superscriptShortcut: "Superscript (Ctrl+Shift+=)",
|
|
105
|
+
subscript: "Subscript",
|
|
106
|
+
subscriptShortcut: "Subscript (Ctrl+=)",
|
|
107
|
+
imageProperties: "Image properties",
|
|
108
|
+
imagePropertiesShortcut: "Image properties (alt text, border)...",
|
|
109
|
+
clearFormatting: "Clear formatting",
|
|
110
|
+
commentsAndChanges: "Comments & Changes",
|
|
111
|
+
moreItems: "{count, plural, one {# more item} other {# more items}}"
|
|
112
|
+
};
|
|
113
|
+
var alignment = {
|
|
114
|
+
alignLeft: "Align Left",
|
|
115
|
+
alignLeftShortcut: "Ctrl+L",
|
|
116
|
+
center: "Center",
|
|
117
|
+
centerShortcut: "Ctrl+E",
|
|
118
|
+
alignRight: "Align Right",
|
|
119
|
+
alignRightShortcut: "Ctrl+R",
|
|
120
|
+
justify: "Justify",
|
|
121
|
+
justifyShortcut: "Ctrl+J"
|
|
122
|
+
};
|
|
123
|
+
var lists = {
|
|
124
|
+
ariaLabel: "List formatting",
|
|
125
|
+
typeAriaLabel: "List type",
|
|
126
|
+
indentationAriaLabel: "List indentation",
|
|
127
|
+
bulletList: "Bullet List",
|
|
128
|
+
numberedList: "Numbered List",
|
|
129
|
+
decreaseIndent: "Decrease Indent",
|
|
130
|
+
increaseIndent: "Increase Indent"
|
|
131
|
+
};
|
|
132
|
+
var lineSpacing = {
|
|
133
|
+
label: "Line spacing",
|
|
134
|
+
single: "Single",
|
|
135
|
+
double: "Double",
|
|
136
|
+
lineSpacingTitle: "Line spacing: {label}",
|
|
137
|
+
paragraphSpacing: "Paragraph spacing"
|
|
138
|
+
};
|
|
139
|
+
var styles = {
|
|
140
|
+
selectAriaLabel: "Select paragraph style",
|
|
141
|
+
normalText: "Normal text",
|
|
142
|
+
title: "Title",
|
|
143
|
+
subtitle: "Subtitle",
|
|
144
|
+
heading1: "Heading 1",
|
|
145
|
+
heading2: "Heading 2",
|
|
146
|
+
heading3: "Heading 3"
|
|
147
|
+
};
|
|
148
|
+
var font = {
|
|
149
|
+
selectAriaLabel: "Select font family",
|
|
150
|
+
sansSerif: "Sans Serif",
|
|
151
|
+
serif: "Serif",
|
|
152
|
+
monospace: "Monospace",
|
|
153
|
+
other: "Other"
|
|
154
|
+
};
|
|
155
|
+
var fontSize = {
|
|
156
|
+
decrease: "Decrease font size",
|
|
157
|
+
increase: "Increase font size",
|
|
158
|
+
label: "Font size",
|
|
159
|
+
listLabel: "Font sizes"
|
|
160
|
+
};
|
|
161
|
+
var zoom = {
|
|
162
|
+
ariaLabel: "Zoom: {label}",
|
|
163
|
+
zoomOut: "Zoom out",
|
|
164
|
+
zoomIn: "Zoom in",
|
|
165
|
+
zoomLevel: "Zoom level"
|
|
166
|
+
};
|
|
167
|
+
var colorPicker = {
|
|
168
|
+
ariaLabel: "{type} color picker",
|
|
169
|
+
highlightColors: "Highlight Colors",
|
|
170
|
+
customColor: "Custom Color",
|
|
171
|
+
noColor: "No Color",
|
|
172
|
+
automatic: "Automatic",
|
|
173
|
+
themeColors: "Theme Colors",
|
|
174
|
+
standardColors: "Standard Colors",
|
|
175
|
+
colors: {
|
|
176
|
+
black: "Black",
|
|
177
|
+
darkRed: "Dark Red",
|
|
178
|
+
red: "Red",
|
|
179
|
+
orange: "Orange",
|
|
180
|
+
yellow: "Yellow",
|
|
181
|
+
darkYellow: "Dark Yellow",
|
|
182
|
+
green: "Green",
|
|
183
|
+
darkGreen: "Dark Green",
|
|
184
|
+
teal: "Teal",
|
|
185
|
+
darkTeal: "Dark Teal",
|
|
186
|
+
blue: "Blue",
|
|
187
|
+
darkBlue: "Dark Blue",
|
|
188
|
+
purple: "Purple",
|
|
189
|
+
darkPurple: "Dark Purple",
|
|
190
|
+
brown: "Brown",
|
|
191
|
+
grey50: "Grey 50%",
|
|
192
|
+
grey25: "Grey 25%",
|
|
193
|
+
grey10: "Grey 10%",
|
|
194
|
+
white: "White",
|
|
195
|
+
lightRed: "Light Red",
|
|
196
|
+
lightOrange: "Light Orange",
|
|
197
|
+
lightYellow: "Light Yellow",
|
|
198
|
+
lightGreen: "Light Green",
|
|
199
|
+
lightBlue: "Light Blue",
|
|
200
|
+
lightPurple: "Light Purple",
|
|
201
|
+
pink: "Pink",
|
|
202
|
+
rose: "Rose",
|
|
203
|
+
gold: "Gold",
|
|
204
|
+
aqua: "Aqua",
|
|
205
|
+
lavender: "Lavender",
|
|
206
|
+
silver: "Silver",
|
|
207
|
+
darkOrange: "Dark Orange",
|
|
208
|
+
darkGray: "Dark Gray",
|
|
209
|
+
gray: "Gray",
|
|
210
|
+
cyan: "Cyan",
|
|
211
|
+
magenta: "Magenta",
|
|
212
|
+
paleGreen: "Pale Green",
|
|
213
|
+
lightCyan: "Light Cyan",
|
|
214
|
+
skyBlue: "Sky Blue",
|
|
215
|
+
lightBlue2: "Light Blue 2",
|
|
216
|
+
lightMagenta: "Light Magenta",
|
|
217
|
+
brightGreen: "Bright Green",
|
|
218
|
+
violet: "Violet"
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
var dialogs = {
|
|
222
|
+
findReplace: {
|
|
223
|
+
titleFind: "Find",
|
|
224
|
+
titleFindReplace: "Find and Replace",
|
|
225
|
+
findLabel: "Find:",
|
|
226
|
+
findPlaceholder: "Enter text to find...",
|
|
227
|
+
findAriaLabel: "Find text",
|
|
228
|
+
findPrevious: "Find previous",
|
|
229
|
+
findPreviousTitle: "Find Previous (Shift+Enter)",
|
|
230
|
+
findNext: "Find next",
|
|
231
|
+
findNextTitle: "Find Next (Enter)",
|
|
232
|
+
matchCount: "{current} of {total} matches",
|
|
233
|
+
noResults: "No results found",
|
|
234
|
+
replaceLabel: "Replace:",
|
|
235
|
+
replacePlaceholder: "Enter replacement text...",
|
|
236
|
+
replaceAriaLabel: "Replace text",
|
|
237
|
+
replaceButton: "Replace",
|
|
238
|
+
replaceCurrentTitle: "Replace current match",
|
|
239
|
+
replaceAllButton: "Replace All",
|
|
240
|
+
replaceAllTitle: "Replace all matches",
|
|
241
|
+
matchCase: "Match case",
|
|
242
|
+
wholeWords: "Whole words",
|
|
243
|
+
matchesFound: "{total} matches",
|
|
244
|
+
toggleReplace: "+ Replace"
|
|
245
|
+
},
|
|
246
|
+
hyperlink: {
|
|
247
|
+
titleEdit: "Edit Hyperlink",
|
|
248
|
+
titleInsert: "Insert Hyperlink",
|
|
249
|
+
tabWebAddress: "Web Address",
|
|
250
|
+
tabBookmark: "Bookmark",
|
|
251
|
+
urlLabel: "URL",
|
|
252
|
+
urlPlaceholder: "https://example.com",
|
|
253
|
+
urlHint: "Enter a web address, email (mailto:), or phone (tel:)",
|
|
254
|
+
bookmarkLabel: "Bookmark",
|
|
255
|
+
bookmarkPlaceholder: "Select a bookmark...",
|
|
256
|
+
displayTextLabel: "Display Text",
|
|
257
|
+
displayTextPlaceholder: "Text to display (optional)",
|
|
258
|
+
displayTextHint: "Leave empty to use the selected text",
|
|
259
|
+
tooltipLabel: "Tooltip (optional)",
|
|
260
|
+
tooltipPlaceholder: "Text shown on hover",
|
|
261
|
+
removeLink: "Remove Link",
|
|
262
|
+
invalidUrl: "Please enter a valid URL",
|
|
263
|
+
urlRequired: "URL is required"
|
|
264
|
+
},
|
|
265
|
+
insertTable: {
|
|
266
|
+
title: "Insert Table",
|
|
267
|
+
hoverToSelect: "Hover to select size",
|
|
268
|
+
tableSize: "{cols} x {rows} Table",
|
|
269
|
+
orSpecifySize: "or specify size",
|
|
270
|
+
rowsLabel: "Rows:",
|
|
271
|
+
columnsLabel: "Columns:",
|
|
272
|
+
insertButton: "Insert Table",
|
|
273
|
+
sizeSelector: "Table size selector",
|
|
274
|
+
columnWidthLabel: "Column width",
|
|
275
|
+
fixedWidth: "Fixed",
|
|
276
|
+
autofit: "Auto-fit to contents",
|
|
277
|
+
tableStyleLabel: "Table style",
|
|
278
|
+
validationHint: "Rows: {minRows}-{maxRows}, Columns: {minCols}-{maxCols}"
|
|
279
|
+
},
|
|
280
|
+
watermark: {
|
|
281
|
+
title: "Watermark",
|
|
282
|
+
noWatermark: "No watermark",
|
|
283
|
+
picture: "Picture watermark",
|
|
284
|
+
text: "Text watermark",
|
|
285
|
+
selectPicture: "Select Picture...",
|
|
286
|
+
scale: "Scale",
|
|
287
|
+
washout: "Washout",
|
|
288
|
+
textLabel: "Text",
|
|
289
|
+
fontLabel: "Font",
|
|
290
|
+
sizeLabel: "Size",
|
|
291
|
+
sizeAuto: "Auto",
|
|
292
|
+
colorLabel: "Color",
|
|
293
|
+
layoutLabel: "Layout",
|
|
294
|
+
diagonal: "Diagonal",
|
|
295
|
+
horizontal: "Horizontal",
|
|
296
|
+
semitransparent: "Semitransparent",
|
|
297
|
+
presetLabel: "Preset",
|
|
298
|
+
applyButton: "Apply",
|
|
299
|
+
cancelButton: "Cancel"
|
|
300
|
+
},
|
|
301
|
+
splitCell: {
|
|
302
|
+
title: "Split Cell",
|
|
303
|
+
description: "Set how many rows and columns to split the selected cell into.",
|
|
304
|
+
rowsLabel: "Rows:",
|
|
305
|
+
columnsLabel: "Columns:",
|
|
306
|
+
currentMinimum: "Minimum from current span: {rows} row(s) x {cols} column(s)",
|
|
307
|
+
minValue: "Use at least {rows} row(s) and {cols} column(s).",
|
|
308
|
+
notOneByOne: "Choose at least two resulting cells."
|
|
309
|
+
},
|
|
310
|
+
insertImage: {
|
|
311
|
+
title: "Insert Image",
|
|
312
|
+
uploadAriaLabel: "Click or drag to upload image",
|
|
313
|
+
uploadText: "Click to select or drag and drop an image",
|
|
314
|
+
uploadSubtext: "PNG, JPG, GIF up to 10MB",
|
|
315
|
+
dimensions: "Dimensions",
|
|
316
|
+
widthLabel: "Width:",
|
|
317
|
+
heightLabel: "Height:",
|
|
318
|
+
aspectRatioLocked: "Aspect ratio locked",
|
|
319
|
+
aspectRatioUnlocked: "Aspect ratio unlocked",
|
|
320
|
+
altTextLabel: "Alt Text (optional)",
|
|
321
|
+
altTextPlaceholder: "Describe the image for accessibility",
|
|
322
|
+
insertButton: "Insert Image",
|
|
323
|
+
invalidFile: "Please select a valid image file",
|
|
324
|
+
fileTooLarge: "Image file is too large (max 10MB)",
|
|
325
|
+
readFailed: "Failed to read image file",
|
|
326
|
+
loadFailed: "Failed to load image",
|
|
327
|
+
preview: "Preview"
|
|
328
|
+
},
|
|
329
|
+
insertSymbol: {
|
|
330
|
+
title: "Insert Symbol",
|
|
331
|
+
searchPlaceholder: "Search symbols (character or Unicode)...",
|
|
332
|
+
noResultsEmpty: "No symbols found",
|
|
333
|
+
noResults: "No symbols found for \"{query}\"",
|
|
334
|
+
decimal: "Decimal: {value}",
|
|
335
|
+
recent: "Recent:",
|
|
336
|
+
categories: {
|
|
337
|
+
common: "Common",
|
|
338
|
+
arrows: "Arrows",
|
|
339
|
+
math: "Math",
|
|
340
|
+
greek: "Greek",
|
|
341
|
+
shapes: "Shapes",
|
|
342
|
+
punctuation: "Punctuation",
|
|
343
|
+
currency: "Currency",
|
|
344
|
+
music: "Music",
|
|
345
|
+
emoji: "Emoji"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
imageProperties: {
|
|
349
|
+
title: "Image Properties",
|
|
350
|
+
altText: "Alt Text",
|
|
351
|
+
altTextPlaceholder: "Describe this image for accessibility...",
|
|
352
|
+
border: "Border",
|
|
353
|
+
width: "Width",
|
|
354
|
+
style: "Style",
|
|
355
|
+
color: "Color",
|
|
356
|
+
preview: "Preview",
|
|
357
|
+
textWrapping: "Text wrapping",
|
|
358
|
+
dimensions: "Dimensions",
|
|
359
|
+
widthLabel: "Width:",
|
|
360
|
+
heightLabel: "Height:",
|
|
361
|
+
lockAspectRatio: "Lock aspect ratio",
|
|
362
|
+
wrapOptions: {
|
|
363
|
+
inline: "Inline with text",
|
|
364
|
+
wrapRight: "Wrap text, float left",
|
|
365
|
+
wrapLeft: "Wrap text, float right",
|
|
366
|
+
topAndBottom: "Top and bottom",
|
|
367
|
+
behind: "Behind text",
|
|
368
|
+
inFront: "In front of text"
|
|
369
|
+
},
|
|
370
|
+
borderStyles: {
|
|
371
|
+
solid: "Solid",
|
|
372
|
+
dashed: "Dashed",
|
|
373
|
+
dotted: "Dotted",
|
|
374
|
+
double: "Double",
|
|
375
|
+
groove: "Groove",
|
|
376
|
+
ridge: "Ridge",
|
|
377
|
+
inset: "Inset",
|
|
378
|
+
outset: "Outset"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
imagePosition: {
|
|
382
|
+
title: "Image Position",
|
|
383
|
+
horizontal: "Horizontal",
|
|
384
|
+
vertical: "Vertical",
|
|
385
|
+
position: "Position",
|
|
386
|
+
alignment: "Alignment",
|
|
387
|
+
offset: "Offset",
|
|
388
|
+
offsetPx: "Offset (px)",
|
|
389
|
+
align: "Align",
|
|
390
|
+
relativeTo: "Relative to",
|
|
391
|
+
alignOptions: {
|
|
392
|
+
left: "Left",
|
|
393
|
+
center: "Center",
|
|
394
|
+
right: "Right",
|
|
395
|
+
top: "Top",
|
|
396
|
+
bottom: "Bottom"
|
|
397
|
+
},
|
|
398
|
+
relativeOptions: {
|
|
399
|
+
page: "Page",
|
|
400
|
+
column: "Column",
|
|
401
|
+
margin: "Margin",
|
|
402
|
+
character: "Character",
|
|
403
|
+
paragraph: "Paragraph",
|
|
404
|
+
line: "Line"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
pageSetup: {
|
|
408
|
+
title: "Page Setup",
|
|
409
|
+
pageSize: "PAGE SIZE",
|
|
410
|
+
sizeLabel: "Size",
|
|
411
|
+
custom: "Custom",
|
|
412
|
+
orientation: "Orientation",
|
|
413
|
+
portrait: "Portrait",
|
|
414
|
+
landscape: "Landscape",
|
|
415
|
+
margins: "MARGINS",
|
|
416
|
+
top: "Top",
|
|
417
|
+
bottom: "Bottom",
|
|
418
|
+
left: "Left",
|
|
419
|
+
right: "Right",
|
|
420
|
+
pageSizes: {
|
|
421
|
+
letter: "Letter (8.5\" × 11\")",
|
|
422
|
+
a4: "A4 (8.27\" × 11.69\")",
|
|
423
|
+
legal: "Legal (8.5\" × 14\")",
|
|
424
|
+
a3: "A3 (11.69\" × 16.54\")",
|
|
425
|
+
a5: "A5 (5.83\" × 8.27\")",
|
|
426
|
+
b5: "B5 (6.93\" × 9.84\")",
|
|
427
|
+
executive: "Executive (7.25\" × 10.5\")"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
tableProperties: {
|
|
431
|
+
title: "Table Properties",
|
|
432
|
+
widthType: "Width type",
|
|
433
|
+
widthLabel: "Width",
|
|
434
|
+
alignmentLabel: "Alignment",
|
|
435
|
+
widthTypes: {
|
|
436
|
+
auto: "Auto",
|
|
437
|
+
fixed: "Fixed (twips)",
|
|
438
|
+
percentage: "Percentage"
|
|
439
|
+
},
|
|
440
|
+
units: {
|
|
441
|
+
fiftiethsPercent: "(50ths of %)",
|
|
442
|
+
twips: "tw"
|
|
443
|
+
},
|
|
444
|
+
alignOptions: {
|
|
445
|
+
left: "Left",
|
|
446
|
+
center: "Center",
|
|
447
|
+
right: "Right"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
pasteSpecial: {
|
|
451
|
+
title: "Paste Special",
|
|
452
|
+
keepFormatting: "Keep Source Formatting",
|
|
453
|
+
keepFormattingDescription: "Paste with original formatting",
|
|
454
|
+
keepFormattingShortcut: "Ctrl+V",
|
|
455
|
+
plainText: "Paste as Plain Text",
|
|
456
|
+
plainTextDescription: "Paste without any formatting",
|
|
457
|
+
plainTextShortcut: "Ctrl+Shift+V",
|
|
458
|
+
readingClipboard: "Reading clipboard...",
|
|
459
|
+
preview: "Preview:",
|
|
460
|
+
noContent: "No content available to paste",
|
|
461
|
+
clipboardError: "Unable to read clipboard. Please use Ctrl+V to paste."
|
|
462
|
+
},
|
|
463
|
+
footnoteProperties: {
|
|
464
|
+
title: "Footnote & Endnote Properties",
|
|
465
|
+
footnotes: "Footnotes",
|
|
466
|
+
endnotes: "Endnotes",
|
|
467
|
+
position: "Position",
|
|
468
|
+
numberFormat: "Number format",
|
|
469
|
+
startAt: "Start at",
|
|
470
|
+
numbering: "Numbering",
|
|
471
|
+
footnotePositions: {
|
|
472
|
+
bottomOfPage: "Bottom of page",
|
|
473
|
+
belowText: "Below text"
|
|
474
|
+
},
|
|
475
|
+
endnotePositions: {
|
|
476
|
+
endOfDocument: "End of document",
|
|
477
|
+
endOfSection: "End of section"
|
|
478
|
+
},
|
|
479
|
+
numberingOptions: {
|
|
480
|
+
continuous: "Continuous",
|
|
481
|
+
restartSection: "Restart each section",
|
|
482
|
+
restartPage: "Restart each page"
|
|
483
|
+
},
|
|
484
|
+
formats: {
|
|
485
|
+
decimal: "1, 2, 3, ...",
|
|
486
|
+
lowerRoman: "i, ii, iii, ...",
|
|
487
|
+
upperRoman: "I, II, III, ...",
|
|
488
|
+
lowerAlpha: "a, b, c, ...",
|
|
489
|
+
upperAlpha: "A, B, C, ...",
|
|
490
|
+
symbols: "*, †, ‡, ..."
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
keyboardShortcuts: {
|
|
494
|
+
ariaLabel: "Keyboard Shortcuts",
|
|
495
|
+
searchPlaceholder: "Search shortcuts...",
|
|
496
|
+
categories: {
|
|
497
|
+
editing: "Editing",
|
|
498
|
+
formatting: "Formatting",
|
|
499
|
+
navigation: "Navigation",
|
|
500
|
+
clipboard: "Clipboard",
|
|
501
|
+
selection: "Selection",
|
|
502
|
+
view: "View",
|
|
503
|
+
file: "File",
|
|
504
|
+
other: "Other"
|
|
505
|
+
},
|
|
506
|
+
shortcuts: {
|
|
507
|
+
save: "Save",
|
|
508
|
+
saveDescription: "Save document",
|
|
509
|
+
print: "Print",
|
|
510
|
+
printDescription: "Print document",
|
|
511
|
+
undo: "Undo",
|
|
512
|
+
undoDescription: "Undo last action",
|
|
513
|
+
redo: "Redo",
|
|
514
|
+
redoDescription: "Redo last action",
|
|
515
|
+
"delete": "Delete",
|
|
516
|
+
deleteDescription: "Delete selected text",
|
|
517
|
+
find: "Find",
|
|
518
|
+
findDescription: "Find text in document",
|
|
519
|
+
findReplace: "Find & Replace",
|
|
520
|
+
findReplaceDescription: "Find and replace text",
|
|
521
|
+
cut: "Cut",
|
|
522
|
+
cutDescription: "Cut selected text",
|
|
523
|
+
copy: "Copy",
|
|
524
|
+
copyDescription: "Copy selected text",
|
|
525
|
+
paste: "Paste",
|
|
526
|
+
pasteDescription: "Paste from clipboard",
|
|
527
|
+
pastePlainText: "Paste as Plain Text",
|
|
528
|
+
pastePlainTextDescription: "Paste without formatting",
|
|
529
|
+
bold: "Bold",
|
|
530
|
+
boldDescription: "Toggle bold formatting",
|
|
531
|
+
italic: "Italic",
|
|
532
|
+
italicDescription: "Toggle italic formatting",
|
|
533
|
+
underline: "Underline",
|
|
534
|
+
underlineDescription: "Toggle underline formatting",
|
|
535
|
+
strikethrough: "Strikethrough",
|
|
536
|
+
strikethroughDescription: "Toggle strikethrough",
|
|
537
|
+
subscript: "Subscript",
|
|
538
|
+
subscriptDescription: "Toggle subscript",
|
|
539
|
+
superscript: "Superscript",
|
|
540
|
+
superscriptDescription: "Toggle superscript",
|
|
541
|
+
alignLeft: "Align Left",
|
|
542
|
+
alignLeftDescription: "Left align paragraph",
|
|
543
|
+
alignCenter: "Align Center",
|
|
544
|
+
alignCenterDescription: "Center align paragraph",
|
|
545
|
+
alignRight: "Align Right",
|
|
546
|
+
alignRightDescription: "Right align paragraph",
|
|
547
|
+
justify: "Justify",
|
|
548
|
+
justifyDescription: "Justify paragraph",
|
|
549
|
+
increaseIndent: "Increase Indent",
|
|
550
|
+
increaseIndentDescription: "Increase paragraph indent",
|
|
551
|
+
decreaseIndent: "Decrease Indent",
|
|
552
|
+
decreaseIndentDescription: "Decrease paragraph indent",
|
|
553
|
+
selectAll: "Select All",
|
|
554
|
+
selectAllDescription: "Select all content",
|
|
555
|
+
selectWord: "Select Word",
|
|
556
|
+
selectWordDescription: "Select current word",
|
|
557
|
+
selectParagraph: "Select Paragraph",
|
|
558
|
+
selectParagraphDescription: "Select current paragraph",
|
|
559
|
+
extendSelectionByWord: "Extend Selection by Word",
|
|
560
|
+
extendSelectionByWordDescription: "Extend selection to next/previous word",
|
|
561
|
+
extendSelectionToLineEdge: "Extend Selection to Line Edge",
|
|
562
|
+
extendSelectionToLineEdgeDescription: "Extend selection to line start/end",
|
|
563
|
+
moveByWord: "Move by Word",
|
|
564
|
+
moveByWordDescription: "Move cursor to next/previous word",
|
|
565
|
+
moveToLineStart: "Move to Line Start",
|
|
566
|
+
moveToLineStartDescription: "Move cursor to start of line",
|
|
567
|
+
moveToLineEnd: "Move to Line End",
|
|
568
|
+
moveToLineEndDescription: "Move cursor to end of line",
|
|
569
|
+
moveToDocumentStart: "Move to Document Start",
|
|
570
|
+
moveToDocumentStartDescription: "Move cursor to start of document",
|
|
571
|
+
moveToDocumentEnd: "Move to Document End",
|
|
572
|
+
moveToDocumentEndDescription: "Move cursor to end of document",
|
|
573
|
+
pageUp: "Page Up",
|
|
574
|
+
pageUpDescription: "Scroll up one page",
|
|
575
|
+
pageDown: "Page Down",
|
|
576
|
+
pageDownDescription: "Scroll down one page",
|
|
577
|
+
zoomIn: "Zoom In",
|
|
578
|
+
zoomInDescription: "Increase zoom level",
|
|
579
|
+
zoomOut: "Zoom Out",
|
|
580
|
+
zoomOutDescription: "Decrease zoom level",
|
|
581
|
+
resetZoom: "Reset Zoom",
|
|
582
|
+
resetZoomDescription: "Reset zoom to 100%",
|
|
583
|
+
keyboardShortcuts: "Keyboard Shortcuts",
|
|
584
|
+
keyboardShortcutsDescription: "Show this help dialog",
|
|
585
|
+
insertLink: "Insert Link",
|
|
586
|
+
insertLinkDescription: "Insert or edit hyperlink"
|
|
587
|
+
},
|
|
588
|
+
noResults: "No shortcuts found matching \"{query}\"",
|
|
589
|
+
pressEscToClose: "Press {key} to close",
|
|
590
|
+
or: "or"
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
var comments = {
|
|
594
|
+
resolved: "Resolved",
|
|
595
|
+
resolve: "Resolve",
|
|
596
|
+
reopen: "Reopen",
|
|
597
|
+
moreOptions: "More options",
|
|
598
|
+
unknown: "Unknown",
|
|
599
|
+
addComment: "Add a comment...",
|
|
600
|
+
replyPlaceholder: "Reply or add others with @",
|
|
601
|
+
replyCount: "{count, plural, one {# reply} other {# replies}}"
|
|
602
|
+
};
|
|
603
|
+
var trackedChanges = {
|
|
604
|
+
unknown: "Unknown",
|
|
605
|
+
replaced: "Replaced",
|
|
606
|
+
"with": "with",
|
|
607
|
+
added: "Added",
|
|
608
|
+
deleted: "Deleted"
|
|
609
|
+
};
|
|
610
|
+
var revisions = {
|
|
611
|
+
paragraphMarkInserted: "Inserted paragraph break",
|
|
612
|
+
paragraphMarkDeleted: "Deleted paragraph break",
|
|
613
|
+
paragraphPropertiesChanged: "Changed paragraph properties",
|
|
614
|
+
rowInserted: "Inserted row",
|
|
615
|
+
rowDeleted: "Deleted row",
|
|
616
|
+
rowPropertiesChanged: "Changed row properties",
|
|
617
|
+
cellInserted: "Inserted cell",
|
|
618
|
+
cellDeleted: "Deleted cell",
|
|
619
|
+
cellMerged: "Merged cells",
|
|
620
|
+
cellPropertiesChanged: "Changed cell properties",
|
|
621
|
+
tablePropertiesChanged: "Changed table properties",
|
|
622
|
+
tableInserted: "Inserted table",
|
|
623
|
+
tableDeleted: "Deleted table"
|
|
624
|
+
};
|
|
625
|
+
var contextMenu = {
|
|
626
|
+
ariaLabel: "AI actions menu",
|
|
627
|
+
textMenuAriaLabel: "Text editing menu",
|
|
628
|
+
customPromptPlaceholder: "Enter custom prompt...",
|
|
629
|
+
cut: "Cut",
|
|
630
|
+
cutShortcut: "Ctrl+X",
|
|
631
|
+
copy: "Copy",
|
|
632
|
+
copyShortcut: "Ctrl+C",
|
|
633
|
+
paste: "Paste",
|
|
634
|
+
pasteShortcut: "Ctrl+V",
|
|
635
|
+
pastePlainText: "Paste as Plain Text",
|
|
636
|
+
pastePlainTextShortcut: "Ctrl+Shift+V",
|
|
637
|
+
"delete": "Delete",
|
|
638
|
+
deleteShortcut: "Del",
|
|
639
|
+
selectAll: "Select All",
|
|
640
|
+
selectAllShortcut: "Ctrl+A",
|
|
641
|
+
selected: "Selected:",
|
|
642
|
+
aiActions: {
|
|
643
|
+
askAi: "Ask AI",
|
|
644
|
+
rewrite: "Rewrite",
|
|
645
|
+
expand: "Expand",
|
|
646
|
+
summarize: "Summarize",
|
|
647
|
+
translate: "Translate",
|
|
648
|
+
explain: "Explain",
|
|
649
|
+
fixGrammar: "Fix Grammar",
|
|
650
|
+
makeFormal: "Make Formal",
|
|
651
|
+
makeCasual: "Make Casual",
|
|
652
|
+
custom: "Custom"
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
var documentOutline = {
|
|
656
|
+
ariaLabel: "Document outline",
|
|
657
|
+
closeAriaLabel: "Close outline",
|
|
658
|
+
closeTitle: "Close outline",
|
|
659
|
+
title: "Outline",
|
|
660
|
+
noHeadings: "No headings found. Add headings to your document to see them here."
|
|
661
|
+
};
|
|
662
|
+
var sidebar = {
|
|
663
|
+
ariaLabel: "Annotations sidebar"
|
|
664
|
+
};
|
|
665
|
+
var viewer = {
|
|
666
|
+
pageIndicator: "{current} of {total}"
|
|
667
|
+
};
|
|
668
|
+
var titleBar = {
|
|
669
|
+
untitled: "Untitled",
|
|
670
|
+
documentNameAriaLabel: "Document name",
|
|
671
|
+
menuBarAriaLabel: "Menu bar"
|
|
672
|
+
};
|
|
673
|
+
var errors = {
|
|
674
|
+
loadingDocument: "Loading document...",
|
|
675
|
+
noDocumentLoaded: "No document loaded",
|
|
676
|
+
failedToLoad: "Failed to Load Document",
|
|
677
|
+
unableToParse: "Unable to Parse Document",
|
|
678
|
+
somethingWentWrong: "Something went wrong",
|
|
679
|
+
errorDescription: "An error occurred while rendering this component. Please try again or contact support if the problem persists.",
|
|
680
|
+
errorLabel: "Error:",
|
|
681
|
+
componentStack: "Component Stack:",
|
|
682
|
+
tryAgain: "Try Again",
|
|
683
|
+
showDetails: "Show details",
|
|
684
|
+
hideDetails: "Hide details",
|
|
685
|
+
unsavedChanges: "You have unsaved changes. Are you sure you want to leave?"
|
|
686
|
+
};
|
|
687
|
+
var table = {
|
|
688
|
+
insertRowAbove: "Insert row above",
|
|
689
|
+
insertRowBelow: "Insert row below",
|
|
690
|
+
insertColumnLeft: "Insert column left",
|
|
691
|
+
insertColumnRight: "Insert column right",
|
|
692
|
+
deleteRow: "Delete row",
|
|
693
|
+
deleteColumn: "Delete column",
|
|
694
|
+
deleteTable: "Delete table",
|
|
695
|
+
mergeCells: "Merge cells",
|
|
696
|
+
splitCell: "Split cell",
|
|
697
|
+
editingTools: "Table editing tools",
|
|
698
|
+
label: "Table:",
|
|
699
|
+
cellFillColor: "Cell Fill Color",
|
|
700
|
+
borderColor: "Border Color",
|
|
701
|
+
borderWidth: "Border width",
|
|
702
|
+
unknownAction: "Unknown Action",
|
|
703
|
+
borders: {
|
|
704
|
+
all: "All borders",
|
|
705
|
+
outside: "Outside borders",
|
|
706
|
+
inside: "Inside borders",
|
|
707
|
+
none: "No borders",
|
|
708
|
+
remove: "Remove borders",
|
|
709
|
+
top: "Top border",
|
|
710
|
+
bottom: "Bottom border",
|
|
711
|
+
left: "Left border",
|
|
712
|
+
right: "Right border",
|
|
713
|
+
styleAriaLabel: "Border style",
|
|
714
|
+
tooltip: "Borders"
|
|
715
|
+
},
|
|
716
|
+
moreOptions: "More table options",
|
|
717
|
+
styles: {
|
|
718
|
+
title: "Table Styles",
|
|
719
|
+
label: "Styles",
|
|
720
|
+
normalTable: "Normal Table",
|
|
721
|
+
tableGrid: "Table Grid",
|
|
722
|
+
gridTableLight: "Grid Table Light",
|
|
723
|
+
plainTable1: "Plain Table 1",
|
|
724
|
+
plainTable2: "Plain Table 2",
|
|
725
|
+
plainTable3: "Plain Table 3",
|
|
726
|
+
plainTable4: "Plain Table 4",
|
|
727
|
+
gridTable1Light: "Grid Table 1 Light",
|
|
728
|
+
gridTable4Accent1: "Grid Table 4 Accent 1",
|
|
729
|
+
gridTable5Dark: "Grid Table 5 Dark",
|
|
730
|
+
listTable3Accent2: "List Table 3 Accent 2",
|
|
731
|
+
listTable4Accent3: "List Table 4 Accent 3",
|
|
732
|
+
gridTable4Accent5: "Grid Table 4 Accent 5",
|
|
733
|
+
gridTable4Accent6: "Grid Table 4 Accent 6"
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
var tableAdvanced = {
|
|
737
|
+
verticalAlignment: "Vertical alignment",
|
|
738
|
+
top: "Top",
|
|
739
|
+
middle: "Middle",
|
|
740
|
+
bottom: "Bottom",
|
|
741
|
+
cellMargins: "Cell margins",
|
|
742
|
+
textDirection: "Text direction",
|
|
743
|
+
textDirections: {
|
|
744
|
+
horizontal: "Horizontal (LR)",
|
|
745
|
+
verticalRL: "Vertical (top-bottom, RL)",
|
|
746
|
+
verticalLR: "Vertical (bottom-top, LR)"
|
|
747
|
+
},
|
|
748
|
+
toggleNoWrap: "Toggle no-wrap",
|
|
749
|
+
rowHeight: "Row height",
|
|
750
|
+
heightRules: {
|
|
751
|
+
auto: "Auto",
|
|
752
|
+
atLeast: "At least",
|
|
753
|
+
exact: "Exact"
|
|
754
|
+
},
|
|
755
|
+
rule: "Rule",
|
|
756
|
+
height: "Height",
|
|
757
|
+
toggleHeaderRow: "Toggle header row",
|
|
758
|
+
distributeColumns: "Distribute columns evenly",
|
|
759
|
+
autoFit: "Auto-fit to contents",
|
|
760
|
+
tableProperties: "Table properties...",
|
|
761
|
+
tableAlignment: "Table alignment",
|
|
762
|
+
alignTableLeft: "Align table left",
|
|
763
|
+
alignTableCenter: "Align table center",
|
|
764
|
+
alignTableRight: "Align table right",
|
|
765
|
+
tableOptionsMenu: "Table options menu",
|
|
766
|
+
tableOptions: "Table options"
|
|
767
|
+
};
|
|
768
|
+
var imageTransform = {
|
|
769
|
+
tooltip: "Transform",
|
|
770
|
+
rotateClockwise: "Rotate clockwise",
|
|
771
|
+
rotateCounterClockwise: "Rotate counter-clockwise",
|
|
772
|
+
flipHorizontal: "Flip horizontal",
|
|
773
|
+
flipVertical: "Flip vertical"
|
|
774
|
+
};
|
|
775
|
+
var imageWrap = {
|
|
776
|
+
inline: "In Line with Text",
|
|
777
|
+
floatLeft: "Square Left",
|
|
778
|
+
floatRight: "Square Right",
|
|
779
|
+
topAndBottom: "Top and Bottom",
|
|
780
|
+
behindText: "Behind Text",
|
|
781
|
+
inFrontOfText: "In Front of Text",
|
|
782
|
+
tooltipPrefix: "Wrap: {label}",
|
|
783
|
+
menu: {
|
|
784
|
+
inLineWithText: "In Line with Text",
|
|
785
|
+
squareLeft: "Square Left",
|
|
786
|
+
squareRight: "Square Right",
|
|
787
|
+
behindText: "Behind Text",
|
|
788
|
+
inFrontOfText: "In Front of Text",
|
|
789
|
+
ariaLabel: "Image layout options",
|
|
790
|
+
imageProperties: "Image properties…"
|
|
791
|
+
},
|
|
792
|
+
menuDesc: {
|
|
793
|
+
inLineWithText: "Image flows in the line as a glyph",
|
|
794
|
+
squareLeft: "Image floats left, text wraps on the right",
|
|
795
|
+
squareRight: "Image floats right, text wraps on the left",
|
|
796
|
+
behindText: "Image paints behind body text",
|
|
797
|
+
inFrontOfText: "Image paints over body text"
|
|
798
|
+
}
|
|
799
|
+
};
|
|
800
|
+
var responsePreview = {
|
|
801
|
+
loading: "{action}...",
|
|
802
|
+
result: "{action} Result",
|
|
803
|
+
closeEsc: "Close (Esc)",
|
|
804
|
+
editPrompt: "Edit the result before accepting:",
|
|
805
|
+
changes: "Changes:",
|
|
806
|
+
original: "Original:",
|
|
807
|
+
"new": "New:",
|
|
808
|
+
cancelEdit: "Cancel Edit"
|
|
809
|
+
};
|
|
810
|
+
var commentMarkers = {
|
|
811
|
+
resolvedComment: "Resolved comment",
|
|
812
|
+
comment: "Comment"
|
|
813
|
+
};
|
|
814
|
+
var editor = {
|
|
815
|
+
toggleCommentsSidebar: "Toggle comments sidebar",
|
|
816
|
+
showDocumentOutline: "Show document outline",
|
|
817
|
+
editing: "Editing",
|
|
818
|
+
editingDescription: "Edit document directly",
|
|
819
|
+
suggesting: "Suggesting",
|
|
820
|
+
suggestingDescription: "Edits become suggestions",
|
|
821
|
+
viewing: "Viewing",
|
|
822
|
+
viewingDescription: "Read-only, no edits",
|
|
823
|
+
failedToParse: "Failed to parse document",
|
|
824
|
+
linkRemoved: "Link removed",
|
|
825
|
+
linkCopied: "Link copied to clipboard",
|
|
826
|
+
failedToSave: "Failed to save document"
|
|
827
|
+
};
|
|
828
|
+
var hyperlinkPopup = {
|
|
829
|
+
displayTextPlaceholder: "Display text",
|
|
830
|
+
urlPlaceholder: "https://example.com",
|
|
831
|
+
copyLink: "Copy link",
|
|
832
|
+
editLink: "Edit link",
|
|
833
|
+
removeLink: "Remove link"
|
|
834
|
+
};
|
|
835
|
+
var headerFooter = {
|
|
836
|
+
header: "Header",
|
|
837
|
+
footer: "Footer",
|
|
838
|
+
options: "Options",
|
|
839
|
+
insertPageNumber: "Insert current page number",
|
|
840
|
+
insertTotalPages: "Insert total page count",
|
|
841
|
+
remove: "Remove {label}",
|
|
842
|
+
closeEditing: "Close {label} editing"
|
|
843
|
+
};
|
|
844
|
+
var image = {
|
|
845
|
+
placeholder: "Image placeholder",
|
|
846
|
+
placeholderText: "[Image]",
|
|
847
|
+
editableAriaLabel: "Editable image"
|
|
848
|
+
};
|
|
849
|
+
var imageOverlay = {
|
|
850
|
+
rotate: "Rotate",
|
|
851
|
+
imageProperties: "Image properties",
|
|
852
|
+
deleteImage: "Delete image",
|
|
853
|
+
replaceImage: "Replace image…"
|
|
854
|
+
};
|
|
855
|
+
var ruler = {
|
|
856
|
+
horizontal: "Horizontal ruler",
|
|
857
|
+
vertical: "Vertical ruler",
|
|
858
|
+
firstLineIndent: "First line indent",
|
|
859
|
+
leftIndent: "Left indent",
|
|
860
|
+
rightIndent: "Right indent",
|
|
861
|
+
topMargin: "Top margin",
|
|
862
|
+
bottomMargin: "Bottom margin"
|
|
863
|
+
};
|
|
864
|
+
var print = {
|
|
865
|
+
label: "Print",
|
|
866
|
+
allPages: "All ({totalPages} pages)",
|
|
867
|
+
singlePage: "Page {start}",
|
|
868
|
+
pageRange: "Pages {start}-{end}"
|
|
869
|
+
};
|
|
870
|
+
var unsaved = {
|
|
871
|
+
unsaved: "Unsaved",
|
|
872
|
+
saved: "Saved",
|
|
873
|
+
unsavedTitle: "Document has unsaved changes",
|
|
874
|
+
savedTitle: "All changes saved",
|
|
875
|
+
unsavedAriaLabel: "Unsaved changes",
|
|
876
|
+
savedAriaLabel: "All changes saved"
|
|
877
|
+
};
|
|
878
|
+
var loading = {
|
|
879
|
+
label: "Loading"
|
|
880
|
+
};
|
|
881
|
+
var agentPanel = {
|
|
882
|
+
defaultTitle: "Assistant",
|
|
883
|
+
toggle: "Open assistant",
|
|
884
|
+
close: "Close panel",
|
|
885
|
+
resizeHandle: "Resize agent panel",
|
|
886
|
+
thinking: "Assistant is thinking",
|
|
887
|
+
composerPlaceholder: "Ask the assistant…",
|
|
888
|
+
send: "Send",
|
|
889
|
+
timeline: {
|
|
890
|
+
working: "Working… {count, plural, one {# step} other {# steps}}",
|
|
891
|
+
summary: "{count, plural, one {# step} other {# steps}}",
|
|
892
|
+
earlier: "+ {count, plural, one {# earlier step} other {# earlier steps}}"
|
|
893
|
+
}
|
|
894
|
+
};
|
|
895
|
+
var enJson = {
|
|
896
|
+
_lang: _lang,
|
|
897
|
+
common: common,
|
|
898
|
+
toolbar: toolbar,
|
|
899
|
+
formattingBar: formattingBar,
|
|
900
|
+
alignment: alignment,
|
|
901
|
+
lists: lists,
|
|
902
|
+
lineSpacing: lineSpacing,
|
|
903
|
+
styles: styles,
|
|
904
|
+
font: font,
|
|
905
|
+
fontSize: fontSize,
|
|
906
|
+
zoom: zoom,
|
|
907
|
+
colorPicker: colorPicker,
|
|
908
|
+
dialogs: dialogs,
|
|
909
|
+
comments: comments,
|
|
910
|
+
trackedChanges: trackedChanges,
|
|
911
|
+
revisions: revisions,
|
|
912
|
+
contextMenu: contextMenu,
|
|
913
|
+
documentOutline: documentOutline,
|
|
914
|
+
sidebar: sidebar,
|
|
915
|
+
viewer: viewer,
|
|
916
|
+
titleBar: titleBar,
|
|
917
|
+
errors: errors,
|
|
918
|
+
table: table,
|
|
919
|
+
tableAdvanced: tableAdvanced,
|
|
920
|
+
imageTransform: imageTransform,
|
|
921
|
+
imageWrap: imageWrap,
|
|
922
|
+
responsePreview: responsePreview,
|
|
923
|
+
commentMarkers: commentMarkers,
|
|
924
|
+
editor: editor,
|
|
925
|
+
hyperlinkPopup: hyperlinkPopup,
|
|
926
|
+
headerFooter: headerFooter,
|
|
927
|
+
image: image,
|
|
928
|
+
imageOverlay: imageOverlay,
|
|
929
|
+
ruler: ruler,
|
|
930
|
+
print: print,
|
|
931
|
+
unsaved: unsaved,
|
|
932
|
+
loading: loading,
|
|
933
|
+
agentPanel: agentPanel
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Shared locale data, types, and runtime helpers for the @eigenpal
|
|
938
|
+
* docx-editor adapters.
|
|
939
|
+
*
|
|
940
|
+
* Import everything from the package root. `sideEffects: false` lets
|
|
941
|
+
* consumer bundlers tree-shake unused locales.
|
|
942
|
+
*
|
|
943
|
+
* ```ts
|
|
944
|
+
* import {
|
|
945
|
+
* en, de, pl, tr, he, ptBR, zhCN, // typed locale data
|
|
946
|
+
* locales, // record keyed by BCP-47 tag
|
|
947
|
+
* deepMerge, createT, // build a t() for custom hosts
|
|
948
|
+
* type LocaleStrings, // shape of `en` (source of truth)
|
|
949
|
+
* type Translations, // shape of a community partial
|
|
950
|
+
* type TranslationKey, // every valid `t()` key
|
|
951
|
+
* type LocaleCode, // 'en' | 'de' | 'pt-BR' | ...
|
|
952
|
+
* } from '@sqren/docx-editor-i18n';
|
|
953
|
+
* ```
|
|
954
|
+
*
|
|
955
|
+
* The React and Vue adapters wrap `createT` in framework-native bindings
|
|
956
|
+
* (`useTranslation`, `LocaleProvider`, etc.); use those for app code.
|
|
957
|
+
* Reach for `createT` directly when building a non-React/Vue host.
|
|
958
|
+
*
|
|
959
|
+
* @packageDocumentation
|
|
960
|
+
* @public
|
|
961
|
+
*/
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* Full locale string set, auto-derived from `en.json` (the source of truth).
|
|
965
|
+
* Every other locale is a `PartialLocaleStrings` against this shape.
|
|
966
|
+
*
|
|
967
|
+
* @public
|
|
968
|
+
*/
|
|
969
|
+
type LocaleStrings = typeof enJson;
|
|
970
|
+
/**
|
|
971
|
+
* Every locale code shipped from this package. Pass to `locales[code]`
|
|
972
|
+
* for runtime lookup; assign to `_lang` to drive `Intl.PluralRules`.
|
|
973
|
+
*
|
|
974
|
+
* Custom codes are accepted at runtime ({@link PartialLocaleStrings._lang}
|
|
975
|
+
* widens to any string), but the shipped union is the IDE-completion list.
|
|
976
|
+
*
|
|
977
|
+
* @public
|
|
978
|
+
*/
|
|
979
|
+
type LocaleCode = 'en' | 'de' | 'fr' | 'he' | 'hi' | 'id' | 'pl' | 'pt-BR' | 'tr' | 'zh-CN';
|
|
980
|
+
/** English (`en`) — the source of truth, 100% covered. @public */
|
|
981
|
+
declare const en: LocaleStrings;
|
|
982
|
+
/** German (`de`). Community-maintained; null leaves fall back to English. @public */
|
|
983
|
+
declare const de: PartialLocaleStrings;
|
|
984
|
+
/** French (`fr`). Community-maintained; null leaves fall back to English. @public */
|
|
985
|
+
declare const fr: PartialLocaleStrings;
|
|
986
|
+
/** Hebrew (`he`). Community-maintained; null leaves fall back to English. @public */
|
|
987
|
+
declare const he: PartialLocaleStrings;
|
|
988
|
+
/** Hindi (`hi`). Community-maintained; null leaves fall back to English. @public */
|
|
989
|
+
declare const hi: PartialLocaleStrings;
|
|
990
|
+
/** Indonesian (`id`). Community-maintained; null leaves fall back to English. @public */
|
|
991
|
+
declare const id: PartialLocaleStrings;
|
|
992
|
+
/** Polish (`pl`). Community-maintained; null leaves fall back to English. @public */
|
|
993
|
+
declare const pl: PartialLocaleStrings;
|
|
994
|
+
/** Portuguese (Brazil) (`pt-BR`). Community-maintained; null leaves fall back to English. @public */
|
|
995
|
+
declare const ptBR: PartialLocaleStrings;
|
|
996
|
+
/** Turkish (`tr`). Community-maintained; null leaves fall back to English. @public */
|
|
997
|
+
declare const tr: PartialLocaleStrings;
|
|
998
|
+
/** Simplified Chinese (`zh-CN`). Community-maintained; null leaves fall back to English. @public */
|
|
999
|
+
declare const zhCN: PartialLocaleStrings;
|
|
1000
|
+
/**
|
|
1001
|
+
* Every shipped locale, keyed by BCP-47 tag. Use for runtime locale
|
|
1002
|
+
* pickers and "look up the locale matching this user preference" code:
|
|
1003
|
+
*
|
|
1004
|
+
* ```ts
|
|
1005
|
+
* <DocxEditor i18n={locales[userLocale]} />
|
|
1006
|
+
* ```
|
|
1007
|
+
*
|
|
1008
|
+
* Importing `locales` defeats the per-locale tree-shake — the bundler
|
|
1009
|
+
* sees a static reference to every locale. If you only need one or two,
|
|
1010
|
+
* import them by name (`import { en, de } from '...'`) instead.
|
|
1011
|
+
*
|
|
1012
|
+
* @public
|
|
1013
|
+
*/
|
|
1014
|
+
declare const locales: Record<LocaleCode, PartialLocaleStrings>;
|
|
1015
|
+
/**
|
|
1016
|
+
* Recursive Partial that allows `null` at leaves to signal "not yet
|
|
1017
|
+
* translated, fall back to English." Community translations use this shape;
|
|
1018
|
+
* `bun run i18n:fix` keeps every locale aligned to `en.json` with `null`
|
|
1019
|
+
* placeholders for missing keys.
|
|
1020
|
+
*
|
|
1021
|
+
* @public
|
|
1022
|
+
*/
|
|
1023
|
+
type DeepPartial<T> = {
|
|
1024
|
+
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K] | null;
|
|
1025
|
+
};
|
|
1026
|
+
/**
|
|
1027
|
+
* Partial locale strings — what consumers pass to the editor's `i18n` prop.
|
|
1028
|
+
* Missing keys fall back to English. Optional `_lang` carries the BCP-47
|
|
1029
|
+
* tag used by `Intl.PluralRules`; shipped codes autocomplete but custom
|
|
1030
|
+
* strings are accepted.
|
|
1031
|
+
*
|
|
1032
|
+
* @public
|
|
1033
|
+
*/
|
|
1034
|
+
type PartialLocaleStrings = DeepPartial<LocaleStrings> & {
|
|
1035
|
+
_lang?: LocaleCode | (string & {});
|
|
1036
|
+
};
|
|
1037
|
+
/**
|
|
1038
|
+
* Alias for `PartialLocaleStrings`. Prefer this name when typing the
|
|
1039
|
+
* consumer-facing `i18n` prop or function parameter.
|
|
1040
|
+
*
|
|
1041
|
+
* @public
|
|
1042
|
+
*/
|
|
1043
|
+
type Translations = PartialLocaleStrings;
|
|
1044
|
+
type DotPath<T, Prefix extends string = ''> = {
|
|
1045
|
+
[K in keyof T & string]: T[K] extends Record<string, unknown> ? DotPath<T[K], `${Prefix}${K}.`> : `${Prefix}${K}`;
|
|
1046
|
+
}[keyof T & string];
|
|
1047
|
+
/**
|
|
1048
|
+
* Every valid dot-notation key into `LocaleStrings`, e.g. `'toolbar.bold'`
|
|
1049
|
+
* or `'dialogs.findReplace.matchCount'`. Pass to `t(key, vars?)` for
|
|
1050
|
+
* compile-time-checked translation lookup.
|
|
1051
|
+
*
|
|
1052
|
+
* @public
|
|
1053
|
+
*/
|
|
1054
|
+
type TranslationKey = DotPath<LocaleStrings>;
|
|
1055
|
+
type AnyRecord = Record<string, unknown>;
|
|
1056
|
+
/**
|
|
1057
|
+
* Deep-merge a partial locale over a base locale. Null leaves in the
|
|
1058
|
+
* override are treated as "not translated" and fall back to the base.
|
|
1059
|
+
* Adapters call this once when the `i18n` prop changes, then hand the
|
|
1060
|
+
* result to {@link createT}.
|
|
1061
|
+
*
|
|
1062
|
+
* @public
|
|
1063
|
+
*/
|
|
1064
|
+
declare function deepMerge(base: AnyRecord, override: AnyRecord | undefined): AnyRecord;
|
|
1065
|
+
/**
|
|
1066
|
+
* The signature of `t()`: look up a translation by dot-notation key,
|
|
1067
|
+
* interpolate `{vars}`, and resolve ICU plurals.
|
|
1068
|
+
*
|
|
1069
|
+
* @public
|
|
1070
|
+
*/
|
|
1071
|
+
type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) => string;
|
|
1072
|
+
/**
|
|
1073
|
+
* Build a typed `t(key, vars?)` function from a merged locale.
|
|
1074
|
+
*
|
|
1075
|
+
* - **Lookup**: dot-notation paths against the locale tree
|
|
1076
|
+
* (`'toolbar.bold'`, `'dialogs.findReplace.matchCount'`).
|
|
1077
|
+
* - **Interpolation**: `{name}` placeholders read from `vars`.
|
|
1078
|
+
* - **Plurals**: ICU `{count, plural, =0 {none} one {# item} other {# items}}`
|
|
1079
|
+
* with `Intl.PluralRules` for CLDR categories and `=N` for exact matches.
|
|
1080
|
+
* - **Fallback**: missing keys return the key string itself, useful for
|
|
1081
|
+
* spotting un-translated UI in development.
|
|
1082
|
+
*
|
|
1083
|
+
* The React/Vue adapters wrap this in `useTranslation()`; use it directly
|
|
1084
|
+
* when building a non-React/Vue host (server-rendered docs, CLI, etc.).
|
|
1085
|
+
*
|
|
1086
|
+
* @example
|
|
1087
|
+
* ```ts
|
|
1088
|
+
* import { deepMerge, createT, en, de } from '@sqren/docx-editor-i18n';
|
|
1089
|
+
* const merged = deepMerge(en, de) as LocaleStrings;
|
|
1090
|
+
* const t = createT(merged, 'de');
|
|
1091
|
+
* t('toolbar.bold'); // → 'Fett'
|
|
1092
|
+
* t('dialogs.findReplace.matchCount', { current: 3, total: 15 });
|
|
1093
|
+
* ```
|
|
1094
|
+
*
|
|
1095
|
+
* @public
|
|
1096
|
+
*/
|
|
1097
|
+
declare function createT(strings: LocaleStrings, lang?: string): TFunction;
|
|
1098
|
+
|
|
1099
|
+
export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, createT, de, deepMerge, en, fr, he, hi, id, locales, pl, ptBR, tr, zhCN };
|