@betteroffice/docx-i18n 0.5.1 → 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 +5 -4
- package/dist/ar.d.mts +13 -0
- package/dist/ar.mjs +896 -0
- package/dist/de.mjs +270 -340
- package/dist/en.mjs +101 -202
- package/dist/es.d.mts +13 -0
- package/dist/es.mjs +896 -0
- package/dist/fr.mjs +277 -347
- package/dist/he.mjs +329 -399
- package/dist/hi.mjs +274 -344
- package/dist/id.mjs +258 -328
- package/dist/index.d.mts +112 -193
- package/dist/index.mjs +14663 -6474
- package/dist/it.d.mts +13 -0
- package/dist/it.mjs +896 -0
- package/dist/ja.d.mts +13 -0
- package/dist/ja.mjs +896 -0
- package/dist/ko.d.mts +13 -0
- package/dist/ko.mjs +896 -0
- package/dist/nl.d.mts +13 -0
- package/dist/nl.mjs +896 -0
- package/dist/pl.mjs +281 -351
- package/dist/pt-BR.mjs +282 -352
- package/dist/ru.d.mts +13 -0
- package/dist/ru.mjs +896 -0
- package/dist/tr.mjs +296 -366
- package/dist/uk.d.mts +13 -0
- package/dist/uk.mjs +896 -0
- package/dist/vi.d.mts +13 -0
- package/dist/vi.mjs +896 -0
- package/dist/zh-CN.mjs +270 -340
- package/dist/zh-TW.d.mts +13 -0
- package/dist/zh-TW.mjs +896 -0
- package/package.json +73 -12
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`
|
|
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`, `
|
|
36
|
-
exports for `pt-BR` and `zh-
|
|
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 };
|