@nice2dev/i18n 1.3.13 → 1.3.14
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 +13 -2
- package/dist/dictionaries/ar.cjs +4 -1
- package/dist/dictionaries/ar.mjs +11197 -5
- package/dist/dictionaries/cs.cjs +4 -1
- package/dist/dictionaries/cs.mjs +11198 -6
- package/dist/dictionaries/de.cjs +1 -1
- package/dist/dictionaries/de.mjs +83 -1
- package/dist/dictionaries/en.cjs +1 -1
- package/dist/dictionaries/en.mjs +83 -1
- package/dist/dictionaries/es.cjs +1 -1
- package/dist/dictionaries/es.mjs +83 -1
- package/dist/dictionaries/fr.cjs +1 -1
- package/dist/dictionaries/fr.mjs +83 -1
- package/dist/dictionaries/it.cjs +4 -1
- package/dist/dictionaries/it.mjs +11326 -48
- package/dist/dictionaries/ja.cjs +4 -1
- package/dist/dictionaries/ja.mjs +11197 -5
- package/dist/dictionaries/ko.cjs +4 -1
- package/dist/dictionaries/ko.mjs +11197 -5
- package/dist/dictionaries/pl.cjs +1 -1
- package/dist/dictionaries/pl.mjs +83 -1
- package/dist/dictionaries/pt.cjs +4 -1
- package/dist/dictionaries/pt.mjs +11197 -5
- package/dist/dictionaries/uk.cjs +1 -1
- package/dist/dictionaries/uk.mjs +83 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,12 +5,23 @@ Shared internationalization infrastructure for Nice2Dev UI libraries.
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
7
|
- **NiceI18nProvider** — React context for translations
|
|
8
|
-
- **30 built-in languages**, loaded one at a time
|
|
9
|
-
- **
|
|
8
|
+
- **30 built-in languages**, loaded one at a time (see [Language coverage](#language-coverage))
|
|
9
|
+
- **Placeholders** — texts carry `{name}`-style placeholders the controls fill in
|
|
10
10
|
- **RTL support** — Arabic, Hebrew with automatic dir attribute
|
|
11
11
|
- **Browser detection** — `detectBrowserLanguage()` auto-detects user preference
|
|
12
12
|
- **Custom translations** — plug in your own `t()` function (react-i18next compatible)
|
|
13
13
|
|
|
14
|
+
## Language coverage
|
|
15
|
+
|
|
16
|
+
| Coverage | Languages |
|
|
17
|
+
| ------------------------------------------ | ------------------------------------------------------------------------- |
|
|
18
|
+
| **Complete** — every text of every control | en, pl, de, fr, es, uk; it, pt (Brazilian), cs, ja, ko, ar (since 1.3.14) |
|
|
19
|
+
| **Partial** — a few hundred common texts | zh |
|
|
20
|
+
| **Basic** — a few dozen universal terms | nl, sv, no, da, fi, sk, hu, ro, bg, hi, bn, th, vi, id, sw, fil, ms |
|
|
21
|
+
|
|
22
|
+
A key a dictionary does not have shows the control's built-in English text (the default passed
|
|
23
|
+
to `t(key, default)`), not a key name. Your own `overrides` (or your own `t`) fill any gap.
|
|
24
|
+
|
|
14
25
|
## Installation
|
|
15
26
|
|
|
16
27
|
```bash
|