@docx-editor.dev/i18n 2.10.0 → 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,6 +39,7 @@ 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",
@@ -54,7 +55,9 @@ var disabledReason = {
54
55
  suggestingSectionBreak: "Turn off suggesting to insert this section break. It changes where the next section starts, which can't be suggested.",
55
56
  tableCellSectionBreak: "Section breaks go outside a table.",
56
57
  lockedSectionBreak: "A locked or linked content control holds the next section, so this break can't change it.",
57
- lockedContentBreak: "A content control locks this text, so you can't break a section here."
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"
58
61
  };
59
62
  var toolbar = {
60
63
  ariaLabel: "Formatting toolbar",
@@ -98,6 +101,7 @@ var formattingBar = {
98
101
  script: "Script",
99
102
  alignment: "Alignment",
100
103
  listFormatting: "List formatting",
104
+ format: "Format",
101
105
  image: "Image",
102
106
  table: "Table"
103
107
  },
@@ -125,6 +129,8 @@ var formattingBar = {
125
129
  imageWrap: "Wrap text",
126
130
  altText: "Alt text",
127
131
  clearFormatting: "Clear formatting",
132
+ formatPainter: "Format painter",
133
+ formatPainterShortcut: "Format painter (Ctrl+Alt+C, Ctrl+Alt+V)",
128
134
  commentsAndChanges: "Comments & Changes",
129
135
  more: "More",
130
136
  unavailableInPreview: "Not available in this preview build"
@@ -390,6 +396,10 @@ var contextMenu = {
390
396
  pasteShortcut: "Ctrl+V",
391
397
  pasteWithoutFormatting: "Paste without formatting",
392
398
  pasteWithoutFormattingShortcut: "Ctrl+Shift+V",
399
+ copyFormatting: "Copy formatting",
400
+ copyFormattingShortcut: "Ctrl+Alt+C",
401
+ pasteFormatting: "Paste formatting",
402
+ pasteFormattingShortcut: "Ctrl+Alt+V",
393
403
  "delete": "Delete",
394
404
  deleteShortcut: "Del",
395
405
  selectAll: "Select All",
@@ -744,6 +754,60 @@ var editingMode = {
744
754
  viewing: "Viewing",
745
755
  viewingHint: "Read-only, no edits"
746
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
+ };
747
811
  var review = {
748
812
  ariaLabel: "Review",
749
813
  empty: "No changes or comments",
@@ -807,6 +871,8 @@ var enJson = {
807
871
  loading: loading,
808
872
  notes: notes,
809
873
  editingMode: editingMode,
874
+ collaboration: collaboration,
875
+ collaborationDemo: collaborationDemo,
810
876
  review: review
811
877
  };
812
878
 
@@ -819,6 +885,17 @@ var enJson = {
819
885
  */
820
886
  declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
821
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
+
822
899
  /**
823
900
  * Shared locale data, types, and runtime helpers for the @docx-editor.dev
824
901
  * editor adapters.
@@ -983,4 +1060,4 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
983
1060
  */
984
1061
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
985
1062
 
986
- 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,6 +39,7 @@ 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",
@@ -54,7 +55,9 @@ var disabledReason = {
54
55
  suggestingSectionBreak: "Turn off suggesting to insert this section break. It changes where the next section starts, which can't be suggested.",
55
56
  tableCellSectionBreak: "Section breaks go outside a table.",
56
57
  lockedSectionBreak: "A locked or linked content control holds the next section, so this break can't change it.",
57
- lockedContentBreak: "A content control locks this text, so you can't break a section here."
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"
58
61
  };
59
62
  var toolbar = {
60
63
  ariaLabel: "Formatting toolbar",
@@ -98,6 +101,7 @@ var formattingBar = {
98
101
  script: "Script",
99
102
  alignment: "Alignment",
100
103
  listFormatting: "List formatting",
104
+ format: "Format",
101
105
  image: "Image",
102
106
  table: "Table"
103
107
  },
@@ -125,6 +129,8 @@ var formattingBar = {
125
129
  imageWrap: "Wrap text",
126
130
  altText: "Alt text",
127
131
  clearFormatting: "Clear formatting",
132
+ formatPainter: "Format painter",
133
+ formatPainterShortcut: "Format painter (Ctrl+Alt+C, Ctrl+Alt+V)",
128
134
  commentsAndChanges: "Comments & Changes",
129
135
  more: "More",
130
136
  unavailableInPreview: "Not available in this preview build"
@@ -390,6 +396,10 @@ var contextMenu = {
390
396
  pasteShortcut: "Ctrl+V",
391
397
  pasteWithoutFormatting: "Paste without formatting",
392
398
  pasteWithoutFormattingShortcut: "Ctrl+Shift+V",
399
+ copyFormatting: "Copy formatting",
400
+ copyFormattingShortcut: "Ctrl+Alt+C",
401
+ pasteFormatting: "Paste formatting",
402
+ pasteFormattingShortcut: "Ctrl+Alt+V",
393
403
  "delete": "Delete",
394
404
  deleteShortcut: "Del",
395
405
  selectAll: "Select All",
@@ -744,6 +754,60 @@ var editingMode = {
744
754
  viewing: "Viewing",
745
755
  viewingHint: "Read-only, no edits"
746
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
+ };
747
811
  var review = {
748
812
  ariaLabel: "Review",
749
813
  empty: "No changes or comments",
@@ -807,6 +871,8 @@ var enJson = {
807
871
  loading: loading,
808
872
  notes: notes,
809
873
  editingMode: editingMode,
874
+ collaboration: collaboration,
875
+ collaborationDemo: collaborationDemo,
810
876
  review: review
811
877
  };
812
878
 
@@ -819,6 +885,17 @@ var enJson = {
819
885
  */
820
886
  declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
821
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
+
822
899
  /**
823
900
  * Shared locale data, types, and runtime helpers for the @docx-editor.dev
824
901
  * editor adapters.
@@ -983,4 +1060,4 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
983
1060
  */
984
1061
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
985
1062
 
986
- 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 };