@betteroffice/docx-i18n 0.5.1 → 0.6.1

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
@@ -40,7 +40,7 @@ type LocaleStrings = typeof en;
40
40
  *
41
41
  * @public
42
42
  */
43
- type LocaleCode = 'en' | 'de' | 'fr' | 'he' | 'hi' | 'id' | 'pl' | 'pt-BR' | 'tr' | 'zh-CN';
43
+ type LocaleCode = 'en' | 'ar' | 'de' | 'es' | 'fr' | 'he' | 'hi' | 'id' | 'it' | 'ja' | 'ko' | 'nl' | 'pl' | 'pt-BR' | 'ru' | 'tr' | 'uk' | 'vi' | 'zh-CN' | 'zh-TW';
44
44
  /** English (`en`) — the source of truth, 100% covered. @public */
45
45
  declare const en: {
46
46
  _lang: string;
@@ -64,18 +64,24 @@ declare const en: {
64
64
  clear: string;
65
65
  px: string;
66
66
  closeDialog: string;
67
+ units: {
68
+ inch: string;
69
+ cm: string;
70
+ pt: string;
71
+ px: string;
72
+ inchMark: string;
73
+ };
67
74
  };
68
75
  toolbar: {
69
76
  ariaLabel: string;
70
77
  file: string;
71
78
  format: string;
79
+ layout: string;
72
80
  insert: string;
73
81
  open: string;
74
82
  openShortcut: string;
75
83
  save: string;
76
- saveShortcut: string;
77
84
  print: string;
78
- printShortcut: string;
79
85
  pageSetup: string;
80
86
  leftToRight: string;
81
87
  rightToLeft: string;
@@ -86,7 +92,6 @@ declare const en: {
86
92
  sectionBreakNextPage: string;
87
93
  sectionBreakContinuous: string;
88
94
  tableOfContents: string;
89
- symbol: string;
90
95
  watermark: string;
91
96
  help: string;
92
97
  reportIssue: string;
@@ -94,6 +99,16 @@ declare const en: {
94
99
  current: string;
95
100
  };
96
101
  };
102
+ layout: {
103
+ margins: string;
104
+ normal: string;
105
+ narrow: string;
106
+ moderate: string;
107
+ wide: string;
108
+ customMargins: string;
109
+ morePaperSizes: string;
110
+ indent: string;
111
+ };
97
112
  formattingBar: {
98
113
  groups: {
99
114
  history: string;
@@ -108,31 +123,21 @@ declare const en: {
108
123
  table: string;
109
124
  };
110
125
  undo: string;
111
- undoShortcut: string;
112
126
  redo: string;
113
- redoShortcut: string;
114
127
  bold: string;
115
- boldShortcut: string;
116
128
  italic: string;
117
- italicShortcut: string;
118
129
  underline: string;
119
- underlineShortcut: string;
120
130
  strikethrough: string;
121
131
  fontColor: string;
122
132
  highlightColor: string;
123
133
  insertLink: string;
124
- insertLinkShortcut: string;
125
134
  superscript: string;
126
- superscriptShortcut: string;
127
135
  subscript: string;
128
- subscriptShortcut: string;
129
136
  imageProperties: string;
130
- imagePropertiesShortcut: string;
131
137
  clearFormatting: string;
132
- commentsAndChanges: string;
133
- moreItems: string;
134
138
  };
135
139
  alignment: {
140
+ left: string;
136
141
  alignLeft: string;
137
142
  alignLeftShortcut: string;
138
143
  center: string;
@@ -144,8 +149,6 @@ declare const en: {
144
149
  };
145
150
  lists: {
146
151
  ariaLabel: string;
147
- typeAriaLabel: string;
148
- indentationAriaLabel: string;
149
152
  bulletList: string;
150
153
  numberedList: string;
151
154
  decreaseIndent: string;
@@ -157,6 +160,11 @@ declare const en: {
157
160
  double: string;
158
161
  lineSpacingTitle: string;
159
162
  paragraphSpacing: string;
163
+ addBefore: string;
164
+ removeBefore: string;
165
+ addAfter: string;
166
+ removeAfter: string;
167
+ options: string;
160
168
  };
161
169
  styles: {
162
170
  selectAriaLabel: string;
@@ -190,56 +198,24 @@ declare const en: {
190
198
  };
191
199
  colorPicker: {
192
200
  ariaLabel: string;
193
- highlightColors: string;
201
+ pickerLabel: string;
202
+ customHexColor: string;
194
203
  customColor: string;
195
204
  noColor: string;
196
205
  automatic: string;
197
206
  themeColors: string;
198
207
  standardColors: string;
199
208
  colors: {
200
- black: string;
201
209
  darkRed: string;
202
210
  red: string;
203
211
  orange: string;
204
212
  yellow: string;
205
- darkYellow: string;
206
213
  green: string;
207
- darkGreen: string;
208
- teal: string;
209
- darkTeal: string;
210
214
  blue: string;
211
215
  darkBlue: string;
212
216
  purple: string;
213
- darkPurple: string;
214
- brown: string;
215
- grey50: string;
216
- grey25: string;
217
- grey10: string;
218
- white: string;
219
- lightRed: string;
220
- lightOrange: string;
221
- lightYellow: string;
222
217
  lightGreen: string;
223
218
  lightBlue: string;
224
- lightPurple: string;
225
- pink: string;
226
- rose: string;
227
- gold: string;
228
- aqua: string;
229
- lavender: string;
230
- silver: string;
231
- darkOrange: string;
232
- darkGray: string;
233
- gray: string;
234
- cyan: string;
235
- magenta: string;
236
- paleGreen: string;
237
- lightCyan: string;
238
- skyBlue: string;
239
- lightBlue2: string;
240
- lightMagenta: string;
241
- brightGreen: string;
242
- violet: string;
243
219
  };
244
220
  };
245
221
  dialogs: {
@@ -264,7 +240,6 @@ declare const en: {
264
240
  replaceAllTitle: string;
265
241
  matchCase: string;
266
242
  wholeWords: string;
267
- matchesFound: string;
268
243
  toggleReplace: string;
269
244
  };
270
245
  hyperlink: {
@@ -288,18 +263,12 @@ declare const en: {
288
263
  };
289
264
  insertTable: {
290
265
  title: string;
291
- hoverToSelect: string;
292
266
  tableSize: string;
293
- orSpecifySize: string;
294
267
  rowsLabel: string;
295
268
  columnsLabel: string;
296
- insertButton: string;
297
269
  sizeSelector: string;
298
- columnWidthLabel: string;
299
- fixedWidth: string;
300
- autofit: string;
301
- tableStyleLabel: string;
302
- validationHint: string;
270
+ selectSize: string;
271
+ cellSize: string;
303
272
  };
304
273
  watermark: {
305
274
  title: string;
@@ -331,42 +300,9 @@ declare const en: {
331
300
  minValue: string;
332
301
  notOneByOne: string;
333
302
  };
334
- insertImage: {
335
- title: string;
336
- uploadAriaLabel: string;
337
- uploadText: string;
338
- uploadSubtext: string;
339
- dimensions: string;
340
- widthLabel: string;
341
- heightLabel: string;
342
- aspectRatioLocked: string;
343
- aspectRatioUnlocked: string;
344
- altTextLabel: string;
345
- altTextPlaceholder: string;
346
- insertButton: string;
347
- invalidFile: string;
348
- fileTooLarge: string;
349
- readFailed: string;
350
- loadFailed: string;
351
- preview: string;
352
- };
353
303
  insertSymbol: {
354
- title: string;
355
- searchPlaceholder: string;
356
- noResultsEmpty: string;
357
- noResults: string;
358
- decimal: string;
359
- recent: string;
360
304
  categories: {
361
305
  common: string;
362
- arrows: string;
363
- math: string;
364
- greek: string;
365
- shapes: string;
366
- punctuation: string;
367
- currency: string;
368
- music: string;
369
- emoji: string;
370
306
  };
371
307
  };
372
308
  imageProperties: {
@@ -378,19 +314,10 @@ declare const en: {
378
314
  style: string;
379
315
  color: string;
380
316
  preview: string;
381
- textWrapping: string;
382
317
  dimensions: string;
383
318
  widthLabel: string;
384
319
  heightLabel: string;
385
320
  lockAspectRatio: string;
386
- wrapOptions: {
387
- inline: string;
388
- wrapRight: string;
389
- wrapLeft: string;
390
- topAndBottom: string;
391
- behind: string;
392
- inFront: string;
393
- };
394
321
  borderStyles: {
395
322
  solid: string;
396
323
  dashed: string;
@@ -410,6 +337,7 @@ declare const en: {
410
337
  alignment: string;
411
338
  offset: string;
412
339
  offsetPx: string;
340
+ distanceFromText: string;
413
341
  align: string;
414
342
  relativeTo: string;
415
343
  alignOptions: {
@@ -471,19 +399,6 @@ declare const en: {
471
399
  right: string;
472
400
  };
473
401
  };
474
- pasteSpecial: {
475
- title: string;
476
- keepFormatting: string;
477
- keepFormattingDescription: string;
478
- keepFormattingShortcut: string;
479
- plainText: string;
480
- plainTextDescription: string;
481
- plainTextShortcut: string;
482
- readingClipboard: string;
483
- preview: string;
484
- noContent: string;
485
- clipboardError: string;
486
- };
487
402
  footnoteProperties: {
488
403
  title: string;
489
404
  footnotes: string;
@@ -562,6 +477,8 @@ declare const en: {
562
477
  strikethroughDescription: string;
563
478
  subscript: string;
564
479
  subscriptDescription: string;
480
+ clearFormatting: string;
481
+ clearFormattingDescription: string;
565
482
  superscript: string;
566
483
  superscriptDescription: string;
567
484
  alignLeft: string;
@@ -601,11 +518,7 @@ declare const en: {
601
518
  pageDown: string;
602
519
  pageDownDescription: string;
603
520
  zoomIn: string;
604
- zoomInDescription: string;
605
521
  zoomOut: string;
606
- zoomOutDescription: string;
607
- resetZoom: string;
608
- resetZoomDescription: string;
609
522
  keyboardShortcuts: string;
610
523
  keyboardShortcutsDescription: string;
611
524
  insertLink: string;
@@ -614,6 +527,15 @@ declare const en: {
614
527
  noResults: string;
615
528
  pressEscToClose: string;
616
529
  or: string;
530
+ keys: {
531
+ escape: string;
532
+ pageUp: string;
533
+ pageDown: string;
534
+ ctrl: string;
535
+ del: string;
536
+ shift: string;
537
+ alt: string;
538
+ };
617
539
  };
618
540
  objectGeometry: {
619
541
  left: string;
@@ -621,6 +543,11 @@ declare const en: {
621
543
  width: string;
622
544
  height: string;
623
545
  };
546
+ paragraphSpacing: {
547
+ before: string;
548
+ after: string;
549
+ multiple: string;
550
+ };
624
551
  };
625
552
  comments: {
626
553
  resolved: string;
@@ -634,10 +561,7 @@ declare const en: {
634
561
  };
635
562
  trackedChanges: {
636
563
  unknown: string;
637
- replaced: string;
638
- with: string;
639
564
  added: string;
640
- deleted: string;
641
565
  agent: string;
642
566
  previousChange: string;
643
567
  nextChange: string;
@@ -650,6 +574,7 @@ declare const en: {
650
574
  paragraphMarkInserted: string;
651
575
  paragraphMarkDeleted: string;
652
576
  paragraphPropertiesChanged: string;
577
+ runPropertiesChanged: string;
653
578
  rowInserted: string;
654
579
  rowDeleted: string;
655
580
  rowPropertiesChanged: string;
@@ -661,10 +586,15 @@ declare const en: {
661
586
  tableInserted: string;
662
587
  tableDeleted: string;
663
588
  };
589
+ pasteOptions: {
590
+ button: string;
591
+ keepSource: string;
592
+ merge: string;
593
+ textOnly: string;
594
+ };
664
595
  contextMenu: {
665
596
  ariaLabel: string;
666
597
  textMenuAriaLabel: string;
667
- customPromptPlaceholder: string;
668
598
  cut: string;
669
599
  cutShortcut: string;
670
600
  copy: string;
@@ -678,18 +608,6 @@ declare const en: {
678
608
  selectAll: string;
679
609
  selectAllShortcut: string;
680
610
  selected: string;
681
- aiActions: {
682
- askAi: string;
683
- rewrite: string;
684
- expand: string;
685
- summarize: string;
686
- translate: string;
687
- explain: string;
688
- fixGrammar: string;
689
- makeFormal: string;
690
- makeCasual: string;
691
- custom: string;
692
- };
693
611
  addComment: string;
694
612
  resizeImage: string;
695
613
  moveImage: string;
@@ -719,6 +637,9 @@ declare const en: {
719
637
  noDocumentLoaded: string;
720
638
  failedToLoad: string;
721
639
  failedToLoadDescription: string;
640
+ recoveryFailedDescription: string;
641
+ failedToLoadDamaged: string;
642
+ failedToLoadUnsupported: string;
722
643
  editorUnavailable: string;
723
644
  editorUnavailableDescription: string;
724
645
  reloadPage: string;
@@ -730,13 +651,25 @@ declare const en: {
730
651
  tryAgain: string;
731
652
  showDetails: string;
732
653
  hideDetails: string;
733
- unsavedChanges: string;
654
+ canvasRendererFailed: string;
655
+ userFriendly: {
656
+ network: string;
657
+ parse: string;
658
+ permission: string;
659
+ notFound: string;
660
+ timeout: string;
661
+ unexpected: string;
662
+ };
663
+ };
664
+ contentControls: {
665
+ noOptions: string;
734
666
  };
735
667
  table: {
736
668
  insertRowAbove: string;
737
669
  insertRowBelow: string;
738
670
  insertColumnLeft: string;
739
671
  insertColumnRight: string;
672
+ insertColumnToTheRight: string;
740
673
  deleteRow: string;
741
674
  deleteColumn: string;
742
675
  deleteTable: string;
@@ -788,21 +721,7 @@ declare const en: {
788
721
  top: string;
789
722
  middle: string;
790
723
  bottom: string;
791
- cellMargins: string;
792
- textDirection: string;
793
- textDirections: {
794
- horizontal: string;
795
- verticalRL: string;
796
- verticalLR: string;
797
- };
798
724
  toggleNoWrap: string;
799
- rowHeight: string;
800
- heightRules: {
801
- auto: string;
802
- atLeast: string;
803
- exact: string;
804
- };
805
- rule: string;
806
725
  height: string;
807
726
  toggleHeaderRow: string;
808
727
  distributeColumns: string;
@@ -812,8 +731,6 @@ declare const en: {
812
731
  alignTableLeft: string;
813
732
  alignTableCenter: string;
814
733
  alignTableRight: string;
815
- tableOptionsMenu: string;
816
- tableOptions: string;
817
734
  };
818
735
  imageTransform: {
819
736
  tooltip: string;
@@ -847,16 +764,6 @@ declare const en: {
847
764
  inFrontOfText: string;
848
765
  };
849
766
  };
850
- responsePreview: {
851
- loading: string;
852
- result: string;
853
- closeEsc: string;
854
- editPrompt: string;
855
- changes: string;
856
- original: string;
857
- new: string;
858
- cancelEdit: string;
859
- };
860
767
  commentMarkers: {
861
768
  resolvedComment: string;
862
769
  comment: string;
@@ -873,6 +780,8 @@ declare const en: {
873
780
  failedToParse: string;
874
781
  linkRemoved: string;
875
782
  linkCopied: string;
783
+ pasteFailed: string;
784
+ cutRefused: string;
876
785
  failedToSave: string;
877
786
  documentInput: string;
878
787
  documentPreview: string;
@@ -907,16 +816,18 @@ declare const en: {
907
816
  };
908
817
  image: {
909
818
  placeholder: string;
910
- placeholderText: string;
911
- editableAriaLabel: string;
912
- };
913
- imageOverlay: {
914
- rotate: string;
915
- imageProperties: string;
916
- deleteImage: string;
917
- replaceImage: string;
918
819
  };
919
820
  ruler: {
821
+ tabStop: string;
822
+ tabAlignments: {
823
+ left: string;
824
+ center: string;
825
+ right: string;
826
+ decimal: string;
827
+ bar: string;
828
+ clear: string;
829
+ num: string;
830
+ };
920
831
  horizontal: string;
921
832
  vertical: string;
922
833
  firstLineIndent: string;
@@ -924,6 +835,10 @@ declare const en: {
924
835
  rightIndent: string;
925
836
  topMargin: string;
926
837
  bottomMargin: string;
838
+ leftMargin: string;
839
+ rightMargin: string;
840
+ hangingIndent: string;
841
+ markerValue: string;
927
842
  };
928
843
  print: {
929
844
  label: string;
@@ -931,35 +846,18 @@ declare const en: {
931
846
  singlePage: string;
932
847
  pageRange: string;
933
848
  };
934
- unsaved: {
935
- unsaved: string;
936
- saved: string;
937
- unsavedTitle: string;
938
- savedTitle: string;
939
- unsavedAriaLabel: string;
940
- savedAriaLabel: string;
941
- };
942
849
  loading: {
943
850
  label: string;
944
851
  };
945
- agentPanel: {
946
- defaultTitle: string;
947
- toggle: string;
948
- close: string;
949
- resizeHandle: string;
950
- thinking: string;
951
- composerPlaceholder: string;
952
- send: string;
953
- timeline: {
954
- working: string;
955
- summary: string;
956
- earlier: string;
957
- };
958
- };
959
852
  a11y: {
960
853
  pageLabel: string;
854
+ unbuiltPagesNotMirrored: string;
855
+ goToPage: string;
961
856
  headerLabel: string;
962
857
  footerLabel: string;
858
+ chartNoData: string;
859
+ pictureName: string;
860
+ bulletMarker: string;
963
861
  selected: string;
964
862
  selectionCleared: string;
965
863
  commentedText: string;
@@ -1028,10 +926,15 @@ declare const en: {
1028
926
  panelTabs: string;
1029
927
  collapsePanel: string;
1030
928
  expandPanel: string;
929
+ miniToolbar: string;
1031
930
  };
1032
931
  };
932
+ /** Arabic (`ar`). Community-maintained; null leaves fall back to English. @public */
933
+ declare const ar: PartialLocaleStrings;
1033
934
  /** German (`de`). Community-maintained; null leaves fall back to English. @public */
1034
935
  declare const de: PartialLocaleStrings;
936
+ /** Spanish (`es`). Community-maintained; null leaves fall back to English. @public */
937
+ declare const es: PartialLocaleStrings;
1035
938
  /** French (`fr`). Community-maintained; null leaves fall back to English. @public */
1036
939
  declare const fr: PartialLocaleStrings;
1037
940
  /** Hebrew (`he`). Community-maintained; null leaves fall back to English. @public */
@@ -1040,14 +943,30 @@ declare const he: PartialLocaleStrings;
1040
943
  declare const hi: PartialLocaleStrings;
1041
944
  /** Indonesian (`id`). Community-maintained; null leaves fall back to English. @public */
1042
945
  declare const id: PartialLocaleStrings;
946
+ /** Italian (`it`). Community-maintained; null leaves fall back to English. @public */
947
+ declare const it: PartialLocaleStrings;
948
+ /** Japanese (`ja`). Community-maintained; null leaves fall back to English. @public */
949
+ declare const ja: PartialLocaleStrings;
950
+ /** Korean (`ko`). Community-maintained; null leaves fall back to English. @public */
951
+ declare const ko: PartialLocaleStrings;
952
+ /** Dutch (`nl`). Community-maintained; null leaves fall back to English. @public */
953
+ declare const nl: PartialLocaleStrings;
1043
954
  /** Polish (`pl`). Community-maintained; null leaves fall back to English. @public */
1044
955
  declare const pl: PartialLocaleStrings;
1045
956
  /** Portuguese (Brazil) (`pt-BR`). Community-maintained; null leaves fall back to English. @public */
1046
957
  declare const ptBR: PartialLocaleStrings;
958
+ /** Russian (`ru`). Community-maintained; null leaves fall back to English. @public */
959
+ declare const ru: PartialLocaleStrings;
1047
960
  /** Turkish (`tr`). Community-maintained; null leaves fall back to English. @public */
1048
961
  declare const tr: PartialLocaleStrings;
962
+ /** Ukrainian (`uk`). Community-maintained; null leaves fall back to English. @public */
963
+ declare const uk: PartialLocaleStrings;
964
+ /** Vietnamese (`vi`). Community-maintained; null leaves fall back to English. @public */
965
+ declare const vi: PartialLocaleStrings;
1049
966
  /** Simplified Chinese (`zh-CN`). Community-maintained; null leaves fall back to English. @public */
1050
967
  declare const zhCN: PartialLocaleStrings;
968
+ /** Traditional Chinese (`zh-TW`). Community-maintained; null leaves fall back to English. @public */
969
+ declare const zhTW: PartialLocaleStrings;
1051
970
  /**
1052
971
  * Every shipped locale, keyed by BCP-47 tag. Use for runtime locale
1053
972
  * pickers and "look up the locale matching this user preference" code:
@@ -1147,4 +1066,4 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
1147
1066
  */
1148
1067
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
1149
1068
 
1150
- export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, createT, de, deepMerge, en, fr, he, hi, id, locales, pl, ptBR, tr, zhCN };
1069
+ export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, ar, createT, de, deepMerge, en, es, fr, he, hi, id, it, ja, ko, locales, nl, pl, ptBR, ru, tr, uk, vi, zhCN, zhTW };