@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/dist/id.mjs CHANGED
@@ -35,7 +35,28 @@ var id_default = {
35
35
  insertFootnote: "Sisipkan catatan kaki",
36
36
  insertEndnote: "Sisipkan catatan akhir",
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 id_default = {
80
101
  imageWrap: "Bungkus teks",
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: "Rata Kiri",
@@ -367,6 +389,14 @@ var id_default = {
367
389
  start: null,
368
390
  strike: null,
369
391
  underline: null
392
+ },
393
+ structuralDetails: {
394
+ cellDelete: null,
395
+ cellInsert: null,
396
+ cellMerge: null,
397
+ numberingInsert: null,
398
+ rowDelete: null,
399
+ rowInsert: null
370
400
  }
371
401
  },
372
402
  contextMenu: {
@@ -515,7 +545,9 @@ var id_default = {
515
545
  editor: {
516
546
  showDocumentOutline: "Tampilkan Kerangka Dokumen",
517
547
  linkCopied: "Tautan disalin ke papan klip",
518
- fontSubstitutionNotice: "Beberapa font dalam dokumen ini tidak tersedia, jadi font pengganti ditampilkan: {fonts}"
548
+ fontSubstitutionNotice: "Beberapa font dalam dokumen ini tidak tersedia, jadi font pengganti ditampilkan: {fonts}",
549
+ documentContent: null,
550
+ documentViewport: null
519
551
  },
520
552
  hyperlinkPopup: {
521
553
  displayTextPlaceholder: "Teks yang ditampilkan",
@@ -909,6 +941,44 @@ var id_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/index.d.mts 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",
@@ -424,6 +446,14 @@ var revisions = {
424
446
  single: "Single",
425
447
  double: "Double",
426
448
  auto: "Automatic"
449
+ },
450
+ structuralDetails: {
451
+ rowInsert: "Inserted table row",
452
+ rowDelete: "Deleted table row",
453
+ cellInsert: "Inserted table cell",
454
+ cellDelete: "Deleted table cell",
455
+ cellMerge: "Changed cell merge",
456
+ numberingInsert: "Inserted numbering reference"
427
457
  }
428
458
  };
429
459
  var contextMenu = {
@@ -642,6 +672,8 @@ var imageAltText = {
642
672
  description: "Description"
643
673
  };
644
674
  var editor = {
675
+ documentContent: "Document content",
676
+ documentViewport: "Document pages",
645
677
  showDocumentOutline: "Show document outline",
646
678
  linkCopied: "Link copied to clipboard",
647
679
  fontSubstitutionNotice: "Some fonts in this document aren't available, so substitutes are shown: {fonts}"
@@ -934,6 +966,44 @@ var textFormField = {
934
966
  firstCapital: "First capital",
935
967
  titleCase: "Title case"
936
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
+ };
937
1007
  var enJson = {
938
1008
  _lang: _lang,
939
1009
  common: common,
@@ -980,7 +1050,8 @@ var enJson = {
980
1050
  collaboration: collaboration,
981
1051
  collaborationDemo: collaborationDemo,
982
1052
  review: review,
983
- textFormField: textFormField
1053
+ textFormField: textFormField,
1054
+ documentRefresh: documentRefresh
984
1055
  };
985
1056
 
986
1057
  /**
@@ -992,6 +1063,18 @@ var enJson = {
992
1063
  */
993
1064
  declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
994
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;
995
1078
  /**
996
1079
  * Rewrite the modifier names in a resolved label for this platform.
997
1080
  *
@@ -1167,4 +1250,4 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
1167
1250
  */
1168
1251
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
1169
1252
 
1170
- 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 };
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",
@@ -424,6 +446,14 @@ var revisions = {
424
446
  single: "Single",
425
447
  double: "Double",
426
448
  auto: "Automatic"
449
+ },
450
+ structuralDetails: {
451
+ rowInsert: "Inserted table row",
452
+ rowDelete: "Deleted table row",
453
+ cellInsert: "Inserted table cell",
454
+ cellDelete: "Deleted table cell",
455
+ cellMerge: "Changed cell merge",
456
+ numberingInsert: "Inserted numbering reference"
427
457
  }
428
458
  };
429
459
  var contextMenu = {
@@ -642,6 +672,8 @@ var imageAltText = {
642
672
  description: "Description"
643
673
  };
644
674
  var editor = {
675
+ documentContent: "Document content",
676
+ documentViewport: "Document pages",
645
677
  showDocumentOutline: "Show document outline",
646
678
  linkCopied: "Link copied to clipboard",
647
679
  fontSubstitutionNotice: "Some fonts in this document aren't available, so substitutes are shown: {fonts}"
@@ -934,6 +966,44 @@ var textFormField = {
934
966
  firstCapital: "First capital",
935
967
  titleCase: "Title case"
936
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
+ };
937
1007
  var enJson = {
938
1008
  _lang: _lang,
939
1009
  common: common,
@@ -980,7 +1050,8 @@ var enJson = {
980
1050
  collaboration: collaboration,
981
1051
  collaborationDemo: collaborationDemo,
982
1052
  review: review,
983
- textFormField: textFormField
1053
+ textFormField: textFormField,
1054
+ documentRefresh: documentRefresh
984
1055
  };
985
1056
 
986
1057
  /**
@@ -992,6 +1063,18 @@ var enJson = {
992
1063
  */
993
1064
  declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
994
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;
995
1078
  /**
996
1079
  * Rewrite the modifier names in a resolved label for this platform.
997
1080
  *
@@ -1167,4 +1250,4 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
1167
1250
  */
1168
1251
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
1169
1252
 
1170
- 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 };