@vpdev2/metakyc 1.0.27 → 1.0.28
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/dist/i18n/index.d.ts +8 -1
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +364 -357
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/i18n/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export type { TranslationDictionary, PartialTranslationDictionary };
|
|
|
4
4
|
export declare const bundledLocales: Record<string, TranslationDictionary>;
|
|
5
5
|
/**
|
|
6
6
|
* Deep-merge a partial dictionary on top of a base dictionary.
|
|
7
|
-
*
|
|
7
|
+
* Handles both standard domain objects and custom/arbitrary domains
|
|
8
|
+
* added via the translation overrides panel.
|
|
8
9
|
*/
|
|
9
10
|
export declare function deepMerge(base: TranslationDictionary, override: PartialTranslationDictionary): TranslationDictionary;
|
|
10
11
|
/**
|
|
@@ -13,6 +14,12 @@ export declare function deepMerge(base: TranslationDictionary, override: Partial
|
|
|
13
14
|
export declare function getBundledDictionary(locale: string): TranslationDictionary;
|
|
14
15
|
/**
|
|
15
16
|
* Create a `t()` function bound to a specific dictionary with English fallback.
|
|
17
|
+
*
|
|
18
|
+
* Resolution order:
|
|
19
|
+
* 1. Direct dot-path lookup in the active dictionary
|
|
20
|
+
* 2. If the key has no dots, scan all domains for a matching leaf
|
|
21
|
+
* 3. Same two steps against the English fallback dictionary
|
|
22
|
+
* 4. Return the raw key as-is
|
|
16
23
|
*/
|
|
17
24
|
export declare function createTFunction(dict: TranslationDictionary): (key: string, params?: Record<string, string | number>) => string;
|
|
18
25
|
/**
|
package/dist/i18n/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAmBnF,YAAY,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,CAAC;AAEpE,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAEhE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAmBnF,YAAY,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,CAAC;AAEpE,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAEhE,CAAC;AA+BF;;;;GAIG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,qBAAqB,EAC3B,QAAQ,EAAE,4BAA4B,GACrC,qBAAqB,CAWvB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,qBAAqB,CAG1E;AAiBD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,qBAAqB,GAC1B,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAYnE;AASD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,EAC/B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,GACnE,MAAM,CAgBR"}
|