@betteroffice/docx-i18n 0.2.0 → 0.3.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/README.md CHANGED
@@ -2,8 +2,7 @@
2
2
 
3
3
  UI locale strings, types, and runtime helpers for the
4
4
  [`@betteroffice/docx-react`](https://www.npmjs.com/package/@betteroffice/docx-react)
5
- editor. `en` is the source of truth; community locales mirror its shape and fall
6
- back to English for any untranslated key.
5
+ editor. `en` defines the locale shape; community locales override its strings.
7
6
 
8
7
  ```bash
9
8
  bun add @betteroffice/docx-i18n
@@ -26,7 +25,7 @@ Override individual strings by spreading a locale:
26
25
  const myLocale = { ...de, formattingBar: { ...de.formattingBar, bold: 'Fettdruck' } };
27
26
  ```
28
27
 
29
- Keys set to `null` in any locale fall back to English.
28
+ Keys set to `null` keep the English string.
30
29
 
31
30
  ## Locales
32
31
 
package/dist/de.mjs CHANGED
@@ -463,6 +463,8 @@ var de_default = {
463
463
  shortcuts: {
464
464
  save: "Speichern",
465
465
  saveDescription: "Dokument speichern",
466
+ open: null,
467
+ openDescription: null,
466
468
  print: "Drucken",
467
469
  printDescription: "Dokument drucken",
468
470
  undo: "Rückgängig",
@@ -884,6 +886,65 @@ var de_default = {
884
886
  addRepeatingItem: null,
885
887
  contentControl: null,
886
888
  removeRepeatingItem: null
889
+ },
890
+ commands: {
891
+ paragraphStyle: null,
892
+ fontFamily: null,
893
+ imageWrap: null,
894
+ editingMode: null,
895
+ review: null,
896
+ reviewAccept: null,
897
+ reviewReject: null,
898
+ reviewPrevious: null,
899
+ reviewNext: null,
900
+ moreActions: null,
901
+ customColor: null,
902
+ hexColor: null,
903
+ customFontSize: null,
904
+ fontSizePoints: null,
905
+ reasons: {
906
+ editorUnavailable: null,
907
+ documentLoading: null,
908
+ noDocument: null,
909
+ readOnly: null,
910
+ viewingMode: null,
911
+ suggestingUnsupported: null,
912
+ selectionRequired: null,
913
+ unsupportedSelection: null,
914
+ unsupportedStory: null,
915
+ cannotOutdent: null,
916
+ nothingToUndo: null,
917
+ nothingToRedo: null,
918
+ imageRequired: null,
919
+ tableRequired: null,
920
+ multipleCellsRequired: null,
921
+ cannotSplitCell: null,
922
+ lastRow: null,
923
+ lastColumn: null,
924
+ revisionRequired: null,
925
+ revisionNotFound: null,
926
+ noRevisions: null,
927
+ controlledMode: null,
928
+ controlledSidebar: null,
929
+ hostDisabled: null,
930
+ unsupportedCommand: null,
931
+ tableOfContentsUnsupported: null,
932
+ invalidArguments: null,
933
+ inputFailed: null,
934
+ documentReplaced: null,
935
+ targetChanged: null,
936
+ commandFailed: null,
937
+ permissionDenied: null,
938
+ unsupportedPolicy: null,
939
+ pluginUnavailable: null,
940
+ aborted: null
941
+ }
942
+ },
943
+ plugins: {
944
+ toolbarGroup: null,
945
+ panelTabs: null,
946
+ collapsePanel: null,
947
+ expandPanel: null
887
948
  }
888
949
  };
889
950
 
package/dist/en.mjs CHANGED
@@ -484,6 +484,8 @@ var en_default = {
484
484
  shortcuts: {
485
485
  save: "Save",
486
486
  saveDescription: "Save document",
487
+ open: "Open",
488
+ openDescription: "Open a document",
487
489
  print: "Print",
488
490
  printDescription: "Print document",
489
491
  undo: "Undo",
@@ -884,6 +886,65 @@ var en_default = {
884
886
  contentControl: "Content control",
885
887
  addRepeatingItem: "Add item",
886
888
  removeRepeatingItem: "Remove item"
889
+ },
890
+ commands: {
891
+ paragraphStyle: "Paragraph style",
892
+ fontFamily: "Font",
893
+ imageWrap: "Text wrapping",
894
+ editingMode: "Editing mode",
895
+ review: "Review",
896
+ reviewAccept: "Accept change",
897
+ reviewReject: "Reject change",
898
+ reviewPrevious: "Previous change",
899
+ reviewNext: "Next change",
900
+ moreActions: "More actions",
901
+ customColor: "Custom color…",
902
+ hexColor: "Hex color, such as FF0000",
903
+ customFontSize: "Custom size…",
904
+ fontSizePoints: "Size in points",
905
+ reasons: {
906
+ editorUnavailable: "The editor is not ready.",
907
+ documentLoading: "The document is still loading.",
908
+ noDocument: "No document is open.",
909
+ readOnly: "This document is read-only.",
910
+ viewingMode: "Switch to Editing or Suggesting to make changes.",
911
+ suggestingUnsupported: "This change can't be recorded as a suggestion.",
912
+ selectionRequired: "Place the cursor in the document first.",
913
+ unsupportedSelection: "This selection can't be changed with this command.",
914
+ unsupportedStory: "Not available while editing a header, footer, or note.",
915
+ cannotOutdent: "This paragraph has no indentation to decrease.",
916
+ nothingToUndo: "There is nothing to undo.",
917
+ nothingToRedo: "There is nothing to redo.",
918
+ imageRequired: "Select an image first.",
919
+ tableRequired: "Place the cursor in a table first.",
920
+ multipleCellsRequired: "Select more than one cell.",
921
+ cannotSplitCell: "This cell can't be split.",
922
+ lastRow: "A table needs at least one row.",
923
+ lastColumn: "A table needs at least one column.",
924
+ revisionRequired: "Place the cursor in a tracked change.",
925
+ revisionNotFound: "That tracked change no longer exists.",
926
+ noRevisions: "The document has no tracked changes.",
927
+ controlledMode: "The host application controls the editing mode.",
928
+ controlledSidebar: "The host application controls the comments sidebar.",
929
+ hostDisabled: "Turned off by the host application.",
930
+ unsupportedCommand: "This action is not supported yet.",
931
+ tableOfContentsUnsupported: "Inserting a table of contents is not supported yet.",
932
+ invalidArguments: "The command received invalid options.",
933
+ inputFailed: "Earlier input could not be applied, so the command did not run.",
934
+ documentReplaced: "The document changed before the command could run.",
935
+ targetChanged: "The content this action was opened for changed before it could be applied.",
936
+ commandFailed: "The command could not be completed.",
937
+ permissionDenied: "The host application has not allowed this plugin to use this command.",
938
+ unsupportedPolicy: "Plugins can't run this command yet. Use an edit batch instead.",
939
+ pluginUnavailable: "The plugin is no longer active.",
940
+ aborted: "The plugin action was cancelled before the command ran."
941
+ }
942
+ },
943
+ plugins: {
944
+ toolbarGroup: "Plugins",
945
+ panelTabs: "Plugin panels",
946
+ collapsePanel: "Collapse {title}",
947
+ expandPanel: "Expand {title}"
887
948
  }
888
949
  };
889
950
 
package/dist/fr.mjs CHANGED
@@ -463,6 +463,8 @@ var fr_default = {
463
463
  shortcuts: {
464
464
  save: "Enregistrer",
465
465
  saveDescription: "Enregistrer le document",
466
+ open: null,
467
+ openDescription: null,
466
468
  print: "Imprimer",
467
469
  printDescription: "Imprimer le document",
468
470
  undo: "Annuler",
@@ -884,6 +886,65 @@ var fr_default = {
884
886
  addRepeatingItem: null,
885
887
  contentControl: null,
886
888
  removeRepeatingItem: null
889
+ },
890
+ commands: {
891
+ paragraphStyle: null,
892
+ fontFamily: null,
893
+ imageWrap: null,
894
+ editingMode: null,
895
+ review: null,
896
+ reviewAccept: null,
897
+ reviewReject: null,
898
+ reviewPrevious: null,
899
+ reviewNext: null,
900
+ moreActions: null,
901
+ customColor: null,
902
+ hexColor: null,
903
+ customFontSize: null,
904
+ fontSizePoints: null,
905
+ reasons: {
906
+ editorUnavailable: null,
907
+ documentLoading: null,
908
+ noDocument: null,
909
+ readOnly: null,
910
+ viewingMode: null,
911
+ suggestingUnsupported: null,
912
+ selectionRequired: null,
913
+ unsupportedSelection: null,
914
+ unsupportedStory: null,
915
+ cannotOutdent: null,
916
+ nothingToUndo: null,
917
+ nothingToRedo: null,
918
+ imageRequired: null,
919
+ tableRequired: null,
920
+ multipleCellsRequired: null,
921
+ cannotSplitCell: null,
922
+ lastRow: null,
923
+ lastColumn: null,
924
+ revisionRequired: null,
925
+ revisionNotFound: null,
926
+ noRevisions: null,
927
+ controlledMode: null,
928
+ controlledSidebar: null,
929
+ hostDisabled: null,
930
+ unsupportedCommand: null,
931
+ tableOfContentsUnsupported: null,
932
+ invalidArguments: null,
933
+ inputFailed: null,
934
+ documentReplaced: null,
935
+ targetChanged: null,
936
+ commandFailed: null,
937
+ permissionDenied: null,
938
+ unsupportedPolicy: null,
939
+ pluginUnavailable: null,
940
+ aborted: null
941
+ }
942
+ },
943
+ plugins: {
944
+ toolbarGroup: null,
945
+ panelTabs: null,
946
+ collapsePanel: null,
947
+ expandPanel: null
887
948
  }
888
949
  };
889
950
 
package/dist/he.mjs CHANGED
@@ -463,6 +463,8 @@ var he_default = {
463
463
  shortcuts: {
464
464
  save: "שמור",
465
465
  saveDescription: "שמור מסמך",
466
+ open: null,
467
+ openDescription: null,
466
468
  print: "הדפס",
467
469
  printDescription: "הדפס מסמך",
468
470
  undo: "בטל",
@@ -884,6 +886,65 @@ var he_default = {
884
886
  addRepeatingItem: null,
885
887
  contentControl: null,
886
888
  removeRepeatingItem: null
889
+ },
890
+ commands: {
891
+ paragraphStyle: null,
892
+ fontFamily: null,
893
+ imageWrap: null,
894
+ editingMode: null,
895
+ review: null,
896
+ reviewAccept: null,
897
+ reviewReject: null,
898
+ reviewPrevious: null,
899
+ reviewNext: null,
900
+ moreActions: null,
901
+ customColor: null,
902
+ hexColor: null,
903
+ customFontSize: null,
904
+ fontSizePoints: null,
905
+ reasons: {
906
+ editorUnavailable: null,
907
+ documentLoading: null,
908
+ noDocument: null,
909
+ readOnly: null,
910
+ viewingMode: null,
911
+ suggestingUnsupported: null,
912
+ selectionRequired: null,
913
+ unsupportedSelection: null,
914
+ unsupportedStory: null,
915
+ cannotOutdent: null,
916
+ nothingToUndo: null,
917
+ nothingToRedo: null,
918
+ imageRequired: null,
919
+ tableRequired: null,
920
+ multipleCellsRequired: null,
921
+ cannotSplitCell: null,
922
+ lastRow: null,
923
+ lastColumn: null,
924
+ revisionRequired: null,
925
+ revisionNotFound: null,
926
+ noRevisions: null,
927
+ controlledMode: null,
928
+ controlledSidebar: null,
929
+ hostDisabled: null,
930
+ unsupportedCommand: null,
931
+ tableOfContentsUnsupported: null,
932
+ invalidArguments: null,
933
+ inputFailed: null,
934
+ documentReplaced: null,
935
+ targetChanged: null,
936
+ commandFailed: null,
937
+ permissionDenied: null,
938
+ unsupportedPolicy: null,
939
+ pluginUnavailable: null,
940
+ aborted: null
941
+ }
942
+ },
943
+ plugins: {
944
+ toolbarGroup: null,
945
+ panelTabs: null,
946
+ collapsePanel: null,
947
+ expandPanel: null
887
948
  }
888
949
  };
889
950
 
package/dist/hi.mjs CHANGED
@@ -463,6 +463,8 @@ var hi_default = {
463
463
  shortcuts: {
464
464
  save: "सहेजें",
465
465
  saveDescription: "दस्तावेज़ सहेजें",
466
+ open: null,
467
+ openDescription: null,
466
468
  print: "प्रिंट करें",
467
469
  printDescription: "दस्तावेज़ प्रिंट करें",
468
470
  undo: "पूर्ववत करें",
@@ -884,6 +886,65 @@ var hi_default = {
884
886
  addRepeatingItem: null,
885
887
  contentControl: null,
886
888
  removeRepeatingItem: null
889
+ },
890
+ commands: {
891
+ paragraphStyle: null,
892
+ fontFamily: null,
893
+ imageWrap: null,
894
+ editingMode: null,
895
+ review: null,
896
+ reviewAccept: null,
897
+ reviewReject: null,
898
+ reviewPrevious: null,
899
+ reviewNext: null,
900
+ moreActions: null,
901
+ customColor: null,
902
+ hexColor: null,
903
+ customFontSize: null,
904
+ fontSizePoints: null,
905
+ reasons: {
906
+ editorUnavailable: null,
907
+ documentLoading: null,
908
+ noDocument: null,
909
+ readOnly: null,
910
+ viewingMode: null,
911
+ suggestingUnsupported: null,
912
+ selectionRequired: null,
913
+ unsupportedSelection: null,
914
+ unsupportedStory: null,
915
+ cannotOutdent: null,
916
+ nothingToUndo: null,
917
+ nothingToRedo: null,
918
+ imageRequired: null,
919
+ tableRequired: null,
920
+ multipleCellsRequired: null,
921
+ cannotSplitCell: null,
922
+ lastRow: null,
923
+ lastColumn: null,
924
+ revisionRequired: null,
925
+ revisionNotFound: null,
926
+ noRevisions: null,
927
+ controlledMode: null,
928
+ controlledSidebar: null,
929
+ hostDisabled: null,
930
+ unsupportedCommand: null,
931
+ tableOfContentsUnsupported: null,
932
+ invalidArguments: null,
933
+ inputFailed: null,
934
+ documentReplaced: null,
935
+ targetChanged: null,
936
+ commandFailed: null,
937
+ permissionDenied: null,
938
+ unsupportedPolicy: null,
939
+ pluginUnavailable: null,
940
+ aborted: null
941
+ }
942
+ },
943
+ plugins: {
944
+ toolbarGroup: null,
945
+ panelTabs: null,
946
+ collapsePanel: null,
947
+ expandPanel: null
887
948
  }
888
949
  };
889
950
 
package/dist/id.mjs CHANGED
@@ -484,6 +484,8 @@ var id_default = {
484
484
  shortcuts: {
485
485
  save: "Simpan",
486
486
  saveDescription: "Simpan dokumen",
487
+ open: null,
488
+ openDescription: null,
487
489
  print: "Cetak",
488
490
  printDescription: "Cetak dokumen",
489
491
  undo: "Urungkan",
@@ -884,6 +886,65 @@ var id_default = {
884
886
  addRepeatingItem: null,
885
887
  contentControl: null,
886
888
  removeRepeatingItem: null
889
+ },
890
+ commands: {
891
+ paragraphStyle: null,
892
+ fontFamily: null,
893
+ imageWrap: null,
894
+ editingMode: null,
895
+ review: null,
896
+ reviewAccept: null,
897
+ reviewReject: null,
898
+ reviewPrevious: null,
899
+ reviewNext: null,
900
+ moreActions: null,
901
+ customColor: null,
902
+ hexColor: null,
903
+ customFontSize: null,
904
+ fontSizePoints: null,
905
+ reasons: {
906
+ editorUnavailable: null,
907
+ documentLoading: null,
908
+ noDocument: null,
909
+ readOnly: null,
910
+ viewingMode: null,
911
+ suggestingUnsupported: null,
912
+ selectionRequired: null,
913
+ unsupportedSelection: null,
914
+ unsupportedStory: null,
915
+ cannotOutdent: null,
916
+ nothingToUndo: null,
917
+ nothingToRedo: null,
918
+ imageRequired: null,
919
+ tableRequired: null,
920
+ multipleCellsRequired: null,
921
+ cannotSplitCell: null,
922
+ lastRow: null,
923
+ lastColumn: null,
924
+ revisionRequired: null,
925
+ revisionNotFound: null,
926
+ noRevisions: null,
927
+ controlledMode: null,
928
+ controlledSidebar: null,
929
+ hostDisabled: null,
930
+ unsupportedCommand: null,
931
+ tableOfContentsUnsupported: null,
932
+ invalidArguments: null,
933
+ inputFailed: null,
934
+ documentReplaced: null,
935
+ targetChanged: null,
936
+ commandFailed: null,
937
+ permissionDenied: null,
938
+ unsupportedPolicy: null,
939
+ pluginUnavailable: null,
940
+ aborted: null
941
+ }
942
+ },
943
+ plugins: {
944
+ toolbarGroup: null,
945
+ panelTabs: null,
946
+ collapsePanel: null,
947
+ expandPanel: null
887
948
  }
888
949
  };
889
950