@docx-editor.dev/i18n 2.21.1 → 2.23.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/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",
@@ -106,6 +128,7 @@ var en_default = {
106
128
  textFormatting: "Text formatting",
107
129
  script: "Script",
108
130
  alignment: "Alignment",
131
+ direction: "Text direction",
109
132
  listFormatting: "List formatting",
110
133
  format: "Format",
111
134
  image: "Image",
@@ -329,6 +352,9 @@ var en_default = {
329
352
  alignCenter: "Centered",
330
353
  alignRight: "Right",
331
354
  alignJustify: "Justified",
355
+ direction: "Direction",
356
+ directionLtr: "Left-to-right",
357
+ directionRtl: "Right-to-left",
332
358
  indentation: "Indentation",
333
359
  beforeText: "Before text",
334
360
  afterText: "After text",
@@ -653,6 +679,8 @@ var en_default = {
653
679
  description: "Description"
654
680
  },
655
681
  editor: {
682
+ documentContent: "Document content",
683
+ documentViewport: "Document pages",
656
684
  showDocumentOutline: "Show document outline",
657
685
  linkCopied: "Link copied to clipboard",
658
686
  fontSubstitutionNotice: "Some fonts in this document aren't available, so substitutes are shown: {fonts}"
@@ -944,6 +972,101 @@ var en_default = {
944
972
  lowercase: "Lowercase",
945
973
  firstCapital: "First capital",
946
974
  titleCase: "Title case"
975
+ },
976
+ documentRefresh: {
977
+ title: "Server updates",
978
+ description: "Receive two sample updates while you read. Your scroll position stays in place.",
979
+ limitations: "Each update resets selection and undo history. Edits during processing prevent replacement.",
980
+ start: "Simulate server updates",
981
+ cancel: "Cancel updates",
982
+ reset: "Reset example",
983
+ show: "Highlight recent changes",
984
+ clear: "Clear highlights",
985
+ previous: "Previous change",
986
+ next: "Next change",
987
+ retry: "Restore document",
988
+ download: "Download recovery file",
989
+ empty: "No reliable change locations are available.",
990
+ count: "{count, plural, one {# recent change} other {# recent changes}}",
991
+ position: "Change {current} of {total}",
992
+ partial: "{count} processor operations failed. Successful changes remain applied.",
993
+ idle: "Ready for updates.",
994
+ capturing: "Preparing the document. Finish text composition to continue.",
995
+ processing: "Processing on the server. Edits made now prevent this update.",
996
+ refreshing: "Displaying the updated document.",
997
+ recovering: "Restoring your previous document.",
998
+ complete: "Document updated. Your scroll position stays in place.",
999
+ failed: "The update could not finish.",
1000
+ loadError: "The example document could not load.",
1001
+ localEdits: "Your edits are safe. Submit the document again to request an update.",
1002
+ invalidDocument: "The returned file is invalid. Your document stays open.",
1003
+ recoveryFailed: "Restore the document or download the recovery file.",
1004
+ cancelled: "Updates cancelled.",
1005
+ unavailable: "This change has no available location.",
1006
+ delivery: "Delivery date",
1007
+ review: "Review date",
1008
+ sampleDescription: "The mock replaces this sample. Reset the example before each test.",
1009
+ scrollToChange: "Scroll to the change after the update",
1010
+ scrolled: "Document updated. Scrolled to the changed paragraph.",
1011
+ processingLabel: "Processing",
1012
+ sampleEdited: "Your edits stay in the document. Reset the sample to run this demo again."
1013
+ },
1014
+ anchorNavigation: {
1015
+ title: "Paragraph references",
1016
+ description: "Choose a finding and an effect. The editor scrolls to the paragraph, highlights it, or both.",
1017
+ reference: "Reference",
1018
+ effect: "Effect",
1019
+ style: "Highlight style",
1020
+ duration: "Highlight duration",
1021
+ position: "Scroll position",
1022
+ motion: "Scroll motion",
1023
+ show: "Show reference",
1024
+ clear: "Clear highlight",
1025
+ code: "Calls for these settings",
1026
+ ready: "Choose a reference, and then select Show reference.",
1027
+ cleared: "The highlight is cleared.",
1028
+ scrollFailed: "This reference is unavailable. The document did not move.",
1029
+ highlightFailed: "Scrolled to the reference. Highlights support body paragraphs and table cells only.",
1030
+ highlightOnlyFailed: "This reference cannot receive a highlight. Highlights support body paragraphs and table cells only.",
1031
+ references: {
1032
+ payment: "Payment terms",
1033
+ fee: "Annual support fee (table cell)",
1034
+ liability: 'Second "Supplier" in the liability clause',
1035
+ law: '"State of New York" in governing law',
1036
+ header: "Draft notice (header)",
1037
+ missing: "Deleted paragraph (missing)"
1038
+ },
1039
+ effects: {
1040
+ both: "Scroll and highlight",
1041
+ scroll: "Scroll only",
1042
+ highlight: "Highlight only"
1043
+ },
1044
+ styles: {
1045
+ default: "Default blue",
1046
+ amber: "Amber with a dashed border",
1047
+ glow: "Green glow (CSS class)",
1048
+ instant: "Default blue without a fade"
1049
+ },
1050
+ durations: {
1051
+ short: "1.5 seconds",
1052
+ default: "3 seconds",
1053
+ manual: "Until cleared"
1054
+ },
1055
+ positions: {
1056
+ centerIfNeeded: "Center if needed",
1057
+ center: "Center",
1058
+ start: "Top of the viewport",
1059
+ nearest: "Nearest edge"
1060
+ },
1061
+ motions: {
1062
+ instant: "Instant",
1063
+ smooth: "Smooth"
1064
+ },
1065
+ done: {
1066
+ both: "Scrolled to the reference and highlighted it.",
1067
+ scroll: "Scrolled to the reference.",
1068
+ highlight: "Highlighted the reference. If it is offscreen, scroll to see it."
1069
+ }
947
1070
  }
948
1071
  };
949
1072
 
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",
@@ -79,6 +101,7 @@ var en_default = {
79
101
  textFormatting: "Text formatting",
80
102
  script: "Script",
81
103
  alignment: "Alignment",
104
+ direction: "Text direction",
82
105
  listFormatting: "List formatting",
83
106
  format: "Format",
84
107
  image: "Image",
@@ -302,6 +325,9 @@ var en_default = {
302
325
  alignCenter: "Centered",
303
326
  alignRight: "Right",
304
327
  alignJustify: "Justified",
328
+ direction: "Direction",
329
+ directionLtr: "Left-to-right",
330
+ directionRtl: "Right-to-left",
305
331
  indentation: "Indentation",
306
332
  beforeText: "Before text",
307
333
  afterText: "After text",
@@ -626,6 +652,8 @@ var en_default = {
626
652
  description: "Description"
627
653
  },
628
654
  editor: {
655
+ documentContent: "Document content",
656
+ documentViewport: "Document pages",
629
657
  showDocumentOutline: "Show document outline",
630
658
  linkCopied: "Link copied to clipboard",
631
659
  fontSubstitutionNotice: "Some fonts in this document aren't available, so substitutes are shown: {fonts}"
@@ -917,6 +945,101 @@ var en_default = {
917
945
  lowercase: "Lowercase",
918
946
  firstCapital: "First capital",
919
947
  titleCase: "Title case"
948
+ },
949
+ documentRefresh: {
950
+ title: "Server updates",
951
+ description: "Receive two sample updates while you read. Your scroll position stays in place.",
952
+ limitations: "Each update resets selection and undo history. Edits during processing prevent replacement.",
953
+ start: "Simulate server updates",
954
+ cancel: "Cancel updates",
955
+ reset: "Reset example",
956
+ show: "Highlight recent changes",
957
+ clear: "Clear highlights",
958
+ previous: "Previous change",
959
+ next: "Next change",
960
+ retry: "Restore document",
961
+ download: "Download recovery file",
962
+ empty: "No reliable change locations are available.",
963
+ count: "{count, plural, one {# recent change} other {# recent changes}}",
964
+ position: "Change {current} of {total}",
965
+ partial: "{count} processor operations failed. Successful changes remain applied.",
966
+ idle: "Ready for updates.",
967
+ capturing: "Preparing the document. Finish text composition to continue.",
968
+ processing: "Processing on the server. Edits made now prevent this update.",
969
+ refreshing: "Displaying the updated document.",
970
+ recovering: "Restoring your previous document.",
971
+ complete: "Document updated. Your scroll position stays in place.",
972
+ failed: "The update could not finish.",
973
+ loadError: "The example document could not load.",
974
+ localEdits: "Your edits are safe. Submit the document again to request an update.",
975
+ invalidDocument: "The returned file is invalid. Your document stays open.",
976
+ recoveryFailed: "Restore the document or download the recovery file.",
977
+ cancelled: "Updates cancelled.",
978
+ unavailable: "This change has no available location.",
979
+ delivery: "Delivery date",
980
+ review: "Review date",
981
+ sampleDescription: "The mock replaces this sample. Reset the example before each test.",
982
+ scrollToChange: "Scroll to the change after the update",
983
+ scrolled: "Document updated. Scrolled to the changed paragraph.",
984
+ processingLabel: "Processing",
985
+ sampleEdited: "Your edits stay in the document. Reset the sample to run this demo again."
986
+ },
987
+ anchorNavigation: {
988
+ title: "Paragraph references",
989
+ description: "Choose a finding and an effect. The editor scrolls to the paragraph, highlights it, or both.",
990
+ reference: "Reference",
991
+ effect: "Effect",
992
+ style: "Highlight style",
993
+ duration: "Highlight duration",
994
+ position: "Scroll position",
995
+ motion: "Scroll motion",
996
+ show: "Show reference",
997
+ clear: "Clear highlight",
998
+ code: "Calls for these settings",
999
+ ready: "Choose a reference, and then select Show reference.",
1000
+ cleared: "The highlight is cleared.",
1001
+ scrollFailed: "This reference is unavailable. The document did not move.",
1002
+ highlightFailed: "Scrolled to the reference. Highlights support body paragraphs and table cells only.",
1003
+ highlightOnlyFailed: "This reference cannot receive a highlight. Highlights support body paragraphs and table cells only.",
1004
+ references: {
1005
+ payment: "Payment terms",
1006
+ fee: "Annual support fee (table cell)",
1007
+ liability: 'Second "Supplier" in the liability clause',
1008
+ law: '"State of New York" in governing law',
1009
+ header: "Draft notice (header)",
1010
+ missing: "Deleted paragraph (missing)"
1011
+ },
1012
+ effects: {
1013
+ both: "Scroll and highlight",
1014
+ scroll: "Scroll only",
1015
+ highlight: "Highlight only"
1016
+ },
1017
+ styles: {
1018
+ default: "Default blue",
1019
+ amber: "Amber with a dashed border",
1020
+ glow: "Green glow (CSS class)",
1021
+ instant: "Default blue without a fade"
1022
+ },
1023
+ durations: {
1024
+ short: "1.5 seconds",
1025
+ default: "3 seconds",
1026
+ manual: "Until cleared"
1027
+ },
1028
+ positions: {
1029
+ centerIfNeeded: "Center if needed",
1030
+ center: "Center",
1031
+ start: "Top of the viewport",
1032
+ nearest: "Nearest edge"
1033
+ },
1034
+ motions: {
1035
+ instant: "Instant",
1036
+ smooth: "Smooth"
1037
+ },
1038
+ done: {
1039
+ both: "Scrolled to the reference and highlighted it.",
1040
+ scroll: "Scrolled to the reference.",
1041
+ highlight: "Highlighted the reference. If it is offscreen, scroll to see it."
1042
+ }
920
1043
  }
921
1044
  };
922
1045
 
package/dist/es.d.mts ADDED
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @docx-editor.dev/i18n/es
3
+ *
4
+ * Spanish (`es`) — direct locale subpath for per-locale code-splitting.
5
+ *
6
+ * ```ts
7
+ * // Static — bundler ships only this locale's strings
8
+ * import es from '@docx-editor.dev/i18n/es';
9
+ *
10
+ * // Dynamic — splits into its own chunk, loaded on demand
11
+ * const es = (await import('@docx-editor.dev/i18n/es')).default;
12
+ * ```
13
+ *
14
+ * For multi-locale apps, prefer the per-locale subpaths over importing
15
+ * `locales` from the package root — `locales` pulls every locale into
16
+ * the bundle.
17
+ *
18
+ * @packageDocumentation
19
+ * @public
20
+ */
21
+ import { PartialLocaleStrings } from './index.mjs';
22
+
23
+ /**
24
+ * Spanish (`es`) locale strings. Community-maintained; null leaves fall back to English.
25
+ *
26
+ * Identical content to the named `es` export from the package root;
27
+ * this subpath just lets bundlers code-split it.
28
+ *
29
+ * @public
30
+ */
31
+ declare const es: PartialLocaleStrings;
32
+
33
+ export { es as default, es };
package/dist/es.d.ts ADDED
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @docx-editor.dev/i18n/es
3
+ *
4
+ * Spanish (`es`) — direct locale subpath for per-locale code-splitting.
5
+ *
6
+ * ```ts
7
+ * // Static — bundler ships only this locale's strings
8
+ * import es from '@docx-editor.dev/i18n/es';
9
+ *
10
+ * // Dynamic — splits into its own chunk, loaded on demand
11
+ * const es = (await import('@docx-editor.dev/i18n/es')).default;
12
+ * ```
13
+ *
14
+ * For multi-locale apps, prefer the per-locale subpaths over importing
15
+ * `locales` from the package root — `locales` pulls every locale into
16
+ * the bundle.
17
+ *
18
+ * @packageDocumentation
19
+ * @public
20
+ */
21
+ import { PartialLocaleStrings } from './index.js';
22
+
23
+ /**
24
+ * Spanish (`es`) locale strings. Community-maintained; null leaves fall back to English.
25
+ *
26
+ * Identical content to the named `es` export from the package root;
27
+ * this subpath just lets bundlers code-split it.
28
+ *
29
+ * @public
30
+ */
31
+ declare const es: PartialLocaleStrings;
32
+
33
+ export { es as default, es };