@docx-editor.dev/i18n 2.10.0 → 2.12.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.js CHANGED
@@ -31,6 +31,7 @@ __export(index_exports, {
31
31
  locales: () => locales,
32
32
  localizeDisabledReason: () => localizeDisabledReason,
33
33
  pl: () => pl,
34
+ platformShortcut: () => platformShortcut,
34
35
  ptBR: () => ptBR,
35
36
  tr: () => tr,
36
37
  zhCN: () => zhCN
@@ -54,6 +55,7 @@ var en_default = {
54
55
  trackedOnly: "This document permits edits only as tracked changes",
55
56
  noDocument: "No document is loaded",
56
57
  noContentControl: "No content control is selected",
58
+ noCopiedFormatting: "Copy formatting from somewhere first",
57
59
  noDrawing: "No image is selected",
58
60
  drawingLocked: "This image is locked",
59
61
  commentSelection: "Select a range before adding a comment",
@@ -69,7 +71,9 @@ var en_default = {
69
71
  suggestingSectionBreak: "Turn off suggesting to insert this section break. It changes where the next section starts, which can't be suggested.",
70
72
  tableCellSectionBreak: "Section breaks go outside a table.",
71
73
  lockedSectionBreak: "A locked or linked content control holds the next section, so this break can't change it.",
72
- lockedContentBreak: "A content control locks this text, so you can't break a section here."
74
+ lockedContentBreak: "A content control locks this text, so you can't break a section here.",
75
+ nothingToCopyFormatting: "Select some text to copy its formatting",
76
+ nothingToPaint: "Select some text to paint"
73
77
  },
74
78
  toolbar: {
75
79
  ariaLabel: "Formatting toolbar",
@@ -113,6 +117,7 @@ var en_default = {
113
117
  script: "Script",
114
118
  alignment: "Alignment",
115
119
  listFormatting: "List formatting",
120
+ format: "Format",
116
121
  image: "Image",
117
122
  table: "Table"
118
123
  },
@@ -140,6 +145,8 @@ var en_default = {
140
145
  imageWrap: "Wrap text",
141
146
  altText: "Alt text",
142
147
  clearFormatting: "Clear formatting",
148
+ formatPainter: "Format painter",
149
+ formatPainterShortcut: "Format painter (Ctrl+Alt+C, Ctrl+Alt+V)",
143
150
  commentsAndChanges: "Comments & Changes",
144
151
  more: "More",
145
152
  unavailableInPreview: "Not available in this preview build"
@@ -405,6 +412,10 @@ var en_default = {
405
412
  pasteShortcut: "Ctrl+V",
406
413
  pasteWithoutFormatting: "Paste without formatting",
407
414
  pasteWithoutFormattingShortcut: "Ctrl+Shift+V",
415
+ copyFormatting: "Copy formatting",
416
+ copyFormattingShortcut: "Ctrl+Alt+C",
417
+ pasteFormatting: "Paste formatting",
418
+ pasteFormattingShortcut: "Ctrl+Alt+V",
408
419
  delete: "Delete",
409
420
  deleteShortcut: "Del",
410
421
  selectAll: "Select All",
@@ -759,6 +770,60 @@ var en_default = {
759
770
  viewing: "Viewing",
760
771
  viewingHint: "Read-only, no edits"
761
772
  },
773
+ collaboration: {
774
+ participants: "People in this document",
775
+ moreParticipants: "{count, plural, one {# more person} other {# more people}}"
776
+ },
777
+ collaborationDemo: {
778
+ title: "Peer-to-peer collaboration proof",
779
+ subtitle: "Run this page on two machines and open the same room link.",
780
+ name: "Display name",
781
+ room: "Room ID or link",
782
+ create: "Create room",
783
+ join: "Join room",
784
+ share: "Share this join link",
785
+ copy: "Copy link",
786
+ copied: "Link copied",
787
+ connection: "Room status",
788
+ peers: "Connected participants",
789
+ disconnect: "Disconnect",
790
+ reconnect: "Reconnect",
791
+ undo: "Undo",
792
+ redo: "Redo",
793
+ save: "Save DOCX",
794
+ scope: "This room replicates the whole document: text, formatting, tables, headers, and footers.",
795
+ warning: "Public signaling is for testing. Room links are not access control, storage, or a connectivity guarantee.",
796
+ failed: "The collaboration proof could not start.",
797
+ connect: "Connect",
798
+ online: "online",
799
+ dialogTitle: "Collaborate on this document",
800
+ dialogSubtitle: "Share this document or join a room someone sent you.",
801
+ roomTitle: "Collaboration room",
802
+ roomSubtitle: "Everyone here sees document changes and live cursors.",
803
+ shareDocument: "Share this document",
804
+ shareDescription: "Create a room and copy an invite link.",
805
+ joinExisting: "Join an existing room",
806
+ joinDescription: "Open a room link from another collaborator.",
807
+ inviteLink: "Invite link",
808
+ connected: "Connected",
809
+ reconnecting: "Reconnecting",
810
+ outOfSync: "Out of sync. Reload to rejoin.",
811
+ outOfSyncShort: "Out of sync",
812
+ person: "person",
813
+ people: "people",
814
+ you: "You",
815
+ leave: "Leave room",
816
+ done: "Done",
817
+ close: "Close collaboration dialog",
818
+ back: "Back",
819
+ creating: "Creating room…",
820
+ connecting: "Connecting…",
821
+ enterRoom: "Enter a room link or room ID.",
822
+ connectFailed: "Could not connect to the room.",
823
+ leaveFailed: "Could not leave the room.",
824
+ guest: "Guest",
825
+ caretPages: "{count, plural, one {# page} other {# pages}}"
826
+ },
762
827
  review: {
763
828
  ariaLabel: "Review",
764
829
  empty: "No changes or comments",
@@ -831,7 +896,8 @@ var de_default = {
831
896
  alignment: "Ausrichtung",
832
897
  listFormatting: "Listenformatierung",
833
898
  image: "Grafik",
834
- table: "Tabelle"
899
+ table: "Tabelle",
900
+ format: null
835
901
  },
836
902
  undo: "Rückgängig",
837
903
  undoShortcut: "Rückgängig (Strg+Z)",
@@ -859,7 +925,9 @@ var de_default = {
859
925
  unavailableInPreview: "In dieser Vorschauversion nicht verfügbar",
860
926
  more: "Mehr",
861
927
  altText: "Alternativtext",
862
- imageWrap: "Textumbruch"
928
+ imageWrap: "Textumbruch",
929
+ formatPainter: null,
930
+ formatPainterShortcut: null
863
931
  },
864
932
  alignment: {
865
933
  alignLeft: "Linksbündig",
@@ -1120,7 +1188,11 @@ var de_default = {
1120
1188
  editCustomNode: "{label} bearbeiten",
1121
1189
  removeCustomNode: "{label} entfernen",
1122
1190
  pasteWithoutFormatting: null,
1123
- pasteWithoutFormattingShortcut: null
1191
+ pasteWithoutFormattingShortcut: null,
1192
+ copyFormatting: null,
1193
+ copyFormattingShortcut: null,
1194
+ pasteFormatting: null,
1195
+ pasteFormattingShortcut: null
1124
1196
  },
1125
1197
  documentOutline: {
1126
1198
  ariaLabel: "Dokumentgliederung",
@@ -1515,7 +1587,10 @@ var de_default = {
1515
1587
  suggestingSectionBreak: null,
1516
1588
  tableCellSectionBreak: null,
1517
1589
  lockedSectionBreak: null,
1518
- lockedContentBreak: null
1590
+ lockedContentBreak: null,
1591
+ noCopiedFormatting: null,
1592
+ nothingToCopyFormatting: null,
1593
+ nothingToPaint: null
1519
1594
  },
1520
1595
  equationPopup: {
1521
1596
  apply: null,
@@ -1524,6 +1599,60 @@ var de_default = {
1524
1599
  placeholder: null,
1525
1600
  refused: null,
1526
1601
  title: null
1602
+ },
1603
+ collaborationDemo: {
1604
+ back: null,
1605
+ close: null,
1606
+ connect: null,
1607
+ connectFailed: null,
1608
+ connected: null,
1609
+ connecting: null,
1610
+ connection: null,
1611
+ copied: null,
1612
+ copy: null,
1613
+ create: null,
1614
+ creating: null,
1615
+ dialogSubtitle: null,
1616
+ dialogTitle: null,
1617
+ disconnect: null,
1618
+ done: null,
1619
+ enterRoom: null,
1620
+ failed: null,
1621
+ guest: null,
1622
+ inviteLink: null,
1623
+ join: null,
1624
+ joinDescription: null,
1625
+ joinExisting: null,
1626
+ leave: null,
1627
+ leaveFailed: null,
1628
+ name: null,
1629
+ online: null,
1630
+ peers: null,
1631
+ people: null,
1632
+ person: null,
1633
+ reconnect: null,
1634
+ reconnecting: null,
1635
+ redo: null,
1636
+ room: null,
1637
+ roomSubtitle: null,
1638
+ roomTitle: null,
1639
+ save: null,
1640
+ scope: null,
1641
+ share: null,
1642
+ shareDescription: null,
1643
+ shareDocument: null,
1644
+ subtitle: null,
1645
+ title: null,
1646
+ undo: null,
1647
+ warning: null,
1648
+ you: null,
1649
+ outOfSync: null,
1650
+ outOfSyncShort: null,
1651
+ caretPages: null
1652
+ },
1653
+ collaboration: {
1654
+ moreParticipants: null,
1655
+ participants: null
1527
1656
  }
1528
1657
  };
1529
1658
 
@@ -1576,7 +1705,8 @@ var fr_default = {
1576
1705
  alignment: "Alignement",
1577
1706
  listFormatting: "Format de liste",
1578
1707
  image: "Image",
1579
- table: "Tableau"
1708
+ table: "Tableau",
1709
+ format: null
1580
1710
  },
1581
1711
  undo: "Annuler",
1582
1712
  undoShortcut: "Annuler (Ctrl+Z)",
@@ -1604,7 +1734,9 @@ var fr_default = {
1604
1734
  unavailableInPreview: "Non disponible dans cette version préliminaire",
1605
1735
  more: "Plus",
1606
1736
  altText: "Texte de remplacement",
1607
- imageWrap: "Habillage du texte"
1737
+ imageWrap: "Habillage du texte",
1738
+ formatPainter: null,
1739
+ formatPainterShortcut: null
1608
1740
  },
1609
1741
  alignment: {
1610
1742
  alignLeft: "Aligner à gauche",
@@ -1865,7 +1997,11 @@ var fr_default = {
1865
1997
  editCustomNode: "Modifier {label}",
1866
1998
  removeCustomNode: "Supprimer {label}",
1867
1999
  pasteWithoutFormatting: null,
1868
- pasteWithoutFormattingShortcut: null
2000
+ pasteWithoutFormattingShortcut: null,
2001
+ copyFormatting: null,
2002
+ copyFormattingShortcut: null,
2003
+ pasteFormatting: null,
2004
+ pasteFormattingShortcut: null
1869
2005
  },
1870
2006
  documentOutline: {
1871
2007
  ariaLabel: "Plan du document",
@@ -2260,7 +2396,10 @@ var fr_default = {
2260
2396
  suggestingSectionBreak: null,
2261
2397
  tableCellSectionBreak: null,
2262
2398
  lockedSectionBreak: null,
2263
- lockedContentBreak: null
2399
+ lockedContentBreak: null,
2400
+ noCopiedFormatting: null,
2401
+ nothingToCopyFormatting: null,
2402
+ nothingToPaint: null
2264
2403
  },
2265
2404
  equationPopup: {
2266
2405
  apply: null,
@@ -2269,6 +2408,60 @@ var fr_default = {
2269
2408
  placeholder: null,
2270
2409
  refused: null,
2271
2410
  title: null
2411
+ },
2412
+ collaborationDemo: {
2413
+ back: null,
2414
+ close: null,
2415
+ connect: null,
2416
+ connectFailed: null,
2417
+ connected: null,
2418
+ connecting: null,
2419
+ connection: null,
2420
+ copied: null,
2421
+ copy: null,
2422
+ create: null,
2423
+ creating: null,
2424
+ dialogSubtitle: null,
2425
+ dialogTitle: null,
2426
+ disconnect: null,
2427
+ done: null,
2428
+ enterRoom: null,
2429
+ failed: null,
2430
+ guest: null,
2431
+ inviteLink: null,
2432
+ join: null,
2433
+ joinDescription: null,
2434
+ joinExisting: null,
2435
+ leave: null,
2436
+ leaveFailed: null,
2437
+ name: null,
2438
+ online: null,
2439
+ peers: null,
2440
+ people: null,
2441
+ person: null,
2442
+ reconnect: null,
2443
+ reconnecting: null,
2444
+ redo: null,
2445
+ room: null,
2446
+ roomSubtitle: null,
2447
+ roomTitle: null,
2448
+ save: null,
2449
+ scope: null,
2450
+ share: null,
2451
+ shareDescription: null,
2452
+ shareDocument: null,
2453
+ subtitle: null,
2454
+ title: null,
2455
+ undo: null,
2456
+ warning: null,
2457
+ you: null,
2458
+ outOfSync: null,
2459
+ outOfSyncShort: null,
2460
+ caretPages: null
2461
+ },
2462
+ collaboration: {
2463
+ moreParticipants: null,
2464
+ participants: null
2272
2465
  }
2273
2466
  };
2274
2467
 
@@ -2321,7 +2514,8 @@ var he_default = {
2321
2514
  alignment: "יישור טקסט",
2322
2515
  listFormatting: "עיצוב רשימה",
2323
2516
  image: "תמונה",
2324
- table: "טבלה"
2517
+ table: "טבלה",
2518
+ format: null
2325
2519
  },
2326
2520
  undo: "בטל",
2327
2521
  undoShortcut: "בטל (Ctrl+Z)",
@@ -2349,7 +2543,9 @@ var he_default = {
2349
2543
  unavailableInPreview: "לא זמין בגרסת תצוגה מקדימה זו",
2350
2544
  more: "עוד",
2351
2545
  altText: "טקסט חלופי",
2352
- imageWrap: "גלישת טקסט"
2546
+ imageWrap: "גלישת טקסט",
2547
+ formatPainter: null,
2548
+ formatPainterShortcut: null
2353
2549
  },
2354
2550
  alignment: {
2355
2551
  alignLeft: "יישור לשמאל",
@@ -2610,7 +2806,11 @@ var he_default = {
2610
2806
  editCustomNode: "ערוך {label}",
2611
2807
  removeCustomNode: "הסר {label}",
2612
2808
  pasteWithoutFormatting: null,
2613
- pasteWithoutFormattingShortcut: null
2809
+ pasteWithoutFormattingShortcut: null,
2810
+ copyFormatting: null,
2811
+ copyFormattingShortcut: null,
2812
+ pasteFormatting: null,
2813
+ pasteFormattingShortcut: null
2614
2814
  },
2615
2815
  documentOutline: {
2616
2816
  ariaLabel: "מתווה המסמך",
@@ -3005,7 +3205,10 @@ var he_default = {
3005
3205
  suggestingSectionBreak: null,
3006
3206
  tableCellSectionBreak: null,
3007
3207
  lockedSectionBreak: null,
3008
- lockedContentBreak: null
3208
+ lockedContentBreak: null,
3209
+ noCopiedFormatting: null,
3210
+ nothingToCopyFormatting: null,
3211
+ nothingToPaint: null
3009
3212
  },
3010
3213
  equationPopup: {
3011
3214
  apply: null,
@@ -3014,6 +3217,60 @@ var he_default = {
3014
3217
  placeholder: null,
3015
3218
  refused: null,
3016
3219
  title: null
3220
+ },
3221
+ collaborationDemo: {
3222
+ back: null,
3223
+ close: null,
3224
+ connect: null,
3225
+ connectFailed: null,
3226
+ connected: null,
3227
+ connecting: null,
3228
+ connection: null,
3229
+ copied: null,
3230
+ copy: null,
3231
+ create: null,
3232
+ creating: null,
3233
+ dialogSubtitle: null,
3234
+ dialogTitle: null,
3235
+ disconnect: null,
3236
+ done: null,
3237
+ enterRoom: null,
3238
+ failed: null,
3239
+ guest: null,
3240
+ inviteLink: null,
3241
+ join: null,
3242
+ joinDescription: null,
3243
+ joinExisting: null,
3244
+ leave: null,
3245
+ leaveFailed: null,
3246
+ name: null,
3247
+ online: null,
3248
+ peers: null,
3249
+ people: null,
3250
+ person: null,
3251
+ reconnect: null,
3252
+ reconnecting: null,
3253
+ redo: null,
3254
+ room: null,
3255
+ roomSubtitle: null,
3256
+ roomTitle: null,
3257
+ save: null,
3258
+ scope: null,
3259
+ share: null,
3260
+ shareDescription: null,
3261
+ shareDocument: null,
3262
+ subtitle: null,
3263
+ title: null,
3264
+ undo: null,
3265
+ warning: null,
3266
+ you: null,
3267
+ outOfSync: null,
3268
+ outOfSyncShort: null,
3269
+ caretPages: null
3270
+ },
3271
+ collaboration: {
3272
+ moreParticipants: null,
3273
+ participants: null
3017
3274
  }
3018
3275
  };
3019
3276
 
@@ -3066,7 +3323,8 @@ var hi_default = {
3066
3323
  alignment: "संरेखण",
3067
3324
  listFormatting: "सूची प्रारूपण",
3068
3325
  image: "चित्र",
3069
- table: "तालिका"
3326
+ table: "तालिका",
3327
+ format: null
3070
3328
  },
3071
3329
  undo: "पूर्ववत करें",
3072
3330
  undoShortcut: "पूर्ववत करें (Ctrl+Z)",
@@ -3094,7 +3352,9 @@ var hi_default = {
3094
3352
  unavailableInPreview: "इस पूर्वावलोकन बिल्ड में उपलब्ध नहीं है",
3095
3353
  more: "अधिक",
3096
3354
  altText: "वैकल्पिक पाठ",
3097
- imageWrap: "पाठ रैप करें"
3355
+ imageWrap: "पाठ रैप करें",
3356
+ formatPainter: null,
3357
+ formatPainterShortcut: null
3098
3358
  },
3099
3359
  alignment: {
3100
3360
  alignLeft: "बाएं संरेखित करें",
@@ -3355,7 +3615,11 @@ var hi_default = {
3355
3615
  editCustomNode: "{label} संपादित करें",
3356
3616
  removeCustomNode: "{label} निकालें",
3357
3617
  pasteWithoutFormatting: null,
3358
- pasteWithoutFormattingShortcut: null
3618
+ pasteWithoutFormattingShortcut: null,
3619
+ copyFormatting: null,
3620
+ copyFormattingShortcut: null,
3621
+ pasteFormatting: null,
3622
+ pasteFormattingShortcut: null
3359
3623
  },
3360
3624
  documentOutline: {
3361
3625
  ariaLabel: "दस्तावेज़ की रूपरेखा",
@@ -3750,7 +4014,10 @@ var hi_default = {
3750
4014
  suggestingSectionBreak: null,
3751
4015
  tableCellSectionBreak: null,
3752
4016
  lockedSectionBreak: null,
3753
- lockedContentBreak: null
4017
+ lockedContentBreak: null,
4018
+ noCopiedFormatting: null,
4019
+ nothingToCopyFormatting: null,
4020
+ nothingToPaint: null
3754
4021
  },
3755
4022
  equationPopup: {
3756
4023
  apply: null,
@@ -3759,6 +4026,60 @@ var hi_default = {
3759
4026
  placeholder: null,
3760
4027
  refused: null,
3761
4028
  title: null
4029
+ },
4030
+ collaborationDemo: {
4031
+ back: null,
4032
+ close: null,
4033
+ connect: null,
4034
+ connectFailed: null,
4035
+ connected: null,
4036
+ connecting: null,
4037
+ connection: null,
4038
+ copied: null,
4039
+ copy: null,
4040
+ create: null,
4041
+ creating: null,
4042
+ dialogSubtitle: null,
4043
+ dialogTitle: null,
4044
+ disconnect: null,
4045
+ done: null,
4046
+ enterRoom: null,
4047
+ failed: null,
4048
+ guest: null,
4049
+ inviteLink: null,
4050
+ join: null,
4051
+ joinDescription: null,
4052
+ joinExisting: null,
4053
+ leave: null,
4054
+ leaveFailed: null,
4055
+ name: null,
4056
+ online: null,
4057
+ peers: null,
4058
+ people: null,
4059
+ person: null,
4060
+ reconnect: null,
4061
+ reconnecting: null,
4062
+ redo: null,
4063
+ room: null,
4064
+ roomSubtitle: null,
4065
+ roomTitle: null,
4066
+ save: null,
4067
+ scope: null,
4068
+ share: null,
4069
+ shareDescription: null,
4070
+ shareDocument: null,
4071
+ subtitle: null,
4072
+ title: null,
4073
+ undo: null,
4074
+ warning: null,
4075
+ you: null,
4076
+ outOfSync: null,
4077
+ outOfSyncShort: null,
4078
+ caretPages: null
4079
+ },
4080
+ collaboration: {
4081
+ moreParticipants: null,
4082
+ participants: null
3762
4083
  }
3763
4084
  };
3764
4085
 
@@ -3811,7 +4132,8 @@ var id_default = {
3811
4132
  alignment: "Perataan",
3812
4133
  listFormatting: "Pemformatan Daftar",
3813
4134
  image: "Gambar",
3814
- table: "Tabel"
4135
+ table: "Tabel",
4136
+ format: null
3815
4137
  },
3816
4138
  undo: "Urungkan",
3817
4139
  undoShortcut: "Urungkan (Ctrl+Z)",
@@ -3839,7 +4161,9 @@ var id_default = {
3839
4161
  unavailableInPreview: "Tidak tersedia dalam versi pratinjau ini",
3840
4162
  more: "Lainnya",
3841
4163
  altText: "Teks alternatif",
3842
- imageWrap: "Bungkus teks"
4164
+ imageWrap: "Bungkus teks",
4165
+ formatPainter: null,
4166
+ formatPainterShortcut: null
3843
4167
  },
3844
4168
  alignment: {
3845
4169
  alignLeft: "Rata Kiri",
@@ -4107,7 +4431,11 @@ var id_default = {
4107
4431
  editCustomNode: "Edit {label}",
4108
4432
  removeCustomNode: "Hapus {label}",
4109
4433
  pasteWithoutFormatting: null,
4110
- pasteWithoutFormattingShortcut: null
4434
+ pasteWithoutFormattingShortcut: null,
4435
+ copyFormatting: null,
4436
+ copyFormattingShortcut: null,
4437
+ pasteFormatting: null,
4438
+ pasteFormattingShortcut: null
4111
4439
  },
4112
4440
  documentOutline: {
4113
4441
  ariaLabel: "Struktur dokumen",
@@ -4495,7 +4823,10 @@ var id_default = {
4495
4823
  suggestingSectionBreak: null,
4496
4824
  tableCellSectionBreak: null,
4497
4825
  lockedSectionBreak: null,
4498
- lockedContentBreak: null
4826
+ lockedContentBreak: null,
4827
+ noCopiedFormatting: null,
4828
+ nothingToCopyFormatting: null,
4829
+ nothingToPaint: null
4499
4830
  },
4500
4831
  equationPopup: {
4501
4832
  apply: null,
@@ -4504,6 +4835,60 @@ var id_default = {
4504
4835
  placeholder: null,
4505
4836
  refused: null,
4506
4837
  title: null
4838
+ },
4839
+ collaborationDemo: {
4840
+ back: null,
4841
+ close: null,
4842
+ connect: null,
4843
+ connectFailed: null,
4844
+ connected: null,
4845
+ connecting: null,
4846
+ connection: null,
4847
+ copied: null,
4848
+ copy: null,
4849
+ create: null,
4850
+ creating: null,
4851
+ dialogSubtitle: null,
4852
+ dialogTitle: null,
4853
+ disconnect: null,
4854
+ done: null,
4855
+ enterRoom: null,
4856
+ failed: null,
4857
+ guest: null,
4858
+ inviteLink: null,
4859
+ join: null,
4860
+ joinDescription: null,
4861
+ joinExisting: null,
4862
+ leave: null,
4863
+ leaveFailed: null,
4864
+ name: null,
4865
+ online: null,
4866
+ peers: null,
4867
+ people: null,
4868
+ person: null,
4869
+ reconnect: null,
4870
+ reconnecting: null,
4871
+ redo: null,
4872
+ room: null,
4873
+ roomSubtitle: null,
4874
+ roomTitle: null,
4875
+ save: null,
4876
+ scope: null,
4877
+ share: null,
4878
+ shareDescription: null,
4879
+ shareDocument: null,
4880
+ subtitle: null,
4881
+ title: null,
4882
+ undo: null,
4883
+ warning: null,
4884
+ you: null,
4885
+ outOfSync: null,
4886
+ outOfSyncShort: null,
4887
+ caretPages: null
4888
+ },
4889
+ collaboration: {
4890
+ moreParticipants: null,
4891
+ participants: null
4507
4892
  }
4508
4893
  };
4509
4894
 
@@ -4556,7 +4941,8 @@ var pl_default = {
4556
4941
  alignment: "Wyrównanie",
4557
4942
  listFormatting: "Formatowanie listy",
4558
4943
  image: "Obraz",
4559
- table: "Tabela"
4944
+ table: "Tabela",
4945
+ format: null
4560
4946
  },
4561
4947
  undo: "Cofnij",
4562
4948
  undoShortcut: "Cofnij (Ctrl+Z)",
@@ -4584,7 +4970,9 @@ var pl_default = {
4584
4970
  unavailableInPreview: "Niedostępne w tej wersji zapoznawczej",
4585
4971
  more: "Więcej",
4586
4972
  altText: "Tekst alternatywny",
4587
- imageWrap: "Zawijaj tekst"
4973
+ imageWrap: "Zawijaj tekst",
4974
+ formatPainter: null,
4975
+ formatPainterShortcut: null
4588
4976
  },
4589
4977
  alignment: {
4590
4978
  alignLeft: "Wyrównaj do lewej",
@@ -4845,7 +5233,11 @@ var pl_default = {
4845
5233
  editCustomNode: "Edytuj {label}",
4846
5234
  removeCustomNode: "Usuń {label}",
4847
5235
  pasteWithoutFormatting: null,
4848
- pasteWithoutFormattingShortcut: null
5236
+ pasteWithoutFormattingShortcut: null,
5237
+ copyFormatting: null,
5238
+ copyFormattingShortcut: null,
5239
+ pasteFormatting: null,
5240
+ pasteFormattingShortcut: null
4849
5241
  },
4850
5242
  documentOutline: {
4851
5243
  ariaLabel: "Konspekt dokumentu",
@@ -5240,7 +5632,10 @@ var pl_default = {
5240
5632
  suggestingSectionBreak: null,
5241
5633
  tableCellSectionBreak: null,
5242
5634
  lockedSectionBreak: null,
5243
- lockedContentBreak: null
5635
+ lockedContentBreak: null,
5636
+ noCopiedFormatting: null,
5637
+ nothingToCopyFormatting: null,
5638
+ nothingToPaint: null
5244
5639
  },
5245
5640
  equationPopup: {
5246
5641
  apply: null,
@@ -5249,6 +5644,60 @@ var pl_default = {
5249
5644
  placeholder: null,
5250
5645
  refused: null,
5251
5646
  title: null
5647
+ },
5648
+ collaborationDemo: {
5649
+ back: null,
5650
+ close: null,
5651
+ connect: null,
5652
+ connectFailed: null,
5653
+ connected: null,
5654
+ connecting: null,
5655
+ connection: null,
5656
+ copied: null,
5657
+ copy: null,
5658
+ create: null,
5659
+ creating: null,
5660
+ dialogSubtitle: null,
5661
+ dialogTitle: null,
5662
+ disconnect: null,
5663
+ done: null,
5664
+ enterRoom: null,
5665
+ failed: null,
5666
+ guest: null,
5667
+ inviteLink: null,
5668
+ join: null,
5669
+ joinDescription: null,
5670
+ joinExisting: null,
5671
+ leave: null,
5672
+ leaveFailed: null,
5673
+ name: null,
5674
+ online: null,
5675
+ peers: null,
5676
+ people: null,
5677
+ person: null,
5678
+ reconnect: null,
5679
+ reconnecting: null,
5680
+ redo: null,
5681
+ room: null,
5682
+ roomSubtitle: null,
5683
+ roomTitle: null,
5684
+ save: null,
5685
+ scope: null,
5686
+ share: null,
5687
+ shareDescription: null,
5688
+ shareDocument: null,
5689
+ subtitle: null,
5690
+ title: null,
5691
+ undo: null,
5692
+ warning: null,
5693
+ you: null,
5694
+ outOfSync: null,
5695
+ outOfSyncShort: null,
5696
+ caretPages: null
5697
+ },
5698
+ collaboration: {
5699
+ moreParticipants: null,
5700
+ participants: null
5252
5701
  }
5253
5702
  };
5254
5703
 
@@ -5301,7 +5750,8 @@ var pt_BR_default = {
5301
5750
  alignment: "Alinhamento",
5302
5751
  listFormatting: "Formatação de lista",
5303
5752
  image: "Imagem",
5304
- table: "Tabela"
5753
+ table: "Tabela",
5754
+ format: null
5305
5755
  },
5306
5756
  undo: "Desfazer",
5307
5757
  undoShortcut: "Desfazer (Ctrl+Z)",
@@ -5329,7 +5779,9 @@ var pt_BR_default = {
5329
5779
  unavailableInPreview: "Não disponível nesta versão de visualização",
5330
5780
  more: "Mais",
5331
5781
  altText: "Texto alternativo",
5332
- imageWrap: "Quebra de texto automática"
5782
+ imageWrap: "Quebra de texto automática",
5783
+ formatPainter: null,
5784
+ formatPainterShortcut: null
5333
5785
  },
5334
5786
  alignment: {
5335
5787
  alignLeft: "Alinhar à esquerda",
@@ -5590,7 +6042,11 @@ var pt_BR_default = {
5590
6042
  editCustomNode: "Editar {label}",
5591
6043
  removeCustomNode: "Remover {label}",
5592
6044
  pasteWithoutFormatting: null,
5593
- pasteWithoutFormattingShortcut: null
6045
+ pasteWithoutFormattingShortcut: null,
6046
+ copyFormatting: null,
6047
+ copyFormattingShortcut: null,
6048
+ pasteFormatting: null,
6049
+ pasteFormattingShortcut: null
5594
6050
  },
5595
6051
  documentOutline: {
5596
6052
  ariaLabel: "Estrutura do documento",
@@ -5985,7 +6441,10 @@ var pt_BR_default = {
5985
6441
  suggestingSectionBreak: null,
5986
6442
  tableCellSectionBreak: null,
5987
6443
  lockedSectionBreak: null,
5988
- lockedContentBreak: null
6444
+ lockedContentBreak: null,
6445
+ noCopiedFormatting: null,
6446
+ nothingToCopyFormatting: null,
6447
+ nothingToPaint: null
5989
6448
  },
5990
6449
  equationPopup: {
5991
6450
  apply: null,
@@ -5994,6 +6453,60 @@ var pt_BR_default = {
5994
6453
  placeholder: null,
5995
6454
  refused: null,
5996
6455
  title: null
6456
+ },
6457
+ collaborationDemo: {
6458
+ back: null,
6459
+ close: null,
6460
+ connect: null,
6461
+ connectFailed: null,
6462
+ connected: null,
6463
+ connecting: null,
6464
+ connection: null,
6465
+ copied: null,
6466
+ copy: null,
6467
+ create: null,
6468
+ creating: null,
6469
+ dialogSubtitle: null,
6470
+ dialogTitle: null,
6471
+ disconnect: null,
6472
+ done: null,
6473
+ enterRoom: null,
6474
+ failed: null,
6475
+ guest: null,
6476
+ inviteLink: null,
6477
+ join: null,
6478
+ joinDescription: null,
6479
+ joinExisting: null,
6480
+ leave: null,
6481
+ leaveFailed: null,
6482
+ name: null,
6483
+ online: null,
6484
+ peers: null,
6485
+ people: null,
6486
+ person: null,
6487
+ reconnect: null,
6488
+ reconnecting: null,
6489
+ redo: null,
6490
+ room: null,
6491
+ roomSubtitle: null,
6492
+ roomTitle: null,
6493
+ save: null,
6494
+ scope: null,
6495
+ share: null,
6496
+ shareDescription: null,
6497
+ shareDocument: null,
6498
+ subtitle: null,
6499
+ title: null,
6500
+ undo: null,
6501
+ warning: null,
6502
+ you: null,
6503
+ outOfSync: null,
6504
+ outOfSyncShort: null,
6505
+ caretPages: null
6506
+ },
6507
+ collaboration: {
6508
+ moreParticipants: null,
6509
+ participants: null
5997
6510
  }
5998
6511
  };
5999
6512
 
@@ -6046,7 +6559,8 @@ var tr_default = {
6046
6559
  alignment: "Hizalama",
6047
6560
  listFormatting: "Liste biçimlendirme",
6048
6561
  image: "Görsel",
6049
- table: "Tablo"
6562
+ table: "Tablo",
6563
+ format: null
6050
6564
  },
6051
6565
  undo: "Geri al",
6052
6566
  undoShortcut: "Geri al (Ctrl+Z)",
@@ -6074,7 +6588,9 @@ var tr_default = {
6074
6588
  unavailableInPreview: "Bu önizleme sürümünde kullanılamaz",
6075
6589
  more: "Diğer",
6076
6590
  altText: "Alternatif metin",
6077
- imageWrap: "Metni kaydır"
6591
+ imageWrap: "Metni kaydır",
6592
+ formatPainter: null,
6593
+ formatPainterShortcut: null
6078
6594
  },
6079
6595
  alignment: {
6080
6596
  alignLeft: "Sola hizala",
@@ -6335,7 +6851,11 @@ var tr_default = {
6335
6851
  editCustomNode: "{label} öğesini düzenle",
6336
6852
  removeCustomNode: "{label} öğesini kaldır",
6337
6853
  pasteWithoutFormatting: null,
6338
- pasteWithoutFormattingShortcut: null
6854
+ pasteWithoutFormattingShortcut: null,
6855
+ copyFormatting: null,
6856
+ copyFormattingShortcut: null,
6857
+ pasteFormatting: null,
6858
+ pasteFormattingShortcut: null
6339
6859
  },
6340
6860
  documentOutline: {
6341
6861
  ariaLabel: "Belge ana hattı",
@@ -6730,7 +7250,10 @@ var tr_default = {
6730
7250
  suggestingSectionBreak: null,
6731
7251
  tableCellSectionBreak: null,
6732
7252
  lockedSectionBreak: null,
6733
- lockedContentBreak: null
7253
+ lockedContentBreak: null,
7254
+ noCopiedFormatting: null,
7255
+ nothingToCopyFormatting: null,
7256
+ nothingToPaint: null
6734
7257
  },
6735
7258
  equationPopup: {
6736
7259
  apply: null,
@@ -6739,6 +7262,60 @@ var tr_default = {
6739
7262
  placeholder: null,
6740
7263
  refused: null,
6741
7264
  title: null
7265
+ },
7266
+ collaborationDemo: {
7267
+ back: null,
7268
+ close: null,
7269
+ connect: null,
7270
+ connectFailed: null,
7271
+ connected: null,
7272
+ connecting: null,
7273
+ connection: null,
7274
+ copied: null,
7275
+ copy: null,
7276
+ create: null,
7277
+ creating: null,
7278
+ dialogSubtitle: null,
7279
+ dialogTitle: null,
7280
+ disconnect: null,
7281
+ done: null,
7282
+ enterRoom: null,
7283
+ failed: null,
7284
+ guest: null,
7285
+ inviteLink: null,
7286
+ join: null,
7287
+ joinDescription: null,
7288
+ joinExisting: null,
7289
+ leave: null,
7290
+ leaveFailed: null,
7291
+ name: null,
7292
+ online: null,
7293
+ peers: null,
7294
+ people: null,
7295
+ person: null,
7296
+ reconnect: null,
7297
+ reconnecting: null,
7298
+ redo: null,
7299
+ room: null,
7300
+ roomSubtitle: null,
7301
+ roomTitle: null,
7302
+ save: null,
7303
+ scope: null,
7304
+ share: null,
7305
+ shareDescription: null,
7306
+ shareDocument: null,
7307
+ subtitle: null,
7308
+ title: null,
7309
+ undo: null,
7310
+ warning: null,
7311
+ you: null,
7312
+ outOfSync: null,
7313
+ outOfSyncShort: null,
7314
+ caretPages: null
7315
+ },
7316
+ collaboration: {
7317
+ moreParticipants: null,
7318
+ participants: null
6742
7319
  }
6743
7320
  };
6744
7321
 
@@ -6791,7 +7368,8 @@ var zh_CN_default = {
6791
7368
  alignment: "对齐",
6792
7369
  listFormatting: "列表格式",
6793
7370
  image: "图片",
6794
- table: "表格"
7371
+ table: "表格",
7372
+ format: null
6795
7373
  },
6796
7374
  undo: "撤销",
6797
7375
  undoShortcut: "撤销(Ctrl+Z)",
@@ -6819,7 +7397,9 @@ var zh_CN_default = {
6819
7397
  unavailableInPreview: "此预览版本中不可用",
6820
7398
  more: "更多",
6821
7399
  altText: "替换文字",
6822
- imageWrap: "环绕文字"
7400
+ imageWrap: "环绕文字",
7401
+ formatPainter: null,
7402
+ formatPainterShortcut: null
6823
7403
  },
6824
7404
  alignment: {
6825
7405
  alignLeft: "左对齐",
@@ -7080,7 +7660,11 @@ var zh_CN_default = {
7080
7660
  editCustomNode: "编辑{label}",
7081
7661
  removeCustomNode: "删除{label}",
7082
7662
  pasteWithoutFormatting: null,
7083
- pasteWithoutFormattingShortcut: null
7663
+ pasteWithoutFormattingShortcut: null,
7664
+ copyFormatting: null,
7665
+ copyFormattingShortcut: null,
7666
+ pasteFormatting: null,
7667
+ pasteFormattingShortcut: null
7084
7668
  },
7085
7669
  documentOutline: {
7086
7670
  ariaLabel: "文档大纲",
@@ -7475,7 +8059,10 @@ var zh_CN_default = {
7475
8059
  suggestingSectionBreak: null,
7476
8060
  tableCellSectionBreak: null,
7477
8061
  lockedSectionBreak: null,
7478
- lockedContentBreak: null
8062
+ lockedContentBreak: null,
8063
+ noCopiedFormatting: null,
8064
+ nothingToCopyFormatting: null,
8065
+ nothingToPaint: null
7479
8066
  },
7480
8067
  equationPopup: {
7481
8068
  apply: null,
@@ -7484,6 +8071,60 @@ var zh_CN_default = {
7484
8071
  placeholder: null,
7485
8072
  refused: null,
7486
8073
  title: null
8074
+ },
8075
+ collaborationDemo: {
8076
+ back: null,
8077
+ close: null,
8078
+ connect: null,
8079
+ connectFailed: null,
8080
+ connected: null,
8081
+ connecting: null,
8082
+ connection: null,
8083
+ copied: null,
8084
+ copy: null,
8085
+ create: null,
8086
+ creating: null,
8087
+ dialogSubtitle: null,
8088
+ dialogTitle: null,
8089
+ disconnect: null,
8090
+ done: null,
8091
+ enterRoom: null,
8092
+ failed: null,
8093
+ guest: null,
8094
+ inviteLink: null,
8095
+ join: null,
8096
+ joinDescription: null,
8097
+ joinExisting: null,
8098
+ leave: null,
8099
+ leaveFailed: null,
8100
+ name: null,
8101
+ online: null,
8102
+ peers: null,
8103
+ people: null,
8104
+ person: null,
8105
+ reconnect: null,
8106
+ reconnecting: null,
8107
+ redo: null,
8108
+ room: null,
8109
+ roomSubtitle: null,
8110
+ roomTitle: null,
8111
+ save: null,
8112
+ scope: null,
8113
+ share: null,
8114
+ shareDescription: null,
8115
+ shareDocument: null,
8116
+ subtitle: null,
8117
+ title: null,
8118
+ undo: null,
8119
+ warning: null,
8120
+ you: null,
8121
+ outOfSync: null,
8122
+ outOfSyncShort: null,
8123
+ caretPages: null
8124
+ },
8125
+ collaboration: {
8126
+ moreParticipants: null,
8127
+ participants: null
7487
8128
  }
7488
8129
  };
7489
8130
 
@@ -7497,6 +8138,11 @@ var DISABLED_REASON_KEYS = Object.freeze({
7497
8138
  "no document is loaded": "disabledReason.noDocument",
7498
8139
  "no document is open": "disabledReason.noDocument",
7499
8140
  "no content control at the selection": "disabledReason.noContentControl",
8141
+ // Keyed on `NO_COPIED_FORMATTING` in the engine's format-painter lane; the two must stay
8142
+ // the same sentence or the refusal reaches every locale in English.
8143
+ "no formatting has been copied": "disabledReason.noCopiedFormatting",
8144
+ "there is nothing at the selection to copy": "disabledReason.nothingToCopyFormatting",
8145
+ "the selection has nothing to paint": "disabledReason.nothingToPaint",
7500
8146
  "no drawing is selected": "disabledReason.noDrawing",
7501
8147
  "the drawing is locked": "disabledReason.drawingLocked",
7502
8148
  "a comment needs a selected range": "disabledReason.commentSelection",
@@ -7529,6 +8175,27 @@ function localizeDisabledReason(reason, t) {
7529
8175
  return key ? t(key) : reason;
7530
8176
  }
7531
8177
 
8178
+ // src/platform-shortcuts.ts
8179
+ var APPLE_PLATFORM = /mac|iphone|ipad|ipod/i;
8180
+ function isApplePlatform() {
8181
+ const agent = globalThis.navigator;
8182
+ if (!agent) return false;
8183
+ const declared = agent.userAgentData?.platform;
8184
+ if (typeof declared === "string" && declared.length > 0) return APPLE_PLATFORM.test(declared);
8185
+ return APPLE_PLATFORM.test(agent.platform ?? "");
8186
+ }
8187
+ var ACCELERATOR = /Ctrl(?=\s*\+)/;
8188
+ var APPLE_MODIFIERS = [
8189
+ [/Ctrl(?=\s*\+)/g, "⌘"],
8190
+ [/Alt(?=\s*\+)/g, "Option"]
8191
+ ];
8192
+ function platformShortcut(text) {
8193
+ if (!ACCELERATOR.test(text) || !isApplePlatform()) return text;
8194
+ let next = text;
8195
+ for (const [pattern, replacement] of APPLE_MODIFIERS) next = next.replace(pattern, replacement);
8196
+ return next;
8197
+ }
8198
+
7532
8199
  // src/index.ts
7533
8200
  var en = en_default;
7534
8201
  var de = de_default;
@@ -7636,6 +8303,7 @@ function createT(strings, lang = "en") {
7636
8303
  locales,
7637
8304
  localizeDisabledReason,
7638
8305
  pl,
8306
+ platformShortcut,
7639
8307
  ptBR,
7640
8308
  tr,
7641
8309
  zhCN