@docx-editor.dev/i18n 2.9.2 → 2.11.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/index.d.mts CHANGED
@@ -39,18 +39,25 @@ var disabledReason = {
39
39
  trackedOnly: "This document permits edits only as tracked changes",
40
40
  noDocument: "No document is loaded",
41
41
  noContentControl: "No content control is selected",
42
+ noCopiedFormatting: "Copy formatting from somewhere first",
42
43
  noDrawing: "No image is selected",
43
44
  drawingLocked: "This image is locked",
44
45
  commentSelection: "Select a range before adding a comment",
45
46
  mergeUnsupported: "Cell merge is not supported",
46
47
  splitUnsupported: "Cell split is not supported",
47
- imageSuggesting: "Image property edits are unavailable in suggesting mode",
48
+ imageSuggesting: "Image changes are unavailable in suggesting mode",
48
49
  invalidValue: "This value is not valid for the command",
49
50
  unavailable: "This command is unavailable",
50
51
  bodyOnlySectionBreak: "Section breaks go in the document body.",
51
52
  bodyOnlyToc: "A table of contents goes in the document body.",
52
53
  bodyOnlyNote: "Footnotes and endnotes are added from the document body.",
53
- furnitureOnlyPageField: "Open a header or footer to insert a page number."
54
+ furnitureOnlyPageField: "Open a header or footer to insert a page number.",
55
+ suggestingSectionBreak: "Turn off suggesting to insert this section break. It changes where the next section starts, which can't be suggested.",
56
+ tableCellSectionBreak: "Section breaks go outside a table.",
57
+ lockedSectionBreak: "A locked or linked content control holds the next section, so this break can't change it.",
58
+ lockedContentBreak: "A content control locks this text, so you can't break a section here.",
59
+ nothingToCopyFormatting: "Select some text to copy its formatting",
60
+ nothingToPaint: "Select some text to paint"
54
61
  };
55
62
  var toolbar = {
56
63
  ariaLabel: "Formatting toolbar",
@@ -94,6 +101,7 @@ var formattingBar = {
94
101
  script: "Script",
95
102
  alignment: "Alignment",
96
103
  listFormatting: "List formatting",
104
+ format: "Format",
97
105
  image: "Image",
98
106
  table: "Table"
99
107
  },
@@ -121,6 +129,8 @@ var formattingBar = {
121
129
  imageWrap: "Wrap text",
122
130
  altText: "Alt text",
123
131
  clearFormatting: "Clear formatting",
132
+ formatPainter: "Format painter",
133
+ formatPainterShortcut: "Format painter (Ctrl+Alt+C, Ctrl+Alt+V)",
124
134
  commentsAndChanges: "Comments & Changes",
125
135
  more: "More",
126
136
  unavailableInPreview: "Not available in this preview build"
@@ -384,6 +394,12 @@ var contextMenu = {
384
394
  copyShortcut: "Ctrl+C",
385
395
  paste: "Paste",
386
396
  pasteShortcut: "Ctrl+V",
397
+ pasteWithoutFormatting: "Paste without formatting",
398
+ pasteWithoutFormattingShortcut: "Ctrl+Shift+V",
399
+ copyFormatting: "Copy formatting",
400
+ copyFormattingShortcut: "Ctrl+Alt+C",
401
+ pasteFormatting: "Paste formatting",
402
+ pasteFormattingShortcut: "Ctrl+Alt+V",
387
403
  "delete": "Delete",
388
404
  deleteShortcut: "Del",
389
405
  selectAll: "Select All",
@@ -738,6 +754,60 @@ var editingMode = {
738
754
  viewing: "Viewing",
739
755
  viewingHint: "Read-only, no edits"
740
756
  };
757
+ var collaboration = {
758
+ participants: "People in this document",
759
+ moreParticipants: "{count, plural, one {# more person} other {# more people}}"
760
+ };
761
+ var collaborationDemo = {
762
+ title: "Peer-to-peer collaboration proof",
763
+ subtitle: "Run this page on two machines and open the same room link.",
764
+ name: "Display name",
765
+ room: "Room ID or link",
766
+ create: "Create room",
767
+ join: "Join room",
768
+ share: "Share this join link",
769
+ copy: "Copy link",
770
+ copied: "Link copied",
771
+ connection: "Room status",
772
+ peers: "Connected participants",
773
+ disconnect: "Disconnect",
774
+ reconnect: "Reconnect",
775
+ undo: "Undo",
776
+ redo: "Redo",
777
+ save: "Save DOCX",
778
+ scope: "This room replicates the whole document: text, formatting, tables, headers, and footers.",
779
+ warning: "Public signaling is for testing. Room links are not access control, storage, or a connectivity guarantee.",
780
+ failed: "The collaboration proof could not start.",
781
+ connect: "Connect",
782
+ online: "online",
783
+ dialogTitle: "Collaborate on this document",
784
+ dialogSubtitle: "Share this document or join a room someone sent you.",
785
+ roomTitle: "Collaboration room",
786
+ roomSubtitle: "Everyone here sees document changes and live cursors.",
787
+ shareDocument: "Share this document",
788
+ shareDescription: "Create a room and copy an invite link.",
789
+ joinExisting: "Join an existing room",
790
+ joinDescription: "Open a room link from another collaborator.",
791
+ inviteLink: "Invite link",
792
+ connected: "Connected",
793
+ reconnecting: "Reconnecting",
794
+ outOfSync: "Out of sync. Reload to rejoin.",
795
+ outOfSyncShort: "Out of sync",
796
+ person: "person",
797
+ people: "people",
798
+ you: "You",
799
+ leave: "Leave room",
800
+ done: "Done",
801
+ close: "Close collaboration dialog",
802
+ back: "Back",
803
+ creating: "Creating room…",
804
+ connecting: "Connecting…",
805
+ enterRoom: "Enter a room link or room ID.",
806
+ connectFailed: "Could not connect to the room.",
807
+ leaveFailed: "Could not leave the room.",
808
+ guest: "Guest",
809
+ caretPages: "{count, plural, one {# page} other {# pages}}"
810
+ };
741
811
  var review = {
742
812
  ariaLabel: "Review",
743
813
  empty: "No changes or comments",
@@ -801,9 +871,31 @@ var enJson = {
801
871
  loading: loading,
802
872
  notes: notes,
803
873
  editingMode: editingMode,
874
+ collaboration: collaboration,
875
+ collaborationDemo: collaborationDemo,
804
876
  review: review
805
877
  };
806
878
 
879
+ /**
880
+ * Translate a known engine refusal for adapter chrome.
881
+ *
882
+ * Unknown diagnostics stay exact, so integrations never lose the engine's explanation.
883
+ *
884
+ * @public
885
+ */
886
+ declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
887
+
888
+ /**
889
+ * Rewrite the modifier names in a resolved label for this platform.
890
+ *
891
+ * A no-op everywhere except Apple platforms, and a no-op there too for a string that names
892
+ * no chord — so it is safe to run over every label, including the ones that are not
893
+ * shortcuts at all (a control's plain name passes through untouched).
894
+ *
895
+ * @public
896
+ */
897
+ declare function platformShortcut(text: string): string;
898
+
807
899
  /**
808
900
  * Shared locale data, types, and runtime helpers for the @docx-editor.dev
809
901
  * editor adapters.
@@ -940,14 +1032,7 @@ declare function deepMerge(base: AnyRecord, override: AnyRecord | undefined): An
940
1032
  * @public
941
1033
  */
942
1034
  type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) => string;
943
- /**
944
- * Translate a known engine refusal for adapter chrome.
945
- *
946
- * Unknown diagnostics stay exact, so integrations never lose the engine's explanation.
947
- *
948
- * @public
949
- */
950
- declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
1035
+
951
1036
  /**
952
1037
  * Build a typed `t(key, vars?)` function from a merged locale.
953
1038
  *
@@ -975,4 +1060,4 @@ declare function localizeDisabledReason(reason: string | null, t: TFunction): st
975
1060
  */
976
1061
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
977
1062
 
978
- 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, ptBR, tr, zhCN };
1063
+ 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 };
package/dist/index.d.ts CHANGED
@@ -39,18 +39,25 @@ var disabledReason = {
39
39
  trackedOnly: "This document permits edits only as tracked changes",
40
40
  noDocument: "No document is loaded",
41
41
  noContentControl: "No content control is selected",
42
+ noCopiedFormatting: "Copy formatting from somewhere first",
42
43
  noDrawing: "No image is selected",
43
44
  drawingLocked: "This image is locked",
44
45
  commentSelection: "Select a range before adding a comment",
45
46
  mergeUnsupported: "Cell merge is not supported",
46
47
  splitUnsupported: "Cell split is not supported",
47
- imageSuggesting: "Image property edits are unavailable in suggesting mode",
48
+ imageSuggesting: "Image changes are unavailable in suggesting mode",
48
49
  invalidValue: "This value is not valid for the command",
49
50
  unavailable: "This command is unavailable",
50
51
  bodyOnlySectionBreak: "Section breaks go in the document body.",
51
52
  bodyOnlyToc: "A table of contents goes in the document body.",
52
53
  bodyOnlyNote: "Footnotes and endnotes are added from the document body.",
53
- furnitureOnlyPageField: "Open a header or footer to insert a page number."
54
+ furnitureOnlyPageField: "Open a header or footer to insert a page number.",
55
+ suggestingSectionBreak: "Turn off suggesting to insert this section break. It changes where the next section starts, which can't be suggested.",
56
+ tableCellSectionBreak: "Section breaks go outside a table.",
57
+ lockedSectionBreak: "A locked or linked content control holds the next section, so this break can't change it.",
58
+ lockedContentBreak: "A content control locks this text, so you can't break a section here.",
59
+ nothingToCopyFormatting: "Select some text to copy its formatting",
60
+ nothingToPaint: "Select some text to paint"
54
61
  };
55
62
  var toolbar = {
56
63
  ariaLabel: "Formatting toolbar",
@@ -94,6 +101,7 @@ var formattingBar = {
94
101
  script: "Script",
95
102
  alignment: "Alignment",
96
103
  listFormatting: "List formatting",
104
+ format: "Format",
97
105
  image: "Image",
98
106
  table: "Table"
99
107
  },
@@ -121,6 +129,8 @@ var formattingBar = {
121
129
  imageWrap: "Wrap text",
122
130
  altText: "Alt text",
123
131
  clearFormatting: "Clear formatting",
132
+ formatPainter: "Format painter",
133
+ formatPainterShortcut: "Format painter (Ctrl+Alt+C, Ctrl+Alt+V)",
124
134
  commentsAndChanges: "Comments & Changes",
125
135
  more: "More",
126
136
  unavailableInPreview: "Not available in this preview build"
@@ -384,6 +394,12 @@ var contextMenu = {
384
394
  copyShortcut: "Ctrl+C",
385
395
  paste: "Paste",
386
396
  pasteShortcut: "Ctrl+V",
397
+ pasteWithoutFormatting: "Paste without formatting",
398
+ pasteWithoutFormattingShortcut: "Ctrl+Shift+V",
399
+ copyFormatting: "Copy formatting",
400
+ copyFormattingShortcut: "Ctrl+Alt+C",
401
+ pasteFormatting: "Paste formatting",
402
+ pasteFormattingShortcut: "Ctrl+Alt+V",
387
403
  "delete": "Delete",
388
404
  deleteShortcut: "Del",
389
405
  selectAll: "Select All",
@@ -738,6 +754,60 @@ var editingMode = {
738
754
  viewing: "Viewing",
739
755
  viewingHint: "Read-only, no edits"
740
756
  };
757
+ var collaboration = {
758
+ participants: "People in this document",
759
+ moreParticipants: "{count, plural, one {# more person} other {# more people}}"
760
+ };
761
+ var collaborationDemo = {
762
+ title: "Peer-to-peer collaboration proof",
763
+ subtitle: "Run this page on two machines and open the same room link.",
764
+ name: "Display name",
765
+ room: "Room ID or link",
766
+ create: "Create room",
767
+ join: "Join room",
768
+ share: "Share this join link",
769
+ copy: "Copy link",
770
+ copied: "Link copied",
771
+ connection: "Room status",
772
+ peers: "Connected participants",
773
+ disconnect: "Disconnect",
774
+ reconnect: "Reconnect",
775
+ undo: "Undo",
776
+ redo: "Redo",
777
+ save: "Save DOCX",
778
+ scope: "This room replicates the whole document: text, formatting, tables, headers, and footers.",
779
+ warning: "Public signaling is for testing. Room links are not access control, storage, or a connectivity guarantee.",
780
+ failed: "The collaboration proof could not start.",
781
+ connect: "Connect",
782
+ online: "online",
783
+ dialogTitle: "Collaborate on this document",
784
+ dialogSubtitle: "Share this document or join a room someone sent you.",
785
+ roomTitle: "Collaboration room",
786
+ roomSubtitle: "Everyone here sees document changes and live cursors.",
787
+ shareDocument: "Share this document",
788
+ shareDescription: "Create a room and copy an invite link.",
789
+ joinExisting: "Join an existing room",
790
+ joinDescription: "Open a room link from another collaborator.",
791
+ inviteLink: "Invite link",
792
+ connected: "Connected",
793
+ reconnecting: "Reconnecting",
794
+ outOfSync: "Out of sync. Reload to rejoin.",
795
+ outOfSyncShort: "Out of sync",
796
+ person: "person",
797
+ people: "people",
798
+ you: "You",
799
+ leave: "Leave room",
800
+ done: "Done",
801
+ close: "Close collaboration dialog",
802
+ back: "Back",
803
+ creating: "Creating room…",
804
+ connecting: "Connecting…",
805
+ enterRoom: "Enter a room link or room ID.",
806
+ connectFailed: "Could not connect to the room.",
807
+ leaveFailed: "Could not leave the room.",
808
+ guest: "Guest",
809
+ caretPages: "{count, plural, one {# page} other {# pages}}"
810
+ };
741
811
  var review = {
742
812
  ariaLabel: "Review",
743
813
  empty: "No changes or comments",
@@ -801,9 +871,31 @@ var enJson = {
801
871
  loading: loading,
802
872
  notes: notes,
803
873
  editingMode: editingMode,
874
+ collaboration: collaboration,
875
+ collaborationDemo: collaborationDemo,
804
876
  review: review
805
877
  };
806
878
 
879
+ /**
880
+ * Translate a known engine refusal for adapter chrome.
881
+ *
882
+ * Unknown diagnostics stay exact, so integrations never lose the engine's explanation.
883
+ *
884
+ * @public
885
+ */
886
+ declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
887
+
888
+ /**
889
+ * Rewrite the modifier names in a resolved label for this platform.
890
+ *
891
+ * A no-op everywhere except Apple platforms, and a no-op there too for a string that names
892
+ * no chord — so it is safe to run over every label, including the ones that are not
893
+ * shortcuts at all (a control's plain name passes through untouched).
894
+ *
895
+ * @public
896
+ */
897
+ declare function platformShortcut(text: string): string;
898
+
807
899
  /**
808
900
  * Shared locale data, types, and runtime helpers for the @docx-editor.dev
809
901
  * editor adapters.
@@ -940,14 +1032,7 @@ declare function deepMerge(base: AnyRecord, override: AnyRecord | undefined): An
940
1032
  * @public
941
1033
  */
942
1034
  type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) => string;
943
- /**
944
- * Translate a known engine refusal for adapter chrome.
945
- *
946
- * Unknown diagnostics stay exact, so integrations never lose the engine's explanation.
947
- *
948
- * @public
949
- */
950
- declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
1035
+
951
1036
  /**
952
1037
  * Build a typed `t(key, vars?)` function from a merged locale.
953
1038
  *
@@ -975,4 +1060,4 @@ declare function localizeDisabledReason(reason: string | null, t: TFunction): st
975
1060
  */
976
1061
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
977
1062
 
978
- 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, ptBR, tr, zhCN };
1063
+ 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 };