@docx-editor.dev/i18n 2.32.0 → 2.33.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/id.js CHANGED
@@ -667,6 +667,10 @@ var id_default = {
667
667
  headerFooter: {
668
668
  header: "Header",
669
669
  footer: "Footer",
670
+ addHeaderHint: "Klik dua kali untuk menambahkan header",
671
+ addFooterHint: "Klik dua kali untuk menambahkan footer",
672
+ editHeaderHint: "Klik dua kali untuk mengedit header",
673
+ editFooterHint: "Klik dua kali untuk mengedit footer",
670
674
  options: "Opsi",
671
675
  insertPageNumber: "Sisipkan nomor halaman saat ini",
672
676
  insertTotalPages: "Sisipkan jumlah total halaman",
@@ -695,7 +699,15 @@ var id_default = {
695
699
  externalResource: "Gambar eksternal tidak dimuat",
696
700
  invalidResource: "Gambar tidak valid",
697
701
  missingResource: "Gambar hilang",
698
- nonPictureGraphic: "Grafik tidak didukung ({kind})",
702
+ placeholder: {
703
+ chart: "Bagan tidak ditampilkan",
704
+ diagram: "Diagram tidak didukung",
705
+ shape: "Bentuk tidak didukung",
706
+ group: "Grup bentuk tidak didukung",
707
+ textbox: "Kotak teks tidak didukung",
708
+ canvas: "Kanvas gambar tidak didukung",
709
+ graphic: "Grafik tidak didukung"
710
+ },
699
711
  pendingResource: "Memuat gambar",
700
712
  resourceLimit: "Gambar melebihi batas ukuran",
701
713
  unsupportedFormat: "Format gambar tidak didukung ({format})"
@@ -711,7 +723,9 @@ var id_default = {
711
723
  sw: "Ubah ukuran sudut kiri bawah",
712
724
  w: "Ubah ukuran tepi kiri"
713
725
  },
714
- selection: "Gambar yang dipilih"
726
+ selection: "Gambar yang dipilih",
727
+ locked: "Kotak ini tidak dapat dipindahkan atau diubah ukurannya",
728
+ textLocked: "Teks dalam kotak ini tidak dapat diedit"
715
729
  },
716
730
  ruler: {
717
731
  horizontal: "Penggaris Horizontal",
@@ -885,7 +899,7 @@ var id_default = {
885
899
  review: {
886
900
  accept: "Terima",
887
901
  ariaLabel: "Tinjau",
888
- commentRefused: "Tidak dapat menambahkan komentar",
902
+ commentRefused: "Tidak dapat menambahkan komentar.",
889
903
  deleted: "Dihapus",
890
904
  empty: "Tidak ada perubahan atau komentar",
891
905
  inserted: "Ditambahkan",
@@ -895,13 +909,19 @@ var id_default = {
895
909
  replaced: "Diganti",
896
910
  replacedWith: "dengan",
897
911
  reply: "Balas",
898
- replyRefused: "Tidak dapat mengirim balasan",
912
+ replyRefused: "Tidak dapat mengirim balasan.",
899
913
  refusedRefresh: "Dokumen sedang dimuat ulang. Coba lagi sebentar lagi.",
900
- refusedViewing: "Dokumen dibuka untuk dilihat.",
901
- refusedProtected: "Bagian dokumen ini dilindungi.",
914
+ refusedViewing: "Dokumen dibuka untuk dilihat. Beralih ke mode edit atau saran terlebih dahulu.",
915
+ refusedProtected: "Bagian dokumen ini dilindungi. Minta pemilik dokumen untuk menghapus perlindungan.",
902
916
  refusedCollaboration: "Menunggu sesi bersama. Coba lagi sebentar lagi.",
903
917
  refusedSessionEnded: "Sesi bersama telah berakhir. Muat ulang dokumen untuk melanjutkan peninjauan.",
904
- actionRefused: "Tidak dapat membuat perubahan ini",
918
+ refusedRetainedStructure: "Baris ini tetap ada karena berisi tabel yang barisnya tidak dilacak. Untuk menghapusnya, hapus baris saat pelacakan perubahan nonaktif.",
919
+ refusedIncompleteGroup: "Perubahan ini hanya dapat diselesaikan bersama perubahan lain, misalnya baris terhapus yang memuatnya atau perubahan yang disembunyikan filter. Putuskan perubahan tersebut terlebih dahulu, atau hapus filter.",
920
+ refusedUnsupported: "Editor tidak dapat membuat keputusan ini untuk perubahan ini. Biarkan perubahannya, atau edit konten dengan pelacakan perubahan dimatikan.",
921
+ refusedStale: "Perubahan ini sudah diterima, ditolak, atau diubah. Periksa daftar perubahan saat ini.",
922
+ refusedLockedContent: "Kontrol konten mengunci teks ini, sehingga keputusan ini akan mengubah konten yang terkunci. Minta pemilik dokumen untuk menghapus kuncinya.",
923
+ refusedBoundContent: "Perubahan ini ada di kontrol konten yang terhubung ke data eksternal, sehingga tidak dapat diterima atau ditolak di sini. Minta pemilik dokumen untuk memperbarui data yang terhubung.",
924
+ actionRefused: "Tidak dapat membuat perubahan ini.",
905
925
  showPane: "Tampilkan komentar",
906
926
  structural: "Struktur dokumen diubah",
907
927
  deleteComment: "Hapus komentar",
@@ -965,6 +985,13 @@ var id_default = {
965
985
  verticalOffset: "Offset vertikal"
966
986
  },
967
987
  disabledReason: {
988
+ noReviewChanges: "Tidak ada perubahan untuk ditinjau.",
989
+ reviewHiddenChanges: "Ini juga akan menyelesaikan perubahan yang disembunyikan filter. Hapus filter untuk meninjaunya terlebih dahulu.",
990
+ reviewOtherChanges: "Ini juga akan menyelesaikan perubahan yang tidak Anda pilih. Putuskan setiap perubahan secara terpisah.",
991
+ reviewUnresolvable: "Tidak ada perubahan yang ditampilkan yang dapat diselesaikan. Buka perubahan untuk melihat alasannya.",
992
+ reviewSomeUnresolvable: "Beberapa perubahan yang dipilih tidak dapat diselesaikan. Buka sebuah perubahan untuk melihat alasannya, atau putuskan perubahan lainnya tanpa mewajibkan semuanya.",
993
+ reviewLockedChanges: "Kontrol konten mengunci semua perubahan yang tersisa, sehingga tindakan ini akan mengubah konten yang terkunci. Minta pemilik dokumen untuk menghapus kuncinya.",
994
+ reviewBoundChanges: "Semua perubahan yang tersisa ada di kontrol konten yang terhubung ke data eksternal, sehingga tidak dapat diterima atau ditolak di sini. Minta pemilik dokumen untuk memperbarui data yang terhubung.",
968
995
  commentSelection: "Pilih rentang sebelum menambahkan komentar",
969
996
  noCommentDraftView: "Komentar tidak dapat ditambahkan di sini",
970
997
  mergeUnsupported: "Penggabungan sel tidak didukung",
@@ -1007,7 +1034,9 @@ var id_default = {
1007
1034
  nothingToPaint: "Pilih teks yang akan diberi pemformatan",
1008
1035
  noReviewAuthors: "Dokumen ini tidak memiliki penulis tinjauan",
1009
1036
  suggestingNeedsAuthor: "Mode saran memerlukan penulis. Tetapkan penulis dalam konfigurasi editor.",
1010
- pictureSelected: "Sebuah gambar dipilih. Letakkan kursor di teks untuk menyisipkan gambar."
1037
+ pictureSelected: "Sebuah gambar dipilih. Letakkan kursor di teks untuk menyisipkan gambar.",
1038
+ chartDrawing: "Ini adalah bagan. Anda dapat menghapusnya, tetapi tidak dapat mengeditnya sebagai gambar.",
1039
+ chartClipboard: "Pilihan berisi bagan. Bagan tidak dapat disalin, dipotong, atau ditempel."
1011
1040
  },
1012
1041
  equationPopup: {
1013
1042
  apply: "Terapkan",
package/dist/id.mjs CHANGED
@@ -640,6 +640,10 @@ var id_default = {
640
640
  headerFooter: {
641
641
  header: "Header",
642
642
  footer: "Footer",
643
+ addHeaderHint: "Klik dua kali untuk menambahkan header",
644
+ addFooterHint: "Klik dua kali untuk menambahkan footer",
645
+ editHeaderHint: "Klik dua kali untuk mengedit header",
646
+ editFooterHint: "Klik dua kali untuk mengedit footer",
643
647
  options: "Opsi",
644
648
  insertPageNumber: "Sisipkan nomor halaman saat ini",
645
649
  insertTotalPages: "Sisipkan jumlah total halaman",
@@ -668,7 +672,15 @@ var id_default = {
668
672
  externalResource: "Gambar eksternal tidak dimuat",
669
673
  invalidResource: "Gambar tidak valid",
670
674
  missingResource: "Gambar hilang",
671
- nonPictureGraphic: "Grafik tidak didukung ({kind})",
675
+ placeholder: {
676
+ chart: "Bagan tidak ditampilkan",
677
+ diagram: "Diagram tidak didukung",
678
+ shape: "Bentuk tidak didukung",
679
+ group: "Grup bentuk tidak didukung",
680
+ textbox: "Kotak teks tidak didukung",
681
+ canvas: "Kanvas gambar tidak didukung",
682
+ graphic: "Grafik tidak didukung"
683
+ },
672
684
  pendingResource: "Memuat gambar",
673
685
  resourceLimit: "Gambar melebihi batas ukuran",
674
686
  unsupportedFormat: "Format gambar tidak didukung ({format})"
@@ -684,7 +696,9 @@ var id_default = {
684
696
  sw: "Ubah ukuran sudut kiri bawah",
685
697
  w: "Ubah ukuran tepi kiri"
686
698
  },
687
- selection: "Gambar yang dipilih"
699
+ selection: "Gambar yang dipilih",
700
+ locked: "Kotak ini tidak dapat dipindahkan atau diubah ukurannya",
701
+ textLocked: "Teks dalam kotak ini tidak dapat diedit"
688
702
  },
689
703
  ruler: {
690
704
  horizontal: "Penggaris Horizontal",
@@ -858,7 +872,7 @@ var id_default = {
858
872
  review: {
859
873
  accept: "Terima",
860
874
  ariaLabel: "Tinjau",
861
- commentRefused: "Tidak dapat menambahkan komentar",
875
+ commentRefused: "Tidak dapat menambahkan komentar.",
862
876
  deleted: "Dihapus",
863
877
  empty: "Tidak ada perubahan atau komentar",
864
878
  inserted: "Ditambahkan",
@@ -868,13 +882,19 @@ var id_default = {
868
882
  replaced: "Diganti",
869
883
  replacedWith: "dengan",
870
884
  reply: "Balas",
871
- replyRefused: "Tidak dapat mengirim balasan",
885
+ replyRefused: "Tidak dapat mengirim balasan.",
872
886
  refusedRefresh: "Dokumen sedang dimuat ulang. Coba lagi sebentar lagi.",
873
- refusedViewing: "Dokumen dibuka untuk dilihat.",
874
- refusedProtected: "Bagian dokumen ini dilindungi.",
887
+ refusedViewing: "Dokumen dibuka untuk dilihat. Beralih ke mode edit atau saran terlebih dahulu.",
888
+ refusedProtected: "Bagian dokumen ini dilindungi. Minta pemilik dokumen untuk menghapus perlindungan.",
875
889
  refusedCollaboration: "Menunggu sesi bersama. Coba lagi sebentar lagi.",
876
890
  refusedSessionEnded: "Sesi bersama telah berakhir. Muat ulang dokumen untuk melanjutkan peninjauan.",
877
- actionRefused: "Tidak dapat membuat perubahan ini",
891
+ refusedRetainedStructure: "Baris ini tetap ada karena berisi tabel yang barisnya tidak dilacak. Untuk menghapusnya, hapus baris saat pelacakan perubahan nonaktif.",
892
+ refusedIncompleteGroup: "Perubahan ini hanya dapat diselesaikan bersama perubahan lain, misalnya baris terhapus yang memuatnya atau perubahan yang disembunyikan filter. Putuskan perubahan tersebut terlebih dahulu, atau hapus filter.",
893
+ refusedUnsupported: "Editor tidak dapat membuat keputusan ini untuk perubahan ini. Biarkan perubahannya, atau edit konten dengan pelacakan perubahan dimatikan.",
894
+ refusedStale: "Perubahan ini sudah diterima, ditolak, atau diubah. Periksa daftar perubahan saat ini.",
895
+ refusedLockedContent: "Kontrol konten mengunci teks ini, sehingga keputusan ini akan mengubah konten yang terkunci. Minta pemilik dokumen untuk menghapus kuncinya.",
896
+ refusedBoundContent: "Perubahan ini ada di kontrol konten yang terhubung ke data eksternal, sehingga tidak dapat diterima atau ditolak di sini. Minta pemilik dokumen untuk memperbarui data yang terhubung.",
897
+ actionRefused: "Tidak dapat membuat perubahan ini.",
878
898
  showPane: "Tampilkan komentar",
879
899
  structural: "Struktur dokumen diubah",
880
900
  deleteComment: "Hapus komentar",
@@ -938,6 +958,13 @@ var id_default = {
938
958
  verticalOffset: "Offset vertikal"
939
959
  },
940
960
  disabledReason: {
961
+ noReviewChanges: "Tidak ada perubahan untuk ditinjau.",
962
+ reviewHiddenChanges: "Ini juga akan menyelesaikan perubahan yang disembunyikan filter. Hapus filter untuk meninjaunya terlebih dahulu.",
963
+ reviewOtherChanges: "Ini juga akan menyelesaikan perubahan yang tidak Anda pilih. Putuskan setiap perubahan secara terpisah.",
964
+ reviewUnresolvable: "Tidak ada perubahan yang ditampilkan yang dapat diselesaikan. Buka perubahan untuk melihat alasannya.",
965
+ reviewSomeUnresolvable: "Beberapa perubahan yang dipilih tidak dapat diselesaikan. Buka sebuah perubahan untuk melihat alasannya, atau putuskan perubahan lainnya tanpa mewajibkan semuanya.",
966
+ reviewLockedChanges: "Kontrol konten mengunci semua perubahan yang tersisa, sehingga tindakan ini akan mengubah konten yang terkunci. Minta pemilik dokumen untuk menghapus kuncinya.",
967
+ reviewBoundChanges: "Semua perubahan yang tersisa ada di kontrol konten yang terhubung ke data eksternal, sehingga tidak dapat diterima atau ditolak di sini. Minta pemilik dokumen untuk memperbarui data yang terhubung.",
941
968
  commentSelection: "Pilih rentang sebelum menambahkan komentar",
942
969
  noCommentDraftView: "Komentar tidak dapat ditambahkan di sini",
943
970
  mergeUnsupported: "Penggabungan sel tidak didukung",
@@ -980,7 +1007,9 @@ var id_default = {
980
1007
  nothingToPaint: "Pilih teks yang akan diberi pemformatan",
981
1008
  noReviewAuthors: "Dokumen ini tidak memiliki penulis tinjauan",
982
1009
  suggestingNeedsAuthor: "Mode saran memerlukan penulis. Tetapkan penulis dalam konfigurasi editor.",
983
- pictureSelected: "Sebuah gambar dipilih. Letakkan kursor di teks untuk menyisipkan gambar."
1010
+ pictureSelected: "Sebuah gambar dipilih. Letakkan kursor di teks untuk menyisipkan gambar.",
1011
+ chartDrawing: "Ini adalah bagan. Anda dapat menghapusnya, tetapi tidak dapat mengeditnya sebagai gambar.",
1012
+ chartClipboard: "Pilihan berisi bagan. Bagan tidak dapat disalin, dipotong, atau ditempel."
984
1013
  },
985
1014
  equationPopup: {
986
1015
  apply: "Terapkan",
package/dist/index.d.mts CHANGED
@@ -34,6 +34,13 @@ declare const enJson: {
34
34
  dismiss: string;
35
35
  };
36
36
  disabledReason: {
37
+ noReviewChanges: string;
38
+ reviewHiddenChanges: string;
39
+ reviewOtherChanges: string;
40
+ reviewUnresolvable: string;
41
+ reviewSomeUnresolvable: string;
42
+ reviewLockedChanges: string;
43
+ reviewBoundChanges: string;
37
44
  contentLocked: string;
38
45
  editorNotReady: string;
39
46
  notWired: string;
@@ -65,6 +72,8 @@ declare const enJson: {
65
72
  equationSuggesting: string;
66
73
  equationSuggestingDisplay: string;
67
74
  pictureSelected: string;
75
+ chartDrawing: string;
76
+ chartClipboard: string;
68
77
  invalidValue: string;
69
78
  unavailable: string;
70
79
  bodyOnlySectionBreak: string;
@@ -875,6 +884,10 @@ declare const enJson: {
875
884
  chromeAriaLabel: string;
876
885
  header: string;
877
886
  footer: string;
887
+ addHeaderHint: string;
888
+ addFooterHint: string;
889
+ editHeaderHint: string;
890
+ editFooterHint: string;
878
891
  firstPageHeader: string;
879
892
  firstPageFooter: string;
880
893
  evenPageHeader: string;
@@ -907,7 +920,15 @@ declare const enJson: {
907
920
  };
908
921
  image: {
909
922
  unsupportedFormat: string;
910
- nonPictureGraphic: string;
923
+ placeholder: {
924
+ chart: string;
925
+ diagram: string;
926
+ shape: string;
927
+ group: string;
928
+ textbox: string;
929
+ canvas: string;
930
+ graphic: string;
931
+ };
911
932
  missingResource: string;
912
933
  externalResource: string;
913
934
  invalidResource: string;
@@ -918,6 +939,8 @@ declare const enJson: {
918
939
  };
919
940
  imageOverlay: {
920
941
  selection: string;
942
+ locked: string;
943
+ textLocked: string;
921
944
  handle: {
922
945
  n: string;
923
946
  ne: string;
@@ -1029,6 +1052,12 @@ declare const enJson: {
1029
1052
  refusedProtected: string;
1030
1053
  refusedCollaboration: string;
1031
1054
  refusedSessionEnded: string;
1055
+ refusedRetainedStructure: string;
1056
+ refusedIncompleteGroup: string;
1057
+ refusedUnsupported: string;
1058
+ refusedStale: string;
1059
+ refusedLockedContent: string;
1060
+ refusedBoundContent: string;
1032
1061
  actionRefused: string;
1033
1062
  showPane: string;
1034
1063
  resolved: string;
@@ -1156,6 +1185,52 @@ declare const enJson: {
1156
1185
  */
1157
1186
  declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
1158
1187
 
1188
+ /**
1189
+ * The writing direction of a BCP-47 language tag: `'rtl'` for Arabic, Hebrew, Persian,
1190
+ * Urdu, and other right-to-left languages, `'ltr'` otherwise. A script subtag decides
1191
+ * when present, so `az-Arab` is right to left and `ku-Latn` is left to right. An absent
1192
+ * or malformed tag is left to right.
1193
+ *
1194
+ * The editor adapters read the active catalog's `_lang` with this function and mirror
1195
+ * their controls for a right-to-left catalog. Composed hosts that render their own
1196
+ * wrapper can call it to set `dir` on that wrapper:
1197
+ *
1198
+ * ```tsx
1199
+ * <div dir={localeDirection(ar._lang)}>...</div>
1200
+ * ```
1201
+ *
1202
+ * @public
1203
+ */
1204
+ declare function localeDirection(tag: string | null | undefined): 'ltr' | 'rtl';
1205
+ /**
1206
+ * The writing direction of a locale catalog: its `_dir` when that is `'ltr'` or `'rtl'`,
1207
+ * otherwise the direction of its `_lang` tag. A catalog that declares neither returns
1208
+ * `undefined`, so a provider can keep the direction it inherits.
1209
+ *
1210
+ * The shipped Arabic and Hebrew catalogs declare `_dir: 'rtl'`. Declare it in your own
1211
+ * catalog to mirror the editor chrome for another right-to-left language.
1212
+ *
1213
+ * @public
1214
+ */
1215
+ declare function catalogDirection(catalog: {
1216
+ readonly _lang?: unknown;
1217
+ readonly _dir?: unknown;
1218
+ } | null | undefined): 'ltr' | 'rtl' | undefined;
1219
+ /**
1220
+ * The direction a locale provider decides for the editor chrome: its `dir` prop, then the
1221
+ * catalog's `_dir`, then a right-to-left `_lang`, then the direction an outer provider
1222
+ * decided. A left-to-right `_lang` alone decides nothing, so the shipped left-to-right
1223
+ * catalogs keep the host page direction. `undefined` means the chrome inherits the host page.
1224
+ *
1225
+ * Both editor adapters use this rule, so a custom provider of your own can match them.
1226
+ *
1227
+ * @public
1228
+ */
1229
+ declare function chromeDirection(dir: 'ltr' | 'rtl' | undefined, catalog: {
1230
+ readonly _lang?: unknown;
1231
+ readonly _dir?: unknown;
1232
+ } | null | undefined, inherited: 'ltr' | 'rtl' | undefined): 'ltr' | 'rtl' | undefined;
1233
+
1159
1234
  /**
1160
1235
  * Whether this browser is running on an Apple platform.
1161
1236
  *
@@ -1222,9 +1297,11 @@ type LocaleStrings = typeof enJson;
1222
1297
  *
1223
1298
  * @public
1224
1299
  */
1225
- type LocaleCode = 'en' | 'de' | 'es' | 'fr' | 'he' | 'hi' | 'id' | 'ja' | 'pl' | 'pt-BR' | 'ru' | 'tr' | 'zh-CN';
1300
+ type LocaleCode = 'en' | 'ar' | 'de' | 'es' | 'fr' | 'he' | 'hi' | 'id' | 'ja' | 'pl' | 'pt-BR' | 'ru' | 'tr' | 'zh-CN';
1226
1301
  /** English (`en`) — the source of truth, 100% covered. @public */
1227
1302
  declare const en: LocaleStrings;
1303
+ /** Arabic (`ar`). Community-maintained; null leaves fall back to English. @public */
1304
+ declare const ar: PartialLocaleStrings;
1228
1305
  /** German (`de`). Community-maintained; null leaves fall back to English. @public */
1229
1306
  declare const de: PartialLocaleStrings;
1230
1307
  /** Spanish (`es`). Community-maintained; null leaves fall back to English. @public */
@@ -1285,6 +1362,12 @@ type DeepPartial<T> = {
1285
1362
  */
1286
1363
  type PartialLocaleStrings = DeepPartial<LocaleStrings> & {
1287
1364
  _lang?: LocaleCode | (string & {});
1365
+ /**
1366
+ * The writing direction of the interface strings. `'rtl'` mirrors the editor chrome, as
1367
+ * the shipped Arabic (`ar`) and Hebrew (`he`) catalogs do. Without it, the direction
1368
+ * follows `_lang` (see {@link localeDirection}).
1369
+ */
1370
+ _dir?: 'ltr' | 'rtl' | (string & {});
1288
1371
  };
1289
1372
  /**
1290
1373
  * Alias for `PartialLocaleStrings`. Prefer this name when typing the
@@ -1349,5 +1432,5 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
1349
1432
  */
1350
1433
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
1351
1434
 
1352
- export { createT, de, deepMerge, en, es, fr, he, hi, id, isApplePlatform, ja, locales, localizeDisabledReason, pl, platformShortcut, ptBR, ru, tr, zhCN };
1435
+ export { ar, catalogDirection, chromeDirection, createT, de, deepMerge, en, es, fr, he, hi, id, isApplePlatform, ja, localeDirection, locales, localizeDisabledReason, pl, platformShortcut, ptBR, ru, tr, zhCN };
1353
1436
  export type { DeepPartial, LocaleCode, LocaleStrings, PartialLocaleStrings, TFunction, TranslationKey, Translations };
package/dist/index.d.ts CHANGED
@@ -34,6 +34,13 @@ declare const enJson: {
34
34
  dismiss: string;
35
35
  };
36
36
  disabledReason: {
37
+ noReviewChanges: string;
38
+ reviewHiddenChanges: string;
39
+ reviewOtherChanges: string;
40
+ reviewUnresolvable: string;
41
+ reviewSomeUnresolvable: string;
42
+ reviewLockedChanges: string;
43
+ reviewBoundChanges: string;
37
44
  contentLocked: string;
38
45
  editorNotReady: string;
39
46
  notWired: string;
@@ -65,6 +72,8 @@ declare const enJson: {
65
72
  equationSuggesting: string;
66
73
  equationSuggestingDisplay: string;
67
74
  pictureSelected: string;
75
+ chartDrawing: string;
76
+ chartClipboard: string;
68
77
  invalidValue: string;
69
78
  unavailable: string;
70
79
  bodyOnlySectionBreak: string;
@@ -875,6 +884,10 @@ declare const enJson: {
875
884
  chromeAriaLabel: string;
876
885
  header: string;
877
886
  footer: string;
887
+ addHeaderHint: string;
888
+ addFooterHint: string;
889
+ editHeaderHint: string;
890
+ editFooterHint: string;
878
891
  firstPageHeader: string;
879
892
  firstPageFooter: string;
880
893
  evenPageHeader: string;
@@ -907,7 +920,15 @@ declare const enJson: {
907
920
  };
908
921
  image: {
909
922
  unsupportedFormat: string;
910
- nonPictureGraphic: string;
923
+ placeholder: {
924
+ chart: string;
925
+ diagram: string;
926
+ shape: string;
927
+ group: string;
928
+ textbox: string;
929
+ canvas: string;
930
+ graphic: string;
931
+ };
911
932
  missingResource: string;
912
933
  externalResource: string;
913
934
  invalidResource: string;
@@ -918,6 +939,8 @@ declare const enJson: {
918
939
  };
919
940
  imageOverlay: {
920
941
  selection: string;
942
+ locked: string;
943
+ textLocked: string;
921
944
  handle: {
922
945
  n: string;
923
946
  ne: string;
@@ -1029,6 +1052,12 @@ declare const enJson: {
1029
1052
  refusedProtected: string;
1030
1053
  refusedCollaboration: string;
1031
1054
  refusedSessionEnded: string;
1055
+ refusedRetainedStructure: string;
1056
+ refusedIncompleteGroup: string;
1057
+ refusedUnsupported: string;
1058
+ refusedStale: string;
1059
+ refusedLockedContent: string;
1060
+ refusedBoundContent: string;
1032
1061
  actionRefused: string;
1033
1062
  showPane: string;
1034
1063
  resolved: string;
@@ -1156,6 +1185,52 @@ declare const enJson: {
1156
1185
  */
1157
1186
  declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
1158
1187
 
1188
+ /**
1189
+ * The writing direction of a BCP-47 language tag: `'rtl'` for Arabic, Hebrew, Persian,
1190
+ * Urdu, and other right-to-left languages, `'ltr'` otherwise. A script subtag decides
1191
+ * when present, so `az-Arab` is right to left and `ku-Latn` is left to right. An absent
1192
+ * or malformed tag is left to right.
1193
+ *
1194
+ * The editor adapters read the active catalog's `_lang` with this function and mirror
1195
+ * their controls for a right-to-left catalog. Composed hosts that render their own
1196
+ * wrapper can call it to set `dir` on that wrapper:
1197
+ *
1198
+ * ```tsx
1199
+ * <div dir={localeDirection(ar._lang)}>...</div>
1200
+ * ```
1201
+ *
1202
+ * @public
1203
+ */
1204
+ declare function localeDirection(tag: string | null | undefined): 'ltr' | 'rtl';
1205
+ /**
1206
+ * The writing direction of a locale catalog: its `_dir` when that is `'ltr'` or `'rtl'`,
1207
+ * otherwise the direction of its `_lang` tag. A catalog that declares neither returns
1208
+ * `undefined`, so a provider can keep the direction it inherits.
1209
+ *
1210
+ * The shipped Arabic and Hebrew catalogs declare `_dir: 'rtl'`. Declare it in your own
1211
+ * catalog to mirror the editor chrome for another right-to-left language.
1212
+ *
1213
+ * @public
1214
+ */
1215
+ declare function catalogDirection(catalog: {
1216
+ readonly _lang?: unknown;
1217
+ readonly _dir?: unknown;
1218
+ } | null | undefined): 'ltr' | 'rtl' | undefined;
1219
+ /**
1220
+ * The direction a locale provider decides for the editor chrome: its `dir` prop, then the
1221
+ * catalog's `_dir`, then a right-to-left `_lang`, then the direction an outer provider
1222
+ * decided. A left-to-right `_lang` alone decides nothing, so the shipped left-to-right
1223
+ * catalogs keep the host page direction. `undefined` means the chrome inherits the host page.
1224
+ *
1225
+ * Both editor adapters use this rule, so a custom provider of your own can match them.
1226
+ *
1227
+ * @public
1228
+ */
1229
+ declare function chromeDirection(dir: 'ltr' | 'rtl' | undefined, catalog: {
1230
+ readonly _lang?: unknown;
1231
+ readonly _dir?: unknown;
1232
+ } | null | undefined, inherited: 'ltr' | 'rtl' | undefined): 'ltr' | 'rtl' | undefined;
1233
+
1159
1234
  /**
1160
1235
  * Whether this browser is running on an Apple platform.
1161
1236
  *
@@ -1222,9 +1297,11 @@ type LocaleStrings = typeof enJson;
1222
1297
  *
1223
1298
  * @public
1224
1299
  */
1225
- type LocaleCode = 'en' | 'de' | 'es' | 'fr' | 'he' | 'hi' | 'id' | 'ja' | 'pl' | 'pt-BR' | 'ru' | 'tr' | 'zh-CN';
1300
+ type LocaleCode = 'en' | 'ar' | 'de' | 'es' | 'fr' | 'he' | 'hi' | 'id' | 'ja' | 'pl' | 'pt-BR' | 'ru' | 'tr' | 'zh-CN';
1226
1301
  /** English (`en`) — the source of truth, 100% covered. @public */
1227
1302
  declare const en: LocaleStrings;
1303
+ /** Arabic (`ar`). Community-maintained; null leaves fall back to English. @public */
1304
+ declare const ar: PartialLocaleStrings;
1228
1305
  /** German (`de`). Community-maintained; null leaves fall back to English. @public */
1229
1306
  declare const de: PartialLocaleStrings;
1230
1307
  /** Spanish (`es`). Community-maintained; null leaves fall back to English. @public */
@@ -1285,6 +1362,12 @@ type DeepPartial<T> = {
1285
1362
  */
1286
1363
  type PartialLocaleStrings = DeepPartial<LocaleStrings> & {
1287
1364
  _lang?: LocaleCode | (string & {});
1365
+ /**
1366
+ * The writing direction of the interface strings. `'rtl'` mirrors the editor chrome, as
1367
+ * the shipped Arabic (`ar`) and Hebrew (`he`) catalogs do. Without it, the direction
1368
+ * follows `_lang` (see {@link localeDirection}).
1369
+ */
1370
+ _dir?: 'ltr' | 'rtl' | (string & {});
1288
1371
  };
1289
1372
  /**
1290
1373
  * Alias for `PartialLocaleStrings`. Prefer this name when typing the
@@ -1349,5 +1432,5 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
1349
1432
  */
1350
1433
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
1351
1434
 
1352
- export { createT, de, deepMerge, en, es, fr, he, hi, id, isApplePlatform, ja, locales, localizeDisabledReason, pl, platformShortcut, ptBR, ru, tr, zhCN };
1435
+ export { ar, catalogDirection, chromeDirection, createT, de, deepMerge, en, es, fr, he, hi, id, isApplePlatform, ja, localeDirection, locales, localizeDisabledReason, pl, platformShortcut, ptBR, ru, tr, zhCN };
1353
1436
  export type { DeepPartial, LocaleCode, LocaleStrings, PartialLocaleStrings, TFunction, TranslationKey, Translations };