@docx-editor.dev/i18n 2.23.0 → 2.24.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
@@ -14,7 +14,7 @@
14
14
 
15
15
  # @docx-editor.dev/i18n
16
16
 
17
- Translate [docx-editor.dev](https://docx-editor.dev) controls with locale strings, types, and runtime helpers. The package provides eleven languages and falls back to English for missing translations.
17
+ Translate [docx-editor.dev](https://docx-editor.dev) controls with locale strings, types, and runtime helpers. The package provides twelve languages and falls back to English for missing translations.
18
18
 
19
19
  ## Quick start
20
20
 
@@ -72,6 +72,7 @@ Missing or `null` keys keep the inherited catalog value. Without an outer `Local
72
72
  | `he` | `he` | Hebrew |
73
73
  | `hi` | `hi` | Hindi |
74
74
  | `id` | `id` | Indonesian |
75
+ | `ja` | `ja` | Japanese |
75
76
  | `pl` | `pl` | Polish |
76
77
  | `pt-BR` | `ptBR` | Portuguese (Brazil) |
77
78
  | `tr` | `tr` | Turkish |
@@ -104,7 +105,7 @@ For on-demand loading, use a dynamic import instead:
104
105
  const pl = (await import('@docx-editor.dev/i18n/pl')).default;
105
106
  ```
106
107
 
107
- Subpaths ship for every locale: `/en`, `/de`, `/es`, `/fr`, `/he`, `/hi`, `/id`, `/pl`, `/pt-BR`, `/tr`, `/zh-CN`. Each also exports its locale as a named binding (`import { pl } from '@docx-editor.dev/i18n/pl'`) for callers that prefer non-default imports.
108
+ Subpaths ship for every locale: `/en`, `/de`, `/es`, `/fr`, `/he`, `/hi`, `/id`, `/ja`, `/pl`, `/pt-BR`, `/tr`, `/zh-CN`. Each also exports its locale as a named binding (`import { pl } from '@docx-editor.dev/i18n/pl'`) for callers that prefer non-default imports.
108
109
 
109
110
  ## Types
110
111
 
package/dist/de.js CHANGED
@@ -83,7 +83,8 @@ var de_default = {
83
83
  printPreparing: "Druck wird vorbereitet…",
84
84
  printNoViewer: "Dieser Browser kann PDF-Dateien nicht von der Seite aus drucken. Wählen Sie „PDF öffnen“ und drucken Sie anschließend im PDF-Anzeigeprogramm.",
85
85
  printLoadFailed: "Die PDF-Datei konnte zum Drucken nicht geladen werden. Wählen Sie „PDF öffnen“ und drucken Sie anschließend im PDF-Anzeigeprogramm.",
86
- printRefused: "Der Browser hat das Drucken von der Seite aus nicht zugelassen. Wählen Sie „PDF öffnen“ und drucken Sie anschließend im PDF-Anzeigeprogramm."
86
+ printRefused: "Der Browser hat das Drucken von der Seite aus nicht zugelassen. Wählen Sie „PDF öffnen“ und drucken Sie anschließend im PDF-Anzeigeprogramm.",
87
+ insertTextBox: "Textfeld"
87
88
  },
88
89
  formattingBar: {
89
90
  groups: {
package/dist/de.mjs CHANGED
@@ -56,7 +56,8 @@ var de_default = {
56
56
  printPreparing: "Druck wird vorbereitet…",
57
57
  printNoViewer: "Dieser Browser kann PDF-Dateien nicht von der Seite aus drucken. Wählen Sie „PDF öffnen“ und drucken Sie anschließend im PDF-Anzeigeprogramm.",
58
58
  printLoadFailed: "Die PDF-Datei konnte zum Drucken nicht geladen werden. Wählen Sie „PDF öffnen“ und drucken Sie anschließend im PDF-Anzeigeprogramm.",
59
- printRefused: "Der Browser hat das Drucken von der Seite aus nicht zugelassen. Wählen Sie „PDF öffnen“ und drucken Sie anschließend im PDF-Anzeigeprogramm."
59
+ printRefused: "Der Browser hat das Drucken von der Seite aus nicht zugelassen. Wählen Sie „PDF öffnen“ und drucken Sie anschließend im PDF-Anzeigeprogramm.",
60
+ insertTextBox: "Textfeld"
60
61
  },
61
62
  formattingBar: {
62
63
  groups: {
package/dist/en.js CHANGED
@@ -112,7 +112,8 @@ var en_default = {
112
112
  printLoadFailed: "The PDF did not load for printing. Select Open PDF, then print from the PDF viewer.",
113
113
  printRefused: "The browser did not allow printing from the page. Select Open PDF, then print from the PDF viewer.",
114
114
  printNoViewer: "This browser cannot print PDF files from the page. Select Open PDF, then print from the PDF viewer.",
115
- printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf."
115
+ printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf.",
116
+ insertTextBox: "Text Box"
116
117
  },
117
118
  toc: {
118
119
  refresh: "Refresh table of contents",
package/dist/en.mjs CHANGED
@@ -85,7 +85,8 @@ var en_default = {
85
85
  printLoadFailed: "The PDF did not load for printing. Select Open PDF, then print from the PDF viewer.",
86
86
  printRefused: "The browser did not allow printing from the page. Select Open PDF, then print from the PDF viewer.",
87
87
  printNoViewer: "This browser cannot print PDF files from the page. Select Open PDF, then print from the PDF viewer.",
88
- printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf."
88
+ printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf.",
89
+ insertTextBox: "Text Box"
89
90
  },
90
91
  toc: {
91
92
  refresh: "Refresh table of contents",
package/dist/es.js CHANGED
@@ -112,7 +112,8 @@ var es_default = {
112
112
  printLoadFailed: "El PDF no se cargó para imprimir. Selecciona Abrir PDF e imprime desde el visor de PDF.",
113
113
  printRefused: "El navegador no permitió imprimir desde la página. Selecciona Abrir PDF e imprime desde el visor de PDF.",
114
114
  printNoViewer: "Este navegador no puede imprimir archivos PDF desde la página. Selecciona Abrir PDF e imprime desde el visor de PDF.",
115
- printPdfMissing: "La impresión usa la conversión a PDF. Instala @docx-editor.dev/docx-to-pdf en tu servidor Node.js y configura menu.exporters.pdf."
115
+ printPdfMissing: "La impresión usa la conversión a PDF. Instala @docx-editor.dev/docx-to-pdf en tu servidor Node.js y configura menu.exporters.pdf.",
116
+ insertTextBox: "Cuadro de texto"
116
117
  },
117
118
  toc: {
118
119
  refresh: "Actualizar tabla de contenido",
package/dist/es.mjs CHANGED
@@ -85,7 +85,8 @@ var es_default = {
85
85
  printLoadFailed: "El PDF no se cargó para imprimir. Selecciona Abrir PDF e imprime desde el visor de PDF.",
86
86
  printRefused: "El navegador no permitió imprimir desde la página. Selecciona Abrir PDF e imprime desde el visor de PDF.",
87
87
  printNoViewer: "Este navegador no puede imprimir archivos PDF desde la página. Selecciona Abrir PDF e imprime desde el visor de PDF.",
88
- printPdfMissing: "La impresión usa la conversión a PDF. Instala @docx-editor.dev/docx-to-pdf en tu servidor Node.js y configura menu.exporters.pdf."
88
+ printPdfMissing: "La impresión usa la conversión a PDF. Instala @docx-editor.dev/docx-to-pdf en tu servidor Node.js y configura menu.exporters.pdf.",
89
+ insertTextBox: "Cuadro de texto"
89
90
  },
90
91
  toc: {
91
92
  refresh: "Actualizar tabla de contenido",
package/dist/fr.js CHANGED
@@ -83,7 +83,8 @@ var fr_default = {
83
83
  printPreparing: "Préparation de l’impression…",
84
84
  printNoViewer: "Ce navigateur ne peut pas imprimer de fichiers PDF depuis la page. Sélectionnez « Ouvrir le PDF », puis imprimez depuis le lecteur PDF.",
85
85
  printLoadFailed: "Le PDF n’a pas pu être chargé pour l’impression. Sélectionnez « Ouvrir le PDF », puis imprimez depuis le lecteur PDF.",
86
- printRefused: "Le navigateur a refusé l’impression depuis la page. Sélectionnez « Ouvrir le PDF », puis imprimez depuis le lecteur PDF."
86
+ printRefused: "Le navigateur a refusé l’impression depuis la page. Sélectionnez « Ouvrir le PDF », puis imprimez depuis le lecteur PDF.",
87
+ insertTextBox: "Zone de texte"
87
88
  },
88
89
  formattingBar: {
89
90
  groups: {
package/dist/fr.mjs CHANGED
@@ -56,7 +56,8 @@ var fr_default = {
56
56
  printPreparing: "Préparation de l’impression…",
57
57
  printNoViewer: "Ce navigateur ne peut pas imprimer de fichiers PDF depuis la page. Sélectionnez « Ouvrir le PDF », puis imprimez depuis le lecteur PDF.",
58
58
  printLoadFailed: "Le PDF n’a pas pu être chargé pour l’impression. Sélectionnez « Ouvrir le PDF », puis imprimez depuis le lecteur PDF.",
59
- printRefused: "Le navigateur a refusé l’impression depuis la page. Sélectionnez « Ouvrir le PDF », puis imprimez depuis le lecteur PDF."
59
+ printRefused: "Le navigateur a refusé l’impression depuis la page. Sélectionnez « Ouvrir le PDF », puis imprimez depuis le lecteur PDF.",
60
+ insertTextBox: "Zone de texte"
60
61
  },
61
62
  formattingBar: {
62
63
  groups: {
package/dist/he.js CHANGED
@@ -83,7 +83,8 @@ var he_default = {
83
83
  printPreparing: "מכין להדפסה…",
84
84
  printNoViewer: "דפדפן זה אינו יכול להדפיס קובצי PDF מתוך הדף. בחר פתח PDF ולאחר מכן הדפס מתוך מציג ה-PDF.",
85
85
  printLoadFailed: "ה-PDF לא נטען להדפסה. בחר פתח PDF ולאחר מכן הדפס מתוך מציג ה-PDF.",
86
- printRefused: "הדפדפן לא אפשר הדפסה מתוך הדף. בחר פתח PDF ולאחר מכן הדפס מתוך מציג ה-PDF."
86
+ printRefused: "הדפדפן לא אפשר הדפסה מתוך הדף. בחר פתח PDF ולאחר מכן הדפס מתוך מציג ה-PDF.",
87
+ insertTextBox: "תיבת טקסט"
87
88
  },
88
89
  formattingBar: {
89
90
  groups: {
package/dist/he.mjs CHANGED
@@ -56,7 +56,8 @@ var he_default = {
56
56
  printPreparing: "מכין להדפסה…",
57
57
  printNoViewer: "דפדפן זה אינו יכול להדפיס קובצי PDF מתוך הדף. בחר פתח PDF ולאחר מכן הדפס מתוך מציג ה-PDF.",
58
58
  printLoadFailed: "ה-PDF לא נטען להדפסה. בחר פתח PDF ולאחר מכן הדפס מתוך מציג ה-PDF.",
59
- printRefused: "הדפדפן לא אפשר הדפסה מתוך הדף. בחר פתח PDF ולאחר מכן הדפס מתוך מציג ה-PDF."
59
+ printRefused: "הדפדפן לא אפשר הדפסה מתוך הדף. בחר פתח PDF ולאחר מכן הדפס מתוך מציג ה-PDF.",
60
+ insertTextBox: "תיבת טקסט"
60
61
  },
61
62
  formattingBar: {
62
63
  groups: {
package/dist/hi.js CHANGED
@@ -83,7 +83,8 @@ var hi_default = {
83
83
  printPreparing: "प्रिंट की तैयारी हो रही है…",
84
84
  printNoViewer: "यह ब्राउज़र पृष्ठ से PDF फ़ाइलें प्रिंट नहीं कर सकता। PDF खोलें चुनें, फिर PDF व्यूअर से प्रिंट करें।",
85
85
  printLoadFailed: "प्रिंट के लिए PDF लोड नहीं हुआ। PDF खोलें चुनें, फिर PDF व्यूअर से प्रिंट करें।",
86
- printRefused: "ब्राउज़र ने पृष्ठ से प्रिंट की अनुमति नहीं दी। PDF खोलें चुनें, फिर PDF व्यूअर से प्रिंट करें।"
86
+ printRefused: "ब्राउज़र ने पृष्ठ से प्रिंट की अनुमति नहीं दी। PDF खोलें चुनें, फिर PDF व्यूअर से प्रिंट करें।",
87
+ insertTextBox: "टेक्स्ट बॉक्स"
87
88
  },
88
89
  formattingBar: {
89
90
  groups: {
package/dist/hi.mjs CHANGED
@@ -56,7 +56,8 @@ var hi_default = {
56
56
  printPreparing: "प्रिंट की तैयारी हो रही है…",
57
57
  printNoViewer: "यह ब्राउज़र पृष्ठ से PDF फ़ाइलें प्रिंट नहीं कर सकता। PDF खोलें चुनें, फिर PDF व्यूअर से प्रिंट करें।",
58
58
  printLoadFailed: "प्रिंट के लिए PDF लोड नहीं हुआ। PDF खोलें चुनें, फिर PDF व्यूअर से प्रिंट करें।",
59
- printRefused: "ब्राउज़र ने पृष्ठ से प्रिंट की अनुमति नहीं दी। PDF खोलें चुनें, फिर PDF व्यूअर से प्रिंट करें।"
59
+ printRefused: "ब्राउज़र ने पृष्ठ से प्रिंट की अनुमति नहीं दी। PDF खोलें चुनें, फिर PDF व्यूअर से प्रिंट करें।",
60
+ insertTextBox: "टेक्स्ट बॉक्स"
60
61
  },
61
62
  formattingBar: {
62
63
  groups: {
package/dist/id.js CHANGED
@@ -83,7 +83,8 @@ var id_default = {
83
83
  printPreparing: "Menyiapkan pencetakan…",
84
84
  printNoViewer: "Browser ini tidak dapat mencetak file PDF dari halaman. Pilih Buka PDF, lalu cetak dari penampil PDF.",
85
85
  printLoadFailed: "PDF tidak dapat dimuat untuk dicetak. Pilih Buka PDF, lalu cetak dari penampil PDF.",
86
- printRefused: "Browser tidak mengizinkan pencetakan dari halaman. Pilih Buka PDF, lalu cetak dari penampil PDF."
86
+ printRefused: "Browser tidak mengizinkan pencetakan dari halaman. Pilih Buka PDF, lalu cetak dari penampil PDF.",
87
+ insertTextBox: "Kotak Teks"
87
88
  },
88
89
  formattingBar: {
89
90
  groups: {
package/dist/id.mjs CHANGED
@@ -56,7 +56,8 @@ var id_default = {
56
56
  printPreparing: "Menyiapkan pencetakan…",
57
57
  printNoViewer: "Browser ini tidak dapat mencetak file PDF dari halaman. Pilih Buka PDF, lalu cetak dari penampil PDF.",
58
58
  printLoadFailed: "PDF tidak dapat dimuat untuk dicetak. Pilih Buka PDF, lalu cetak dari penampil PDF.",
59
- printRefused: "Browser tidak mengizinkan pencetakan dari halaman. Pilih Buka PDF, lalu cetak dari penampil PDF."
59
+ printRefused: "Browser tidak mengizinkan pencetakan dari halaman. Pilih Buka PDF, lalu cetak dari penampil PDF.",
60
+ insertTextBox: "Kotak Teks"
60
61
  },
61
62
  formattingBar: {
62
63
  groups: {
package/dist/index.d.mts CHANGED
@@ -109,7 +109,8 @@ var toolbar = {
109
109
  printLoadFailed: "The PDF did not load for printing. Select Open PDF, then print from the PDF viewer.",
110
110
  printRefused: "The browser did not allow printing from the page. Select Open PDF, then print from the PDF viewer.",
111
111
  printNoViewer: "This browser cannot print PDF files from the page. Select Open PDF, then print from the PDF viewer.",
112
- printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf."
112
+ printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf.",
113
+ insertTextBox: "Text Box"
113
114
  };
114
115
  var toc = {
115
116
  refresh: "Refresh table of contents",
@@ -1191,7 +1192,7 @@ type LocaleStrings = typeof enJson;
1191
1192
  *
1192
1193
  * @public
1193
1194
  */
1194
- type LocaleCode = 'en' | 'de' | 'es' | 'fr' | 'he' | 'hi' | 'id' | 'pl' | 'pt-BR' | 'tr' | 'zh-CN';
1195
+ type LocaleCode = 'en' | 'de' | 'es' | 'fr' | 'he' | 'hi' | 'id' | 'ja' | 'pl' | 'pt-BR' | 'tr' | 'zh-CN';
1195
1196
  /** English (`en`) — the source of truth, 100% covered. @public */
1196
1197
  declare const en: LocaleStrings;
1197
1198
  /** German (`de`). Community-maintained; null leaves fall back to English. @public */
@@ -1206,6 +1207,8 @@ declare const he: PartialLocaleStrings;
1206
1207
  declare const hi: PartialLocaleStrings;
1207
1208
  /** Indonesian (`id`). Community-maintained; null leaves fall back to English. @public */
1208
1209
  declare const id: PartialLocaleStrings;
1210
+ /** Japanese (`ja`). Community-maintained; null leaves fall back to English. @public */
1211
+ declare const ja: PartialLocaleStrings;
1209
1212
  /** Polish (`pl`). Community-maintained; null leaves fall back to English. @public */
1210
1213
  declare const pl: PartialLocaleStrings;
1211
1214
  /** Portuguese (Brazil) (`pt-BR`). Community-maintained; null leaves fall back to English. @public */
@@ -1314,4 +1317,4 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
1314
1317
  */
1315
1318
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
1316
1319
 
1317
- export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, createT, de, deepMerge, en, es, fr, he, hi, id, isApplePlatform, locales, localizeDisabledReason, pl, platformShortcut, ptBR, tr, zhCN };
1320
+ export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, createT, de, deepMerge, en, es, fr, he, hi, id, isApplePlatform, ja, locales, localizeDisabledReason, pl, platformShortcut, ptBR, tr, zhCN };
package/dist/index.d.ts CHANGED
@@ -109,7 +109,8 @@ var toolbar = {
109
109
  printLoadFailed: "The PDF did not load for printing. Select Open PDF, then print from the PDF viewer.",
110
110
  printRefused: "The browser did not allow printing from the page. Select Open PDF, then print from the PDF viewer.",
111
111
  printNoViewer: "This browser cannot print PDF files from the page. Select Open PDF, then print from the PDF viewer.",
112
- printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf."
112
+ printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf.",
113
+ insertTextBox: "Text Box"
113
114
  };
114
115
  var toc = {
115
116
  refresh: "Refresh table of contents",
@@ -1191,7 +1192,7 @@ type LocaleStrings = typeof enJson;
1191
1192
  *
1192
1193
  * @public
1193
1194
  */
1194
- type LocaleCode = 'en' | 'de' | 'es' | 'fr' | 'he' | 'hi' | 'id' | 'pl' | 'pt-BR' | 'tr' | 'zh-CN';
1195
+ type LocaleCode = 'en' | 'de' | 'es' | 'fr' | 'he' | 'hi' | 'id' | 'ja' | 'pl' | 'pt-BR' | 'tr' | 'zh-CN';
1195
1196
  /** English (`en`) — the source of truth, 100% covered. @public */
1196
1197
  declare const en: LocaleStrings;
1197
1198
  /** German (`de`). Community-maintained; null leaves fall back to English. @public */
@@ -1206,6 +1207,8 @@ declare const he: PartialLocaleStrings;
1206
1207
  declare const hi: PartialLocaleStrings;
1207
1208
  /** Indonesian (`id`). Community-maintained; null leaves fall back to English. @public */
1208
1209
  declare const id: PartialLocaleStrings;
1210
+ /** Japanese (`ja`). Community-maintained; null leaves fall back to English. @public */
1211
+ declare const ja: PartialLocaleStrings;
1209
1212
  /** Polish (`pl`). Community-maintained; null leaves fall back to English. @public */
1210
1213
  declare const pl: PartialLocaleStrings;
1211
1214
  /** Portuguese (Brazil) (`pt-BR`). Community-maintained; null leaves fall back to English. @public */
@@ -1314,4 +1317,4 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
1314
1317
  */
1315
1318
  declare function createT(strings: LocaleStrings, lang?: string): TFunction;
1316
1319
 
1317
- export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, createT, de, deepMerge, en, es, fr, he, hi, id, isApplePlatform, locales, localizeDisabledReason, pl, platformShortcut, ptBR, tr, zhCN };
1320
+ export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, createT, de, deepMerge, en, es, fr, he, hi, id, isApplePlatform, ja, locales, localizeDisabledReason, pl, platformShortcut, ptBR, tr, zhCN };