@betteroffice/docx-i18n 0.5.0 → 0.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/README.md CHANGED
@@ -23,8 +23,8 @@ export function Editor({ file }: { file: File }) {
23
23
  }
24
24
  ```
25
25
 
26
- Override individual strings by spreading a locale. Keys that are missing or `null` fall back to
27
- English.
26
+ Override individual strings by spreading a locale. Keys that are missing or `null` in an override fall
27
+ back to English.
28
28
 
29
29
  ```ts
30
30
  const custom = { ...de, formattingBar: { ...de.formattingBar, bold: 'Fettdruck' } };
@@ -32,8 +32,9 @@ const custom = { ...de, formattingBar: { ...de.formattingBar, bold: 'Fettdruck'
32
32
 
33
33
  ## Locales
34
34
 
35
- `en` (source), `de`, `fr`, `he`, `hi`, `id`, `pl`, `pt-BR`, `tr` and `zh-CN`. The
36
- exports for `pt-BR` and `zh-CN` are `ptBR` and `zhCN`.
35
+ `en` (source), `ar`, `de`, `es`, `fr`, `he`, `hi`, `id`, `it`, `ja`, `ko`, `nl`, `pl`, `pt-BR`, `ru`,
36
+ `tr`, `uk`, `vi`, `zh-CN` and `zh-TW`. The exports for `pt-BR`, `zh-CN` and `zh-TW` are `ptBR`,
37
+ `zhCN` and `zhTW`. Every locale translates every string.
37
38
 
38
39
  Each locale is also its own subpath, for example `@betteroffice/docx-i18n/pl`, so an app that picks
39
40
  the locale at runtime can load only the one it needs. `locales` maps every tag to its strings and
package/dist/ar.d.mts ADDED
@@ -0,0 +1,13 @@
1
+ import { PartialLocaleStrings } from './index.mjs';
2
+
3
+ /**
4
+ * German (`de`) locale strings. Community-maintained; null leaves fall back to English.
5
+ *
6
+ * Identical content to the named `de` export from the package root;
7
+ * this subpath just lets bundlers code-split it.
8
+ *
9
+ * @public
10
+ */
11
+ declare const ar: PartialLocaleStrings;
12
+
13
+ export { ar, ar as default };