@docx-editor.dev/i18n 2.4.1 → 2.6.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
@@ -32,6 +32,22 @@ var common = {
32
32
  comment: "Comment",
33
33
  dismiss: "Dismiss"
34
34
  };
35
+ var disabledReason = {
36
+ editorNotReady: "The editor is not ready",
37
+ notWired: "This control is not connected to an editor command",
38
+ viewing: "This document is open for viewing",
39
+ trackedOnly: "This document permits edits only as tracked changes",
40
+ noDocument: "No document is loaded",
41
+ noContentControl: "No content control is selected",
42
+ noDrawing: "No image is selected",
43
+ drawingLocked: "This image is locked",
44
+ commentSelection: "Select a range before adding a comment",
45
+ mergeUnsupported: "Cell merge is not supported",
46
+ splitUnsupported: "Cell split is not supported",
47
+ imageSuggesting: "Image property edits are unavailable in suggesting mode",
48
+ invalidValue: "This value is not valid for the command",
49
+ unavailable: "This command is unavailable"
50
+ };
35
51
  var toolbar = {
36
52
  ariaLabel: "Formatting toolbar",
37
53
  file: "File",
@@ -48,6 +64,7 @@ var toolbar = {
48
64
  rightToLeft: "Right-to-left text",
49
65
  image: "Image",
50
66
  table: "Table",
67
+ insertTable: "Insert table",
51
68
  "break": "Break",
52
69
  insertFootnote: "Insert Footnote",
53
70
  insertEndnote: "Insert Endnote",
@@ -291,6 +308,9 @@ var comments = {
291
308
  };
292
309
  var revisions = {
293
310
  paragraphMarkInserted: "Inserted paragraph break",
311
+ paragraphMarkDeleted: "Deleted paragraph break",
312
+ paragraphMarkMovedFrom: "Moved paragraph break away",
313
+ paragraphMarkMovedTo: "Moved paragraph break here",
294
314
  runPropertiesChanged: "Changed text formatting"
295
315
  };
296
316
  var contextMenu = {
@@ -662,6 +682,8 @@ var review = {
662
682
  structural: "Changed the document structure",
663
683
  replyRefused: "Could not post the reply",
664
684
  showPane: "Show comments",
685
+ resolved: "Resolved",
686
+ showResolvedComment: "Show resolved comment",
665
687
  replaced: "Replaced",
666
688
  replacedWith: "with",
667
689
  commentRefused: "Could not add the comment"
@@ -669,6 +691,7 @@ var review = {
669
691
  var enJson = {
670
692
  _lang: _lang,
671
693
  common: common,
694
+ disabledReason: disabledReason,
672
695
  toolbar: toolbar,
673
696
  toc: toc,
674
697
  formattingBar: formattingBar,
@@ -845,6 +868,14 @@ declare function deepMerge(base: AnyRecord, override: AnyRecord | undefined): An
845
868
  * @public
846
869
  */
847
870
  type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) => string;
871
+ /**
872
+ * Translate a known engine refusal for adapter chrome.
873
+ *
874
+ * Unknown diagnostics stay exact, so integrations never lose the engine's explanation.
875
+ *
876
+ * @public
877
+ */
878
+ declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
848
879
  /**
849
880
  * Build a typed `t(key, vars?)` function from a merged locale.
850
881
  *
@@ -872,4 +903,4 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
872
903
  */
873
904
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
874
905
 
875
- 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 };
906
+ 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 };
package/dist/index.d.ts CHANGED
@@ -32,6 +32,22 @@ var common = {
32
32
  comment: "Comment",
33
33
  dismiss: "Dismiss"
34
34
  };
35
+ var disabledReason = {
36
+ editorNotReady: "The editor is not ready",
37
+ notWired: "This control is not connected to an editor command",
38
+ viewing: "This document is open for viewing",
39
+ trackedOnly: "This document permits edits only as tracked changes",
40
+ noDocument: "No document is loaded",
41
+ noContentControl: "No content control is selected",
42
+ noDrawing: "No image is selected",
43
+ drawingLocked: "This image is locked",
44
+ commentSelection: "Select a range before adding a comment",
45
+ mergeUnsupported: "Cell merge is not supported",
46
+ splitUnsupported: "Cell split is not supported",
47
+ imageSuggesting: "Image property edits are unavailable in suggesting mode",
48
+ invalidValue: "This value is not valid for the command",
49
+ unavailable: "This command is unavailable"
50
+ };
35
51
  var toolbar = {
36
52
  ariaLabel: "Formatting toolbar",
37
53
  file: "File",
@@ -48,6 +64,7 @@ var toolbar = {
48
64
  rightToLeft: "Right-to-left text",
49
65
  image: "Image",
50
66
  table: "Table",
67
+ insertTable: "Insert table",
51
68
  "break": "Break",
52
69
  insertFootnote: "Insert Footnote",
53
70
  insertEndnote: "Insert Endnote",
@@ -291,6 +308,9 @@ var comments = {
291
308
  };
292
309
  var revisions = {
293
310
  paragraphMarkInserted: "Inserted paragraph break",
311
+ paragraphMarkDeleted: "Deleted paragraph break",
312
+ paragraphMarkMovedFrom: "Moved paragraph break away",
313
+ paragraphMarkMovedTo: "Moved paragraph break here",
294
314
  runPropertiesChanged: "Changed text formatting"
295
315
  };
296
316
  var contextMenu = {
@@ -662,6 +682,8 @@ var review = {
662
682
  structural: "Changed the document structure",
663
683
  replyRefused: "Could not post the reply",
664
684
  showPane: "Show comments",
685
+ resolved: "Resolved",
686
+ showResolvedComment: "Show resolved comment",
665
687
  replaced: "Replaced",
666
688
  replacedWith: "with",
667
689
  commentRefused: "Could not add the comment"
@@ -669,6 +691,7 @@ var review = {
669
691
  var enJson = {
670
692
  _lang: _lang,
671
693
  common: common,
694
+ disabledReason: disabledReason,
672
695
  toolbar: toolbar,
673
696
  toc: toc,
674
697
  formattingBar: formattingBar,
@@ -845,6 +868,14 @@ declare function deepMerge(base: AnyRecord, override: AnyRecord | undefined): An
845
868
  * @public
846
869
  */
847
870
  type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) => string;
871
+ /**
872
+ * Translate a known engine refusal for adapter chrome.
873
+ *
874
+ * Unknown diagnostics stay exact, so integrations never lose the engine's explanation.
875
+ *
876
+ * @public
877
+ */
878
+ declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
848
879
  /**
849
880
  * Build a typed `t(key, vars?)` function from a merged locale.
850
881
  *
@@ -872,4 +903,4 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
872
903
  */
873
904
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
874
905
 
875
- 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 };
906
+ 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 };