@docx-editor.dev/i18n 2.21.0 → 2.22.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 +20 -25
- package/dist/de.js +73 -3
- package/dist/de.mjs +73 -3
- package/dist/en.js +71 -1
- package/dist/en.mjs +71 -1
- package/dist/fr.js +73 -3
- package/dist/fr.mjs +73 -3
- package/dist/he.js +73 -3
- package/dist/he.mjs +73 -3
- package/dist/hi.js +73 -3
- package/dist/hi.mjs +73 -3
- package/dist/id.js +73 -3
- package/dist/id.mjs +73 -3
- package/dist/index.d.mts +86 -3
- package/dist/index.d.ts +86 -3
- package/dist/index.js +730 -28
- package/dist/index.mjs +729 -28
- package/dist/pl.js +73 -3
- package/dist/pl.mjs +73 -3
- package/dist/pt-BR.js +73 -3
- package/dist/pt-BR.mjs +73 -3
- package/dist/tr.js +73 -3
- package/dist/tr.mjs +73 -3
- package/dist/zh-CN.js +73 -3
- package/dist/zh-CN.mjs +73 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,15 +14,17 @@
|
|
|
14
14
|
|
|
15
15
|
# @docx-editor.dev/i18n
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Translate [docx-editor.dev](https://docx-editor.dev) controls with locale strings, types, and runtime helpers. The package provides ten languages and falls back to English for missing translations.
|
|
18
18
|
|
|
19
|
-
## Quick
|
|
19
|
+
## Quick start
|
|
20
|
+
|
|
21
|
+
Install the locale package:
|
|
20
22
|
|
|
21
23
|
```bash
|
|
22
24
|
npm install @docx-editor.dev/i18n
|
|
23
25
|
```
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
Pass a locale to the editor. This example requires the React adapter and its engine peer:
|
|
26
28
|
|
|
27
29
|
```tsx
|
|
28
30
|
import { DocxEditor } from '@docx-editor.dev/react';
|
|
@@ -31,13 +33,13 @@ import { de } from '@docx-editor.dev/i18n';
|
|
|
31
33
|
<DocxEditor document={bytes} i18n={de} />;
|
|
32
34
|
```
|
|
33
35
|
|
|
34
|
-
|
|
36
|
+
To share a locale across editors and custom controls, use `LocaleProvider`:
|
|
35
37
|
|
|
36
38
|
```tsx
|
|
37
39
|
import { DocxEditor, LocaleProvider } from '@docx-editor.dev/react';
|
|
40
|
+
import { de } from '@docx-editor.dev/i18n';
|
|
38
41
|
|
|
39
42
|
<LocaleProvider i18n={de}>
|
|
40
|
-
<DocxEditor.Toolbar />
|
|
41
43
|
<DocxEditor document={bytes} />
|
|
42
44
|
</LocaleProvider>;
|
|
43
45
|
```
|
|
@@ -51,24 +53,12 @@ import { de } from '@docx-editor.dev/i18n';
|
|
|
51
53
|
|
|
52
54
|
const myLocale = {
|
|
53
55
|
...de,
|
|
54
|
-
|
|
56
|
+
formattingBar: { ...de.formattingBar, bold: 'Fettdruck' },
|
|
55
57
|
};
|
|
56
58
|
```
|
|
57
59
|
|
|
58
60
|
Keys set to `null` in any locale fall back to English.
|
|
59
61
|
|
|
60
|
-
## Packages
|
|
61
|
-
|
|
62
|
-
| Package | Description |
|
|
63
|
-
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------- |
|
|
64
|
-
| [`@docx-editor.dev/react`](https://www.npmjs.com/package/@docx-editor.dev/react) | React adapter. `<DocxEditor>`, provider primitives, hooks, and compound chrome. |
|
|
65
|
-
| [`@docx-editor.dev/core`](https://www.npmjs.com/package/@docx-editor.dev/core) | Framework-agnostic engine: OOXML read/write, canonical document tree, layout, paint. |
|
|
66
|
-
| [`@docx-editor.dev/i18n`](https://www.npmjs.com/package/@docx-editor.dev/i18n) | Shared locale strings and types. |
|
|
67
|
-
| [`@docx-editor.dev/pro`](https://www.npmjs.com/package/@docx-editor.dev/pro) | Tracked changes, comments, and custom nodes. |
|
|
68
|
-
| [`@docx-editor.dev/editor-api`](https://www.npmjs.com/package/@docx-editor.dev/editor-api) | Office.js-compatible editing API: a batching object model, on a server or against an open editor. |
|
|
69
|
-
|
|
70
|
-
> **Forking the adapter?** Keep your fork thin. Depend on `@docx-editor.dev/core` directly so parser, serializer, and rendering fixes land in your build automatically, without backporting each upstream change by hand.
|
|
71
|
-
|
|
72
62
|
## Available locales
|
|
73
63
|
|
|
74
64
|
| Code | Export | Language |
|
|
@@ -94,17 +84,20 @@ import { locales } from '@docx-editor.dev/i18n';
|
|
|
94
84
|
</LocaleProvider>;
|
|
95
85
|
```
|
|
96
86
|
|
|
97
|
-
|
|
87
|
+
Importing `locales` includes every locale in your bundle. Import individual locales to reduce the bundle size.
|
|
98
88
|
|
|
99
89
|
## Per-locale subpaths
|
|
100
90
|
|
|
101
|
-
|
|
91
|
+
If you choose a locale at runtime, import its subpath to load only that locale. Static imports include it in the bundle. Dynamic imports let the bundler create a separate chunk:
|
|
102
92
|
|
|
103
93
|
```ts
|
|
104
|
-
// Static
|
|
94
|
+
// Static import: include only this locale's strings.
|
|
105
95
|
import pl from '@docx-editor.dev/i18n/pl';
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
For on-demand loading, use a dynamic import instead:
|
|
106
99
|
|
|
107
|
-
|
|
100
|
+
```ts
|
|
108
101
|
const pl = (await import('@docx-editor.dev/i18n/pl')).default;
|
|
109
102
|
```
|
|
110
103
|
|
|
@@ -112,6 +105,8 @@ Subpaths ship for every locale: `/en`, `/de`, `/fr`, `/he`, `/hi`, `/id`, `/pl`,
|
|
|
112
105
|
|
|
113
106
|
## Types
|
|
114
107
|
|
|
108
|
+
Import types to describe locale data and translation functions:
|
|
109
|
+
|
|
115
110
|
```ts
|
|
116
111
|
import type {
|
|
117
112
|
LocaleStrings, // shape of `en`, the full source of truth
|
|
@@ -140,8 +135,8 @@ t('navigation.find.total', { total: 15 }); // ICU plurals
|
|
|
140
135
|
|
|
141
136
|
## Contributing
|
|
142
137
|
|
|
143
|
-
|
|
138
|
+
To contribute, see [CONTRIBUTING.md](https://github.com/eigenpal/docx-editor/blob/main/CONTRIBUTING.md) for setup, tests, and the one-time CLA signature.
|
|
144
139
|
|
|
145
|
-
## Commercial
|
|
140
|
+
## Commercial support
|
|
146
141
|
|
|
147
|
-
|
|
142
|
+
For commercial support or custom features, [email the support team](mailto:docx-editor@eigenpal.com).
|
package/dist/de.js
CHANGED
|
@@ -62,7 +62,28 @@ var de_default = {
|
|
|
62
62
|
insertFootnote: "Fußnote einfügen",
|
|
63
63
|
insertEndnote: "Endnote einfügen",
|
|
64
64
|
insertTable: null,
|
|
65
|
-
review: null
|
|
65
|
+
review: null,
|
|
66
|
+
export: null,
|
|
67
|
+
exportFailed: null,
|
|
68
|
+
exportMarkdown: null,
|
|
69
|
+
exportMarkdownMissing: null,
|
|
70
|
+
exportPdf: null,
|
|
71
|
+
exportPdfMissing: null,
|
|
72
|
+
exportPdfServerUnavailable: null,
|
|
73
|
+
exportContinueEditing: null,
|
|
74
|
+
exportDownloadHint: null,
|
|
75
|
+
exportMarkdownFailed: null,
|
|
76
|
+
exportPdfFailed: null,
|
|
77
|
+
exportingMarkdown: null,
|
|
78
|
+
exportingPdf: null,
|
|
79
|
+
printFailed: null,
|
|
80
|
+
printFailedMessage: null,
|
|
81
|
+
printOpenPdf: null,
|
|
82
|
+
printPdfMissing: null,
|
|
83
|
+
printPreparing: null,
|
|
84
|
+
printNoViewer: null,
|
|
85
|
+
printLoadFailed: null,
|
|
86
|
+
printRefused: null
|
|
66
87
|
},
|
|
67
88
|
formattingBar: {
|
|
68
89
|
groups: {
|
|
@@ -107,7 +128,8 @@ var de_default = {
|
|
|
107
128
|
imageWrap: "Textumbruch",
|
|
108
129
|
formatPainter: null,
|
|
109
130
|
formatPainterShortcut: null,
|
|
110
|
-
paragraphMarks: null
|
|
131
|
+
paragraphMarks: null,
|
|
132
|
+
label: null
|
|
111
133
|
},
|
|
112
134
|
alignment: {
|
|
113
135
|
alignLeft: "Linksbündig",
|
|
@@ -497,7 +519,9 @@ var de_default = {
|
|
|
497
519
|
editor: {
|
|
498
520
|
showDocumentOutline: "Dokumentgliederung anzeigen",
|
|
499
521
|
linkCopied: "Link in Zwischenablage kopiert",
|
|
500
|
-
fontSubstitutionNotice: "Einige Schriftarten in diesem Dokument sind nicht verfügbar, daher werden Ersatzschriftarten angezeigt: {fonts}"
|
|
522
|
+
fontSubstitutionNotice: "Einige Schriftarten in diesem Dokument sind nicht verfügbar, daher werden Ersatzschriftarten angezeigt: {fonts}",
|
|
523
|
+
documentContent: null,
|
|
524
|
+
documentViewport: null
|
|
501
525
|
},
|
|
502
526
|
hyperlinkPopup: {
|
|
503
527
|
displayTextPlaceholder: "Anzuzeigender Text",
|
|
@@ -620,6 +644,14 @@ var de_default = {
|
|
|
620
644
|
start: null,
|
|
621
645
|
strike: null,
|
|
622
646
|
underline: null
|
|
647
|
+
},
|
|
648
|
+
structuralDetails: {
|
|
649
|
+
cellDelete: null,
|
|
650
|
+
cellInsert: null,
|
|
651
|
+
cellMerge: null,
|
|
652
|
+
numberingInsert: null,
|
|
653
|
+
rowDelete: null,
|
|
654
|
+
rowInsert: null
|
|
623
655
|
}
|
|
624
656
|
},
|
|
625
657
|
toc: {
|
|
@@ -936,6 +968,44 @@ var de_default = {
|
|
|
936
968
|
lowercase: null,
|
|
937
969
|
firstCapital: null,
|
|
938
970
|
titleCase: null
|
|
971
|
+
},
|
|
972
|
+
documentRefresh: {
|
|
973
|
+
cancel: null,
|
|
974
|
+
cancelled: null,
|
|
975
|
+
capturing: null,
|
|
976
|
+
clear: null,
|
|
977
|
+
complete: null,
|
|
978
|
+
count: null,
|
|
979
|
+
delivery: null,
|
|
980
|
+
description: null,
|
|
981
|
+
download: null,
|
|
982
|
+
empty: null,
|
|
983
|
+
failed: null,
|
|
984
|
+
idle: null,
|
|
985
|
+
invalidDocument: null,
|
|
986
|
+
limitations: null,
|
|
987
|
+
loadError: null,
|
|
988
|
+
localEdits: null,
|
|
989
|
+
next: null,
|
|
990
|
+
partial: null,
|
|
991
|
+
position: null,
|
|
992
|
+
previous: null,
|
|
993
|
+
processing: null,
|
|
994
|
+
recovering: null,
|
|
995
|
+
recoveryFailed: null,
|
|
996
|
+
refreshing: null,
|
|
997
|
+
reset: null,
|
|
998
|
+
retry: null,
|
|
999
|
+
review: null,
|
|
1000
|
+
show: null,
|
|
1001
|
+
start: null,
|
|
1002
|
+
title: null,
|
|
1003
|
+
unavailable: null,
|
|
1004
|
+
sampleDescription: null,
|
|
1005
|
+
scrollToChange: null,
|
|
1006
|
+
scrolled: null,
|
|
1007
|
+
processingLabel: null,
|
|
1008
|
+
sampleEdited: null
|
|
939
1009
|
}
|
|
940
1010
|
};
|
|
941
1011
|
|
package/dist/de.mjs
CHANGED
|
@@ -35,7 +35,28 @@ var de_default = {
|
|
|
35
35
|
insertFootnote: "Fußnote einfügen",
|
|
36
36
|
insertEndnote: "Endnote einfügen",
|
|
37
37
|
insertTable: null,
|
|
38
|
-
review: null
|
|
38
|
+
review: null,
|
|
39
|
+
export: null,
|
|
40
|
+
exportFailed: null,
|
|
41
|
+
exportMarkdown: null,
|
|
42
|
+
exportMarkdownMissing: null,
|
|
43
|
+
exportPdf: null,
|
|
44
|
+
exportPdfMissing: null,
|
|
45
|
+
exportPdfServerUnavailable: null,
|
|
46
|
+
exportContinueEditing: null,
|
|
47
|
+
exportDownloadHint: null,
|
|
48
|
+
exportMarkdownFailed: null,
|
|
49
|
+
exportPdfFailed: null,
|
|
50
|
+
exportingMarkdown: null,
|
|
51
|
+
exportingPdf: null,
|
|
52
|
+
printFailed: null,
|
|
53
|
+
printFailedMessage: null,
|
|
54
|
+
printOpenPdf: null,
|
|
55
|
+
printPdfMissing: null,
|
|
56
|
+
printPreparing: null,
|
|
57
|
+
printNoViewer: null,
|
|
58
|
+
printLoadFailed: null,
|
|
59
|
+
printRefused: null
|
|
39
60
|
},
|
|
40
61
|
formattingBar: {
|
|
41
62
|
groups: {
|
|
@@ -80,7 +101,8 @@ var de_default = {
|
|
|
80
101
|
imageWrap: "Textumbruch",
|
|
81
102
|
formatPainter: null,
|
|
82
103
|
formatPainterShortcut: null,
|
|
83
|
-
paragraphMarks: null
|
|
104
|
+
paragraphMarks: null,
|
|
105
|
+
label: null
|
|
84
106
|
},
|
|
85
107
|
alignment: {
|
|
86
108
|
alignLeft: "Linksbündig",
|
|
@@ -470,7 +492,9 @@ var de_default = {
|
|
|
470
492
|
editor: {
|
|
471
493
|
showDocumentOutline: "Dokumentgliederung anzeigen",
|
|
472
494
|
linkCopied: "Link in Zwischenablage kopiert",
|
|
473
|
-
fontSubstitutionNotice: "Einige Schriftarten in diesem Dokument sind nicht verfügbar, daher werden Ersatzschriftarten angezeigt: {fonts}"
|
|
495
|
+
fontSubstitutionNotice: "Einige Schriftarten in diesem Dokument sind nicht verfügbar, daher werden Ersatzschriftarten angezeigt: {fonts}",
|
|
496
|
+
documentContent: null,
|
|
497
|
+
documentViewport: null
|
|
474
498
|
},
|
|
475
499
|
hyperlinkPopup: {
|
|
476
500
|
displayTextPlaceholder: "Anzuzeigender Text",
|
|
@@ -593,6 +617,14 @@ var de_default = {
|
|
|
593
617
|
start: null,
|
|
594
618
|
strike: null,
|
|
595
619
|
underline: null
|
|
620
|
+
},
|
|
621
|
+
structuralDetails: {
|
|
622
|
+
cellDelete: null,
|
|
623
|
+
cellInsert: null,
|
|
624
|
+
cellMerge: null,
|
|
625
|
+
numberingInsert: null,
|
|
626
|
+
rowDelete: null,
|
|
627
|
+
rowInsert: null
|
|
596
628
|
}
|
|
597
629
|
},
|
|
598
630
|
toc: {
|
|
@@ -909,6 +941,44 @@ var de_default = {
|
|
|
909
941
|
lowercase: null,
|
|
910
942
|
firstCapital: null,
|
|
911
943
|
titleCase: null
|
|
944
|
+
},
|
|
945
|
+
documentRefresh: {
|
|
946
|
+
cancel: null,
|
|
947
|
+
cancelled: null,
|
|
948
|
+
capturing: null,
|
|
949
|
+
clear: null,
|
|
950
|
+
complete: null,
|
|
951
|
+
count: null,
|
|
952
|
+
delivery: null,
|
|
953
|
+
description: null,
|
|
954
|
+
download: null,
|
|
955
|
+
empty: null,
|
|
956
|
+
failed: null,
|
|
957
|
+
idle: null,
|
|
958
|
+
invalidDocument: null,
|
|
959
|
+
limitations: null,
|
|
960
|
+
loadError: null,
|
|
961
|
+
localEdits: null,
|
|
962
|
+
next: null,
|
|
963
|
+
partial: null,
|
|
964
|
+
position: null,
|
|
965
|
+
previous: null,
|
|
966
|
+
processing: null,
|
|
967
|
+
recovering: null,
|
|
968
|
+
recoveryFailed: null,
|
|
969
|
+
refreshing: null,
|
|
970
|
+
reset: null,
|
|
971
|
+
retry: null,
|
|
972
|
+
review: null,
|
|
973
|
+
show: null,
|
|
974
|
+
start: null,
|
|
975
|
+
title: null,
|
|
976
|
+
unavailable: null,
|
|
977
|
+
sampleDescription: null,
|
|
978
|
+
scrollToChange: null,
|
|
979
|
+
scrolled: null,
|
|
980
|
+
processingLabel: null,
|
|
981
|
+
sampleEdited: null
|
|
912
982
|
}
|
|
913
983
|
};
|
|
914
984
|
|
package/dist/en.js
CHANGED
|
@@ -91,13 +91,35 @@ var en_default = {
|
|
|
91
91
|
tableOfContents: "Table of contents",
|
|
92
92
|
watermark: "Watermark",
|
|
93
93
|
help: "Help",
|
|
94
|
-
reportIssue: "Report issue"
|
|
94
|
+
reportIssue: "Report issue",
|
|
95
|
+
export: "Export",
|
|
96
|
+
exportMarkdown: "Markdown (.md)",
|
|
97
|
+
exportPdf: "PDF (.pdf)",
|
|
98
|
+
exportFailed: "Export failed: {message}",
|
|
99
|
+
exportMarkdownMissing: "Install @docx-editor.dev/docx-to-markdown and configure menu.exporters.markdown.",
|
|
100
|
+
exportPdfMissing: "Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf.",
|
|
101
|
+
exportPdfServerUnavailable: "PDF export is unavailable. Configure a Node.js server with @docx-editor.dev/docx-to-pdf.",
|
|
102
|
+
exportingMarkdown: "Exporting Markdown…",
|
|
103
|
+
exportingPdf: "Exporting PDF…",
|
|
104
|
+
exportMarkdownFailed: "Markdown export failed",
|
|
105
|
+
exportPdfFailed: "PDF export failed",
|
|
106
|
+
exportDownloadHint: "Your download starts when the file is ready. You can continue editing while the export runs.",
|
|
107
|
+
exportContinueEditing: "Continue editing",
|
|
108
|
+
printPreparing: "Preparing to print…",
|
|
109
|
+
printOpenPdf: "Open PDF",
|
|
110
|
+
printFailed: "Print failed",
|
|
111
|
+
printFailedMessage: "Printing failed: {message}",
|
|
112
|
+
printLoadFailed: "The PDF did not load for printing. Select Open PDF, then print from the PDF viewer.",
|
|
113
|
+
printRefused: "The browser did not allow printing from the page. Select Open PDF, then print from the PDF viewer.",
|
|
114
|
+
printNoViewer: "This browser cannot print PDF files from the page. Select Open PDF, then print from the PDF viewer.",
|
|
115
|
+
printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf."
|
|
95
116
|
},
|
|
96
117
|
toc: {
|
|
97
118
|
refresh: "Refresh table of contents",
|
|
98
119
|
refreshPageNumbers: "Refresh page numbers"
|
|
99
120
|
},
|
|
100
121
|
formattingBar: {
|
|
122
|
+
label: "Formatting controls",
|
|
101
123
|
groups: {
|
|
102
124
|
history: "History",
|
|
103
125
|
zoom: "Zoom",
|
|
@@ -427,6 +449,14 @@ var en_default = {
|
|
|
427
449
|
single: "Single",
|
|
428
450
|
double: "Double",
|
|
429
451
|
auto: "Automatic"
|
|
452
|
+
},
|
|
453
|
+
structuralDetails: {
|
|
454
|
+
rowInsert: "Inserted table row",
|
|
455
|
+
rowDelete: "Deleted table row",
|
|
456
|
+
cellInsert: "Inserted table cell",
|
|
457
|
+
cellDelete: "Deleted table cell",
|
|
458
|
+
cellMerge: "Changed cell merge",
|
|
459
|
+
numberingInsert: "Inserted numbering reference"
|
|
430
460
|
}
|
|
431
461
|
},
|
|
432
462
|
contextMenu: {
|
|
@@ -645,6 +675,8 @@ var en_default = {
|
|
|
645
675
|
description: "Description"
|
|
646
676
|
},
|
|
647
677
|
editor: {
|
|
678
|
+
documentContent: "Document content",
|
|
679
|
+
documentViewport: "Document pages",
|
|
648
680
|
showDocumentOutline: "Show document outline",
|
|
649
681
|
linkCopied: "Link copied to clipboard",
|
|
650
682
|
fontSubstitutionNotice: "Some fonts in this document aren't available, so substitutes are shown: {fonts}"
|
|
@@ -936,6 +968,44 @@ var en_default = {
|
|
|
936
968
|
lowercase: "Lowercase",
|
|
937
969
|
firstCapital: "First capital",
|
|
938
970
|
titleCase: "Title case"
|
|
971
|
+
},
|
|
972
|
+
documentRefresh: {
|
|
973
|
+
title: "Server updates",
|
|
974
|
+
description: "Receive two sample updates while you read. Your scroll position stays in place.",
|
|
975
|
+
limitations: "Each update resets selection and undo history. Edits during processing prevent replacement.",
|
|
976
|
+
start: "Simulate server updates",
|
|
977
|
+
cancel: "Cancel updates",
|
|
978
|
+
reset: "Reset example",
|
|
979
|
+
show: "Highlight recent changes",
|
|
980
|
+
clear: "Clear highlights",
|
|
981
|
+
previous: "Previous change",
|
|
982
|
+
next: "Next change",
|
|
983
|
+
retry: "Restore document",
|
|
984
|
+
download: "Download recovery file",
|
|
985
|
+
empty: "No reliable change locations are available.",
|
|
986
|
+
count: "{count, plural, one {# recent change} other {# recent changes}}",
|
|
987
|
+
position: "Change {current} of {total}",
|
|
988
|
+
partial: "{count} processor operations failed. Successful changes remain applied.",
|
|
989
|
+
idle: "Ready for updates.",
|
|
990
|
+
capturing: "Preparing the document. Finish text composition to continue.",
|
|
991
|
+
processing: "Processing on the server. Edits made now prevent this update.",
|
|
992
|
+
refreshing: "Displaying the updated document.",
|
|
993
|
+
recovering: "Restoring your previous document.",
|
|
994
|
+
complete: "Document updated. Your scroll position stays in place.",
|
|
995
|
+
failed: "The update could not finish.",
|
|
996
|
+
loadError: "The example document could not load.",
|
|
997
|
+
localEdits: "Your edits are safe. Submit the document again to request an update.",
|
|
998
|
+
invalidDocument: "The returned file is invalid. Your document stays open.",
|
|
999
|
+
recoveryFailed: "Restore the document or download the recovery file.",
|
|
1000
|
+
cancelled: "Updates cancelled.",
|
|
1001
|
+
unavailable: "This change has no available location.",
|
|
1002
|
+
delivery: "Delivery date",
|
|
1003
|
+
review: "Review date",
|
|
1004
|
+
sampleDescription: "The mock replaces this sample. Reset the example before each test.",
|
|
1005
|
+
scrollToChange: "Scroll to the change after the update",
|
|
1006
|
+
scrolled: "Document updated. Scrolled to the changed paragraph.",
|
|
1007
|
+
processingLabel: "Processing",
|
|
1008
|
+
sampleEdited: "Your edits stay in the document. Reset the sample to run this demo again."
|
|
939
1009
|
}
|
|
940
1010
|
};
|
|
941
1011
|
|
package/dist/en.mjs
CHANGED
|
@@ -64,13 +64,35 @@ var en_default = {
|
|
|
64
64
|
tableOfContents: "Table of contents",
|
|
65
65
|
watermark: "Watermark",
|
|
66
66
|
help: "Help",
|
|
67
|
-
reportIssue: "Report issue"
|
|
67
|
+
reportIssue: "Report issue",
|
|
68
|
+
export: "Export",
|
|
69
|
+
exportMarkdown: "Markdown (.md)",
|
|
70
|
+
exportPdf: "PDF (.pdf)",
|
|
71
|
+
exportFailed: "Export failed: {message}",
|
|
72
|
+
exportMarkdownMissing: "Install @docx-editor.dev/docx-to-markdown and configure menu.exporters.markdown.",
|
|
73
|
+
exportPdfMissing: "Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf.",
|
|
74
|
+
exportPdfServerUnavailable: "PDF export is unavailable. Configure a Node.js server with @docx-editor.dev/docx-to-pdf.",
|
|
75
|
+
exportingMarkdown: "Exporting Markdown…",
|
|
76
|
+
exportingPdf: "Exporting PDF…",
|
|
77
|
+
exportMarkdownFailed: "Markdown export failed",
|
|
78
|
+
exportPdfFailed: "PDF export failed",
|
|
79
|
+
exportDownloadHint: "Your download starts when the file is ready. You can continue editing while the export runs.",
|
|
80
|
+
exportContinueEditing: "Continue editing",
|
|
81
|
+
printPreparing: "Preparing to print…",
|
|
82
|
+
printOpenPdf: "Open PDF",
|
|
83
|
+
printFailed: "Print failed",
|
|
84
|
+
printFailedMessage: "Printing failed: {message}",
|
|
85
|
+
printLoadFailed: "The PDF did not load for printing. Select Open PDF, then print from the PDF viewer.",
|
|
86
|
+
printRefused: "The browser did not allow printing from the page. Select Open PDF, then print from the PDF viewer.",
|
|
87
|
+
printNoViewer: "This browser cannot print PDF files from the page. Select Open PDF, then print from the PDF viewer.",
|
|
88
|
+
printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf."
|
|
68
89
|
},
|
|
69
90
|
toc: {
|
|
70
91
|
refresh: "Refresh table of contents",
|
|
71
92
|
refreshPageNumbers: "Refresh page numbers"
|
|
72
93
|
},
|
|
73
94
|
formattingBar: {
|
|
95
|
+
label: "Formatting controls",
|
|
74
96
|
groups: {
|
|
75
97
|
history: "History",
|
|
76
98
|
zoom: "Zoom",
|
|
@@ -400,6 +422,14 @@ var en_default = {
|
|
|
400
422
|
single: "Single",
|
|
401
423
|
double: "Double",
|
|
402
424
|
auto: "Automatic"
|
|
425
|
+
},
|
|
426
|
+
structuralDetails: {
|
|
427
|
+
rowInsert: "Inserted table row",
|
|
428
|
+
rowDelete: "Deleted table row",
|
|
429
|
+
cellInsert: "Inserted table cell",
|
|
430
|
+
cellDelete: "Deleted table cell",
|
|
431
|
+
cellMerge: "Changed cell merge",
|
|
432
|
+
numberingInsert: "Inserted numbering reference"
|
|
403
433
|
}
|
|
404
434
|
},
|
|
405
435
|
contextMenu: {
|
|
@@ -618,6 +648,8 @@ var en_default = {
|
|
|
618
648
|
description: "Description"
|
|
619
649
|
},
|
|
620
650
|
editor: {
|
|
651
|
+
documentContent: "Document content",
|
|
652
|
+
documentViewport: "Document pages",
|
|
621
653
|
showDocumentOutline: "Show document outline",
|
|
622
654
|
linkCopied: "Link copied to clipboard",
|
|
623
655
|
fontSubstitutionNotice: "Some fonts in this document aren't available, so substitutes are shown: {fonts}"
|
|
@@ -909,6 +941,44 @@ var en_default = {
|
|
|
909
941
|
lowercase: "Lowercase",
|
|
910
942
|
firstCapital: "First capital",
|
|
911
943
|
titleCase: "Title case"
|
|
944
|
+
},
|
|
945
|
+
documentRefresh: {
|
|
946
|
+
title: "Server updates",
|
|
947
|
+
description: "Receive two sample updates while you read. Your scroll position stays in place.",
|
|
948
|
+
limitations: "Each update resets selection and undo history. Edits during processing prevent replacement.",
|
|
949
|
+
start: "Simulate server updates",
|
|
950
|
+
cancel: "Cancel updates",
|
|
951
|
+
reset: "Reset example",
|
|
952
|
+
show: "Highlight recent changes",
|
|
953
|
+
clear: "Clear highlights",
|
|
954
|
+
previous: "Previous change",
|
|
955
|
+
next: "Next change",
|
|
956
|
+
retry: "Restore document",
|
|
957
|
+
download: "Download recovery file",
|
|
958
|
+
empty: "No reliable change locations are available.",
|
|
959
|
+
count: "{count, plural, one {# recent change} other {# recent changes}}",
|
|
960
|
+
position: "Change {current} of {total}",
|
|
961
|
+
partial: "{count} processor operations failed. Successful changes remain applied.",
|
|
962
|
+
idle: "Ready for updates.",
|
|
963
|
+
capturing: "Preparing the document. Finish text composition to continue.",
|
|
964
|
+
processing: "Processing on the server. Edits made now prevent this update.",
|
|
965
|
+
refreshing: "Displaying the updated document.",
|
|
966
|
+
recovering: "Restoring your previous document.",
|
|
967
|
+
complete: "Document updated. Your scroll position stays in place.",
|
|
968
|
+
failed: "The update could not finish.",
|
|
969
|
+
loadError: "The example document could not load.",
|
|
970
|
+
localEdits: "Your edits are safe. Submit the document again to request an update.",
|
|
971
|
+
invalidDocument: "The returned file is invalid. Your document stays open.",
|
|
972
|
+
recoveryFailed: "Restore the document or download the recovery file.",
|
|
973
|
+
cancelled: "Updates cancelled.",
|
|
974
|
+
unavailable: "This change has no available location.",
|
|
975
|
+
delivery: "Delivery date",
|
|
976
|
+
review: "Review date",
|
|
977
|
+
sampleDescription: "The mock replaces this sample. Reset the example before each test.",
|
|
978
|
+
scrollToChange: "Scroll to the change after the update",
|
|
979
|
+
scrolled: "Document updated. Scrolled to the changed paragraph.",
|
|
980
|
+
processingLabel: "Processing",
|
|
981
|
+
sampleEdited: "Your edits stay in the document. Reset the sample to run this demo again."
|
|
912
982
|
}
|
|
913
983
|
};
|
|
914
984
|
|
package/dist/fr.js
CHANGED
|
@@ -62,7 +62,28 @@ var fr_default = {
|
|
|
62
62
|
insertFootnote: "Insérer une note de bas de page",
|
|
63
63
|
insertEndnote: "Insérer une note de fin",
|
|
64
64
|
insertTable: null,
|
|
65
|
-
review: null
|
|
65
|
+
review: null,
|
|
66
|
+
export: null,
|
|
67
|
+
exportFailed: null,
|
|
68
|
+
exportMarkdown: null,
|
|
69
|
+
exportMarkdownMissing: null,
|
|
70
|
+
exportPdf: null,
|
|
71
|
+
exportPdfMissing: null,
|
|
72
|
+
exportPdfServerUnavailable: null,
|
|
73
|
+
exportContinueEditing: null,
|
|
74
|
+
exportDownloadHint: null,
|
|
75
|
+
exportMarkdownFailed: null,
|
|
76
|
+
exportPdfFailed: null,
|
|
77
|
+
exportingMarkdown: null,
|
|
78
|
+
exportingPdf: null,
|
|
79
|
+
printFailed: null,
|
|
80
|
+
printFailedMessage: null,
|
|
81
|
+
printOpenPdf: null,
|
|
82
|
+
printPdfMissing: null,
|
|
83
|
+
printPreparing: null,
|
|
84
|
+
printNoViewer: null,
|
|
85
|
+
printLoadFailed: null,
|
|
86
|
+
printRefused: null
|
|
66
87
|
},
|
|
67
88
|
formattingBar: {
|
|
68
89
|
groups: {
|
|
@@ -107,7 +128,8 @@ var fr_default = {
|
|
|
107
128
|
imageWrap: "Habillage du texte",
|
|
108
129
|
formatPainter: null,
|
|
109
130
|
formatPainterShortcut: null,
|
|
110
|
-
paragraphMarks: null
|
|
131
|
+
paragraphMarks: null,
|
|
132
|
+
label: null
|
|
111
133
|
},
|
|
112
134
|
alignment: {
|
|
113
135
|
alignLeft: "Aligner à gauche",
|
|
@@ -500,7 +522,9 @@ var fr_default = {
|
|
|
500
522
|
editor: {
|
|
501
523
|
showDocumentOutline: "Afficher le plan",
|
|
502
524
|
linkCopied: "Lien copié dans le presse-papiers",
|
|
503
|
-
fontSubstitutionNotice: "Certaines polices de ce document ne sont pas disponibles ; des polices de substitution sont affichées : {fonts}"
|
|
525
|
+
fontSubstitutionNotice: "Certaines polices de ce document ne sont pas disponibles ; des polices de substitution sont affichées : {fonts}",
|
|
526
|
+
documentContent: null,
|
|
527
|
+
documentViewport: null
|
|
504
528
|
},
|
|
505
529
|
hyperlinkPopup: {
|
|
506
530
|
displayTextPlaceholder: "Texte à afficher",
|
|
@@ -620,6 +644,14 @@ var fr_default = {
|
|
|
620
644
|
start: null,
|
|
621
645
|
strike: null,
|
|
622
646
|
underline: null
|
|
647
|
+
},
|
|
648
|
+
structuralDetails: {
|
|
649
|
+
cellDelete: null,
|
|
650
|
+
cellInsert: null,
|
|
651
|
+
cellMerge: null,
|
|
652
|
+
numberingInsert: null,
|
|
653
|
+
rowDelete: null,
|
|
654
|
+
rowInsert: null
|
|
623
655
|
}
|
|
624
656
|
},
|
|
625
657
|
toc: {
|
|
@@ -936,6 +968,44 @@ var fr_default = {
|
|
|
936
968
|
lowercase: null,
|
|
937
969
|
firstCapital: null,
|
|
938
970
|
titleCase: null
|
|
971
|
+
},
|
|
972
|
+
documentRefresh: {
|
|
973
|
+
cancel: null,
|
|
974
|
+
cancelled: null,
|
|
975
|
+
capturing: null,
|
|
976
|
+
clear: null,
|
|
977
|
+
complete: null,
|
|
978
|
+
count: null,
|
|
979
|
+
delivery: null,
|
|
980
|
+
description: null,
|
|
981
|
+
download: null,
|
|
982
|
+
empty: null,
|
|
983
|
+
failed: null,
|
|
984
|
+
idle: null,
|
|
985
|
+
invalidDocument: null,
|
|
986
|
+
limitations: null,
|
|
987
|
+
loadError: null,
|
|
988
|
+
localEdits: null,
|
|
989
|
+
next: null,
|
|
990
|
+
partial: null,
|
|
991
|
+
position: null,
|
|
992
|
+
previous: null,
|
|
993
|
+
processing: null,
|
|
994
|
+
recovering: null,
|
|
995
|
+
recoveryFailed: null,
|
|
996
|
+
refreshing: null,
|
|
997
|
+
reset: null,
|
|
998
|
+
retry: null,
|
|
999
|
+
review: null,
|
|
1000
|
+
show: null,
|
|
1001
|
+
start: null,
|
|
1002
|
+
title: null,
|
|
1003
|
+
unavailable: null,
|
|
1004
|
+
sampleDescription: null,
|
|
1005
|
+
scrollToChange: null,
|
|
1006
|
+
scrolled: null,
|
|
1007
|
+
processingLabel: null,
|
|
1008
|
+
sampleEdited: null
|
|
939
1009
|
}
|
|
940
1010
|
};
|
|
941
1011
|
|