@ngx-runtime-i18n/core 1.0.4 → 1.2.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/index.d.ts +5 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -20,6 +20,11 @@ interface RuntimeI18nConfig {
|
|
|
20
20
|
* SSR should override per request (e.g., from URL/cookie).
|
|
21
21
|
*/
|
|
22
22
|
defaultLang: string;
|
|
23
|
+
/**
|
|
24
|
+
* Optional ordered list of fallback languages (per key).
|
|
25
|
+
* Missing keys resolve using: active → fallbacks → defaultLang.
|
|
26
|
+
*/
|
|
27
|
+
fallbacks?: string[];
|
|
23
28
|
/**
|
|
24
29
|
* The set of allowed languages. `setLang()` will guard against values not in this list.
|
|
25
30
|
* Use BCP-47 tags (e.g., "en", "en-GB", "hi").
|