@docx-editor.dev/i18n 2.21.1 → 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 +3 -15
- package/dist/de.js +65 -3
- package/dist/de.mjs +65 -3
- package/dist/en.js +63 -1
- package/dist/en.mjs +63 -1
- package/dist/fr.js +65 -3
- package/dist/fr.mjs +65 -3
- package/dist/he.js +65 -3
- package/dist/he.mjs +65 -3
- package/dist/hi.js +65 -3
- package/dist/hi.mjs +65 -3
- package/dist/id.js +65 -3
- package/dist/id.mjs +65 -3
- package/dist/index.d.mts +78 -3
- package/dist/index.d.ts +78 -3
- package/dist/index.js +650 -28
- package/dist/index.mjs +649 -28
- package/dist/pl.js +65 -3
- package/dist/pl.mjs +65 -3
- package/dist/pt-BR.js +65 -3
- package/dist/pt-BR.mjs +65 -3
- package/dist/tr.js +65 -3
- package/dist/tr.mjs +65 -3
- package/dist/zh-CN.js +65 -3
- package/dist/zh-CN.mjs +65 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -88,13 +88,35 @@ var toolbar = {
|
|
|
88
88
|
tableOfContents: "Table of contents",
|
|
89
89
|
watermark: "Watermark",
|
|
90
90
|
help: "Help",
|
|
91
|
-
reportIssue: "Report issue"
|
|
91
|
+
reportIssue: "Report issue",
|
|
92
|
+
"export": "Export",
|
|
93
|
+
exportMarkdown: "Markdown (.md)",
|
|
94
|
+
exportPdf: "PDF (.pdf)",
|
|
95
|
+
exportFailed: "Export failed: {message}",
|
|
96
|
+
exportMarkdownMissing: "Install @docx-editor.dev/docx-to-markdown and configure menu.exporters.markdown.",
|
|
97
|
+
exportPdfMissing: "Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf.",
|
|
98
|
+
exportPdfServerUnavailable: "PDF export is unavailable. Configure a Node.js server with @docx-editor.dev/docx-to-pdf.",
|
|
99
|
+
exportingMarkdown: "Exporting Markdown…",
|
|
100
|
+
exportingPdf: "Exporting PDF…",
|
|
101
|
+
exportMarkdownFailed: "Markdown export failed",
|
|
102
|
+
exportPdfFailed: "PDF export failed",
|
|
103
|
+
exportDownloadHint: "Your download starts when the file is ready. You can continue editing while the export runs.",
|
|
104
|
+
exportContinueEditing: "Continue editing",
|
|
105
|
+
printPreparing: "Preparing to print…",
|
|
106
|
+
printOpenPdf: "Open PDF",
|
|
107
|
+
printFailed: "Print failed",
|
|
108
|
+
printFailedMessage: "Printing failed: {message}",
|
|
109
|
+
printLoadFailed: "The PDF did not load for printing. Select Open PDF, then print from the PDF viewer.",
|
|
110
|
+
printRefused: "The browser did not allow printing from the page. Select Open PDF, then print from the PDF viewer.",
|
|
111
|
+
printNoViewer: "This browser cannot print PDF files from the page. Select Open PDF, then print from the PDF viewer.",
|
|
112
|
+
printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf."
|
|
92
113
|
};
|
|
93
114
|
var toc = {
|
|
94
115
|
refresh: "Refresh table of contents",
|
|
95
116
|
refreshPageNumbers: "Refresh page numbers"
|
|
96
117
|
};
|
|
97
118
|
var formattingBar = {
|
|
119
|
+
label: "Formatting controls",
|
|
98
120
|
groups: {
|
|
99
121
|
history: "History",
|
|
100
122
|
zoom: "Zoom",
|
|
@@ -650,6 +672,8 @@ var imageAltText = {
|
|
|
650
672
|
description: "Description"
|
|
651
673
|
};
|
|
652
674
|
var editor = {
|
|
675
|
+
documentContent: "Document content",
|
|
676
|
+
documentViewport: "Document pages",
|
|
653
677
|
showDocumentOutline: "Show document outline",
|
|
654
678
|
linkCopied: "Link copied to clipboard",
|
|
655
679
|
fontSubstitutionNotice: "Some fonts in this document aren't available, so substitutes are shown: {fonts}"
|
|
@@ -942,6 +966,44 @@ var textFormField = {
|
|
|
942
966
|
firstCapital: "First capital",
|
|
943
967
|
titleCase: "Title case"
|
|
944
968
|
};
|
|
969
|
+
var documentRefresh = {
|
|
970
|
+
title: "Server updates",
|
|
971
|
+
description: "Receive two sample updates while you read. Your scroll position stays in place.",
|
|
972
|
+
limitations: "Each update resets selection and undo history. Edits during processing prevent replacement.",
|
|
973
|
+
start: "Simulate server updates",
|
|
974
|
+
cancel: "Cancel updates",
|
|
975
|
+
reset: "Reset example",
|
|
976
|
+
show: "Highlight recent changes",
|
|
977
|
+
clear: "Clear highlights",
|
|
978
|
+
previous: "Previous change",
|
|
979
|
+
next: "Next change",
|
|
980
|
+
retry: "Restore document",
|
|
981
|
+
download: "Download recovery file",
|
|
982
|
+
empty: "No reliable change locations are available.",
|
|
983
|
+
count: "{count, plural, one {# recent change} other {# recent changes}}",
|
|
984
|
+
position: "Change {current} of {total}",
|
|
985
|
+
partial: "{count} processor operations failed. Successful changes remain applied.",
|
|
986
|
+
idle: "Ready for updates.",
|
|
987
|
+
capturing: "Preparing the document. Finish text composition to continue.",
|
|
988
|
+
processing: "Processing on the server. Edits made now prevent this update.",
|
|
989
|
+
refreshing: "Displaying the updated document.",
|
|
990
|
+
recovering: "Restoring your previous document.",
|
|
991
|
+
complete: "Document updated. Your scroll position stays in place.",
|
|
992
|
+
failed: "The update could not finish.",
|
|
993
|
+
loadError: "The example document could not load.",
|
|
994
|
+
localEdits: "Your edits are safe. Submit the document again to request an update.",
|
|
995
|
+
invalidDocument: "The returned file is invalid. Your document stays open.",
|
|
996
|
+
recoveryFailed: "Restore the document or download the recovery file.",
|
|
997
|
+
cancelled: "Updates cancelled.",
|
|
998
|
+
unavailable: "This change has no available location.",
|
|
999
|
+
delivery: "Delivery date",
|
|
1000
|
+
review: "Review date",
|
|
1001
|
+
sampleDescription: "The mock replaces this sample. Reset the example before each test.",
|
|
1002
|
+
scrollToChange: "Scroll to the change after the update",
|
|
1003
|
+
scrolled: "Document updated. Scrolled to the changed paragraph.",
|
|
1004
|
+
processingLabel: "Processing",
|
|
1005
|
+
sampleEdited: "Your edits stay in the document. Reset the sample to run this demo again."
|
|
1006
|
+
};
|
|
945
1007
|
var enJson = {
|
|
946
1008
|
_lang: _lang,
|
|
947
1009
|
common: common,
|
|
@@ -988,7 +1050,8 @@ var enJson = {
|
|
|
988
1050
|
collaboration: collaboration,
|
|
989
1051
|
collaborationDemo: collaborationDemo,
|
|
990
1052
|
review: review,
|
|
991
|
-
textFormField: textFormField
|
|
1053
|
+
textFormField: textFormField,
|
|
1054
|
+
documentRefresh: documentRefresh
|
|
992
1055
|
};
|
|
993
1056
|
|
|
994
1057
|
/**
|
|
@@ -1000,6 +1063,18 @@ var enJson = {
|
|
|
1000
1063
|
*/
|
|
1001
1064
|
declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
|
|
1002
1065
|
|
|
1066
|
+
/**
|
|
1067
|
+
* Whether this browser is running on an Apple platform.
|
|
1068
|
+
*
|
|
1069
|
+
* `userAgentData.platform` first — it is the un-deprecated answer and is not frozen the way
|
|
1070
|
+
* `navigator.platform` is. Both are absent under SSR and in a bare test environment, where
|
|
1071
|
+
* the answer is `false` and the Windows spelling renders: a shortcut that reads "Ctrl+C" on
|
|
1072
|
+
* a Mac is wrong, and one that reads "⌘C" in a server render that then hydrates on Windows
|
|
1073
|
+
* is worse, because it is wrong AND it flickers.
|
|
1074
|
+
*
|
|
1075
|
+
* @public
|
|
1076
|
+
*/
|
|
1077
|
+
declare function isApplePlatform(): boolean;
|
|
1003
1078
|
/**
|
|
1004
1079
|
* Rewrite the modifier names in a resolved label for this platform.
|
|
1005
1080
|
*
|
|
@@ -1175,4 +1250,4 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
|
|
|
1175
1250
|
*/
|
|
1176
1251
|
declare function createT(strings: LocaleStrings, lang?: string): TFunction;
|
|
1177
1252
|
|
|
1178
|
-
export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, createT, de, deepMerge, en, fr, he, hi, id, locales, localizeDisabledReason, pl, platformShortcut, ptBR, tr, zhCN };
|
|
1253
|
+
export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, createT, de, deepMerge, en, fr, he, hi, id, isApplePlatform, locales, localizeDisabledReason, pl, platformShortcut, ptBR, tr, zhCN };
|