@mmstack/translate 20.5.0 → 20.5.1
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 +12 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,18 +34,18 @@ It uses the robust **FormatJS** Intl runtime (`@formatjs/intl`) for ICU message
|
|
|
34
34
|
|
|
35
35
|
While Angular offers excellent i18n solutions like `@angular/localize` and `transloco`, `@mmstack/translate` aims to fill a specific niche.
|
|
36
36
|
|
|
37
|
-
| Feature |
|
|
38
|
-
| :----------------------- |
|
|
39
|
-
| **Build Process** | ✅ Single Build
|
|
40
|
-
| **Translation Timing** | Runtime
|
|
41
|
-
| **Type Safety (Keys)** | ✅ Strong (Inferred from structure)
|
|
42
|
-
| **Type Safety (Params)** | ✅ Strong (Inferred from ICU)
|
|
43
|
-
| **Locale Switching** |
|
|
44
|
-
| **Lazy Loading** |
|
|
45
|
-
| **Namespacing/Scopes** | ✅ Built-in
|
|
46
|
-
| **ICU Support** |
|
|
47
|
-
| **Signal Integration** |
|
|
48
|
-
| **Maturity / Community** |
|
|
37
|
+
| Feature | `@mmstack/translate` | `@angular/localize` | `transloco` | `ngx-translate` |
|
|
38
|
+
| :----------------------- | :----------------------------------: | :----------------------: | :---------------------------: | :------------------------: |
|
|
39
|
+
| **Build Process** | ✅ Single Build | ❌ Multi-Build (Typical) | ✅ Single Build | ✅ Single Build |
|
|
40
|
+
| **Translation Timing** | Runtime | Compile Time | Runtime | Runtime |
|
|
41
|
+
| **Type Safety (Keys)** | ✅ Strong (Inferred from structure) | 🟡 via extraction | 🟡 Tooling/TS Files | 🟡 OK Manual/Tooling |
|
|
42
|
+
| **Type Safety (Params)** | ✅ Strong (Inferred from ICU) | ❌ None | 🟡 Manual | 🟡 Manual |
|
|
43
|
+
| **Locale Switching** | ✅ Dynamic (Runtime) or Page refresh | 🔄 Page Refresh Required | ✅ Dynamic (Runtime) | ✅ Dynamic (Runtime) |
|
|
44
|
+
| **Lazy Loading** | ✅ Built-in (Namespaces/Resolvers) | N/A (Compile Time) | ✅ Built-in (Scopes) | ✅ Yes (Custom Loaders) |
|
|
45
|
+
| **Namespacing/Scopes** | ✅ Built-in | ❌ None | ✅ Built-in (Scopes) | 🟡 Manual (File Structure) |
|
|
46
|
+
| **ICU Support** | ✅ Subset (via FormatJS Runtime) | ✅ Yes (Compile Time) | ✅ Yes (Runtime Intl/Plugins) | 🟡 Via Extensions |
|
|
47
|
+
| **Signal Integration** | ✅ Good (`t.asSignal()`) | N/A | ✅ Good (`translateSignal()`) | ❌ Minimal/None |
|
|
48
|
+
| **Maturity / Community** | ✨ New | Core Angular | ✅ Mature / Active | ✅ Mature |
|
|
49
49
|
|
|
50
50
|
## Installation & Configuration
|
|
51
51
|
|