gt-i18n 0.8.13 → 0.8.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{TranslationsCache-CCbpu4hE.d.mts → TranslationsCache-EwvK0L53.d.cts} +25 -20
  3. package/dist/{TranslationsCache-DKwwyNRA.d.cts → TranslationsCache-liJZngtP.d.mts} +25 -20
  4. package/dist/fallbacks.d.cts +1 -1
  5. package/dist/fallbacks.d.mts +1 -1
  6. package/dist/{functions-BqtnSFF4.d.cts → functions-9y6F4zXC.d.cts} +2 -2
  7. package/dist/{functions-BdYU6e8M.d.mts → functions-B2Dn3llc.d.mts} +2 -2
  8. package/dist/{index-YDEznmyZ.d.mts → index-DA9KV2bF.d.mts} +2 -2
  9. package/dist/{index-UDlCzB02.d.cts → index-DUcoQ9y0.d.mts} +3 -3
  10. package/dist/{index-DJVRTYiP.d.cts → index-VdD5_a-R.d.cts} +2 -2
  11. package/dist/{index-Bc5qKE7T.d.mts → index-jpLs__jj.d.cts} +3 -3
  12. package/dist/index.cjs +1 -1
  13. package/dist/index.d.cts +3 -3
  14. package/dist/index.d.mts +3 -3
  15. package/dist/index.mjs +1 -1
  16. package/dist/internal-types.d.cts +4 -4
  17. package/dist/internal-types.d.mts +4 -4
  18. package/dist/internal.cjs +1 -1
  19. package/dist/internal.d.cts +33 -7
  20. package/dist/internal.d.mts +33 -7
  21. package/dist/internal.mjs +1 -1
  22. package/dist/{localeResolver-CHA4wSwo.d.cts → localeResolver-07Ie-MOQ.d.mts} +3 -3
  23. package/dist/{localeResolver-Dd-qLfx9.d.mts → localeResolver-BAUJEFj8.d.cts} +3 -3
  24. package/dist/{options-BOz9P0yM.d.cts → options-Bd7cus3W.d.mts} +7 -2
  25. package/dist/{options-gL1Zt8jG.d.mts → options-x-8rtagw.d.cts} +7 -2
  26. package/dist/types.d.cts +4 -4
  27. package/dist/types.d.mts +4 -4
  28. package/dist/{versionId-jccDLifj.mjs → versionId-Bx4jT2_n.mjs} +113 -39
  29. package/dist/versionId-Bx4jT2_n.mjs.map +1 -0
  30. package/dist/{versionId-4kKcipCU.cjs → versionId-SL-n6mTD.cjs} +113 -39
  31. package/dist/versionId-SL-n6mTD.cjs.map +1 -0
  32. package/package.json +1 -1
  33. package/dist/versionId-4kKcipCU.cjs.map +0 -1
  34. package/dist/versionId-jccDLifj.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # gt-i18n
2
2
 
3
+ ## 0.8.14
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1328](https://github.com/generaltranslation/gt/pull/1328) [`cb2e106`](https://github.com/generaltranslation/gt/commit/cb2e1066f975dce8e90b166c51f763a3778c3861) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - Add dictionary lookup.
8
+
9
+ - [#1329](https://github.com/generaltranslation/gt/pull/1329) [`b907d87`](https://github.com/generaltranslation/gt/commit/b907d8799670e9e22355b5664da4c9f6f323b8f4) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - Add dictionary cache lifecycle events.
10
+
11
+ - [#1346](https://github.com/generaltranslation/gt/pull/1346) [`bf0386b`](https://github.com/generaltranslation/gt/commit/bf0386b38b8a9342619eb2f8b4e5f043dcba4d8f) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - Add dictionary metadata entry types without applying metadata at lookup time.
12
+
3
13
  ## 0.8.13
4
14
 
5
15
  ### Patch Changes
@@ -1,5 +1,6 @@
1
- import { RuntimeTranslateManyOptions } from "generaltranslation/internal";
1
+ import { n as DictionaryOptions } from "./options-x-8rtagw.cjs";
2
2
  import { Content } from "generaltranslation/types";
3
+ import { RuntimeTranslateManyOptions } from "generaltranslation/internal";
3
4
 
4
5
  //#region src/i18n-manager/translations-manager/utils/types/translation-data.d.ts
5
6
  /**
@@ -14,28 +15,14 @@ type Translation = Content;
14
15
  */
15
16
  type Locale = string;
16
17
  //#endregion
17
- //#region src/i18n-manager/translations-manager/DictionaryCache.d.ts
18
- /**
19
- * A dictionary is a nested object with strings as leaf values
20
- */
18
+ //#region src/i18n-manager/translations-manager/utils/types/dictionary.d.ts
19
+ type DictionaryLeaf = string | [string] | [string, DictionaryOptions];
21
20
  type Dictionary = {
22
21
  [key: string]: DictionaryValue;
23
22
  };
24
- /**
25
- * Value stored in a dictionary
26
- */
27
- type DictionaryValue = string | Dictionary;
28
- /**
29
- * Value returned from a dictionary lookup
30
- */
23
+ type DictionaryValue = DictionaryLeaf | Dictionary;
31
24
  type DictionaryEntry = string;
32
- /**
33
- * Just a way to be more explicit about what "dictionary path" is
34
- */
35
25
  type DictionaryPath = string;
36
- /**
37
- * InputKey type for lookups
38
- */
39
26
  type DictionaryKey = DictionaryPath;
40
27
  //#endregion
41
28
  //#region src/i18n-manager/translations-manager/LocalesDictionaryCache.d.ts
@@ -75,6 +62,24 @@ type LifecycleCallbacks<TranslationValue extends Translation> = {
75
62
  translations: Record<Hash, TranslationValue>; /** @deprecated - use translations instead */
76
63
  value: Record<Hash, TranslationValue>;
77
64
  }) => void;
65
+ onDictionaryCacheHit?: (params: {
66
+ locale: Locale;
67
+ id: DictionaryPath;
68
+ dictionaryEntry: DictionaryEntry;
69
+ }) => void;
70
+ onDictionaryCacheMiss?: (params: {
71
+ locale: Locale;
72
+ id: DictionaryPath;
73
+ dictionaryEntry: DictionaryEntry;
74
+ }) => void;
75
+ onLocalesDictionaryCacheHit?: (params: {
76
+ locale: Locale;
77
+ dictionary: Dictionary;
78
+ }) => void;
79
+ onLocalesDictionaryCacheMiss?: (params: {
80
+ locale: Locale;
81
+ dictionary: Dictionary;
82
+ }) => void;
78
83
  };
79
84
  //#endregion
80
85
  //#region src/i18n-manager/translations-manager/TranslationsCache.d.ts
@@ -88,5 +93,5 @@ type TranslationBatchConfig = {
88
93
  */
89
94
  type Hash = string;
90
95
  //#endregion
91
- export { Dictionary as a, DictionaryPath as c, Translation as d, DictionaryLoader as i, DictionaryValue as l, TranslationBatchConfig as n, DictionaryEntry as o, LifecycleCallbacks as r, DictionaryKey as s, Hash as t, Locale as u };
92
- //# sourceMappingURL=TranslationsCache-CCbpu4hE.d.mts.map
96
+ export { Dictionary as a, DictionaryLeaf as c, Locale as d, Translation as f, DictionaryLoader as i, DictionaryPath as l, TranslationBatchConfig as n, DictionaryEntry as o, LifecycleCallbacks as r, DictionaryKey as s, Hash as t, DictionaryValue as u };
97
+ //# sourceMappingURL=TranslationsCache-EwvK0L53.d.cts.map
@@ -1,5 +1,6 @@
1
- import { Content } from "generaltranslation/types";
1
+ import { n as DictionaryOptions } from "./options-Bd7cus3W.mjs";
2
2
  import { RuntimeTranslateManyOptions } from "generaltranslation/internal";
3
+ import { Content } from "generaltranslation/types";
3
4
 
4
5
  //#region src/i18n-manager/translations-manager/utils/types/translation-data.d.ts
5
6
  /**
@@ -14,28 +15,14 @@ type Translation = Content;
14
15
  */
15
16
  type Locale = string;
16
17
  //#endregion
17
- //#region src/i18n-manager/translations-manager/DictionaryCache.d.ts
18
- /**
19
- * A dictionary is a nested object with strings as leaf values
20
- */
18
+ //#region src/i18n-manager/translations-manager/utils/types/dictionary.d.ts
19
+ type DictionaryLeaf = string | [string] | [string, DictionaryOptions];
21
20
  type Dictionary = {
22
21
  [key: string]: DictionaryValue;
23
22
  };
24
- /**
25
- * Value stored in a dictionary
26
- */
27
- type DictionaryValue = string | Dictionary;
28
- /**
29
- * Value returned from a dictionary lookup
30
- */
23
+ type DictionaryValue = DictionaryLeaf | Dictionary;
31
24
  type DictionaryEntry = string;
32
- /**
33
- * Just a way to be more explicit about what "dictionary path" is
34
- */
35
25
  type DictionaryPath = string;
36
- /**
37
- * InputKey type for lookups
38
- */
39
26
  type DictionaryKey = DictionaryPath;
40
27
  //#endregion
41
28
  //#region src/i18n-manager/translations-manager/LocalesDictionaryCache.d.ts
@@ -75,6 +62,24 @@ type LifecycleCallbacks<TranslationValue extends Translation> = {
75
62
  translations: Record<Hash, TranslationValue>; /** @deprecated - use translations instead */
76
63
  value: Record<Hash, TranslationValue>;
77
64
  }) => void;
65
+ onDictionaryCacheHit?: (params: {
66
+ locale: Locale;
67
+ id: DictionaryPath;
68
+ dictionaryEntry: DictionaryEntry;
69
+ }) => void;
70
+ onDictionaryCacheMiss?: (params: {
71
+ locale: Locale;
72
+ id: DictionaryPath;
73
+ dictionaryEntry: DictionaryEntry;
74
+ }) => void;
75
+ onLocalesDictionaryCacheHit?: (params: {
76
+ locale: Locale;
77
+ dictionary: Dictionary;
78
+ }) => void;
79
+ onLocalesDictionaryCacheMiss?: (params: {
80
+ locale: Locale;
81
+ dictionary: Dictionary;
82
+ }) => void;
78
83
  };
79
84
  //#endregion
80
85
  //#region src/i18n-manager/translations-manager/TranslationsCache.d.ts
@@ -88,5 +93,5 @@ type TranslationBatchConfig = {
88
93
  */
89
94
  type Hash = string;
90
95
  //#endregion
91
- export { Dictionary as a, DictionaryPath as c, Translation as d, DictionaryLoader as i, DictionaryValue as l, TranslationBatchConfig as n, DictionaryEntry as o, LifecycleCallbacks as r, DictionaryKey as s, Hash as t, Locale as u };
92
- //# sourceMappingURL=TranslationsCache-DKwwyNRA.d.cts.map
96
+ export { Dictionary as a, DictionaryLeaf as c, Locale as d, Translation as f, DictionaryLoader as i, DictionaryPath as l, TranslationBatchConfig as n, DictionaryEntry as o, LifecycleCallbacks as r, DictionaryKey as s, Hash as t, DictionaryValue as u };
97
+ //# sourceMappingURL=TranslationsCache-liJZngtP.d.mts.map
@@ -1,2 +1,2 @@
1
- import { n as gtFallback, t as mFallback } from "./index-DJVRTYiP.cjs";
1
+ import { n as gtFallback, t as mFallback } from "./index-VdD5_a-R.cjs";
2
2
  export { gtFallback, mFallback };
@@ -1,2 +1,2 @@
1
- import { n as gtFallback, t as mFallback } from "./index-YDEznmyZ.mjs";
1
+ import { n as gtFallback, t as mFallback } from "./index-DA9KV2bF.mjs";
2
2
  export { gtFallback, mFallback };
@@ -1,4 +1,4 @@
1
- import { a as InlineTranslationOptions, n as DictionaryTranslationOptions, o as JsxTranslationOptions } from "./options-BOz9P0yM.cjs";
1
+ import { o as InlineTranslationOptions, r as DictionaryTranslationOptions, s as JsxTranslationOptions } from "./options-x-8rtagw.cjs";
2
2
  import { JsxChildren } from "generaltranslation/types";
3
3
 
4
4
  //#region src/translation-functions/types/functions.d.ts
@@ -58,4 +58,4 @@ type TFunctionType = (id: string, options?: DictionaryTranslationOptions) => str
58
58
  type ResolveJsxTranslationFunction = (locale: string, children: JsxChildren, options?: JsxTranslationOptions) => JsxChildren | undefined;
59
59
  //#endregion
60
60
  export { SyncResolutionFunctionWithFallback as a, SyncResolutionFunction as i, MFunctionType as n, TFunctionType as o, ResolveJsxTranslationFunction as r, GTFunctionType as t };
61
- //# sourceMappingURL=functions-BqtnSFF4.d.cts.map
61
+ //# sourceMappingURL=functions-9y6F4zXC.d.cts.map
@@ -1,4 +1,4 @@
1
- import { a as InlineTranslationOptions, n as DictionaryTranslationOptions, o as JsxTranslationOptions } from "./options-gL1Zt8jG.mjs";
1
+ import { o as InlineTranslationOptions, r as DictionaryTranslationOptions, s as JsxTranslationOptions } from "./options-Bd7cus3W.mjs";
2
2
  import { JsxChildren } from "generaltranslation/types";
3
3
 
4
4
  //#region src/translation-functions/types/functions.d.ts
@@ -58,4 +58,4 @@ type TFunctionType = (id: string, options?: DictionaryTranslationOptions) => str
58
58
  type ResolveJsxTranslationFunction = (locale: string, children: JsxChildren, options?: JsxTranslationOptions) => JsxChildren | undefined;
59
59
  //#endregion
60
60
  export { SyncResolutionFunctionWithFallback as a, SyncResolutionFunction as i, MFunctionType as n, TFunctionType as o, ResolveJsxTranslationFunction as r, GTFunctionType as t };
61
- //# sourceMappingURL=functions-BdYU6e8M.d.mts.map
61
+ //# sourceMappingURL=functions-B2Dn3llc.d.mts.map
@@ -1,4 +1,4 @@
1
- import { n as MFunctionType, t as GTFunctionType } from "./functions-BdYU6e8M.mjs";
1
+ import { n as MFunctionType, t as GTFunctionType } from "./functions-B2Dn3llc.mjs";
2
2
 
3
3
  //#region src/translation-functions/fallbacks/gtFallback.d.ts
4
4
  /**
@@ -57,4 +57,4 @@ declare const gtFallback: GTFunctionType;
57
57
  declare const mFallback: MFunctionType;
58
58
  //#endregion
59
59
  export { gtFallback as n, mFallback as t };
60
- //# sourceMappingURL=index-YDEznmyZ.d.mts.map
60
+ //# sourceMappingURL=index-DA9KV2bF.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as _$generaltranslation_internal0 from "generaltranslation/internal";
1
+ import * as _$generaltranslation_types0 from "generaltranslation/types";
2
2
 
3
3
  //#region src/helpers/locale.d.ts
4
4
  /**
@@ -39,7 +39,7 @@ declare function getDefaultLocale(): string;
39
39
  * @example
40
40
  * const localeProperties = getLocaleProperties('en-US');
41
41
  */
42
- declare function getLocaleProperties(locale?: string): _$generaltranslation_internal0.LocaleProperties;
42
+ declare function getLocaleProperties(locale?: string): _$generaltranslation_types0.LocaleProperties;
43
43
  //#endregion
44
44
  //#region src/helpers/versionId.d.ts
45
45
  /**
@@ -53,4 +53,4 @@ declare function getLocaleProperties(locale?: string): _$generaltranslation_inte
53
53
  declare function getVersionId(): string | undefined;
54
54
  //#endregion
55
55
  export { getLocales as a, getLocaleProperties as i, getDefaultLocale as n, getLocale as r, getVersionId as t };
56
- //# sourceMappingURL=index-UDlCzB02.d.cts.map
56
+ //# sourceMappingURL=index-DUcoQ9y0.d.mts.map
@@ -1,4 +1,4 @@
1
- import { n as MFunctionType, t as GTFunctionType } from "./functions-BqtnSFF4.cjs";
1
+ import { n as MFunctionType, t as GTFunctionType } from "./functions-9y6F4zXC.cjs";
2
2
 
3
3
  //#region src/translation-functions/fallbacks/gtFallback.d.ts
4
4
  /**
@@ -57,4 +57,4 @@ declare const gtFallback: GTFunctionType;
57
57
  declare const mFallback: MFunctionType;
58
58
  //#endregion
59
59
  export { gtFallback as n, mFallback as t };
60
- //# sourceMappingURL=index-DJVRTYiP.d.cts.map
60
+ //# sourceMappingURL=index-VdD5_a-R.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as _$generaltranslation_internal0 from "generaltranslation/internal";
1
+ import * as _$generaltranslation_types0 from "generaltranslation/types";
2
2
 
3
3
  //#region src/helpers/locale.d.ts
4
4
  /**
@@ -39,7 +39,7 @@ declare function getDefaultLocale(): string;
39
39
  * @example
40
40
  * const localeProperties = getLocaleProperties('en-US');
41
41
  */
42
- declare function getLocaleProperties(locale?: string): _$generaltranslation_internal0.LocaleProperties;
42
+ declare function getLocaleProperties(locale?: string): _$generaltranslation_types0.LocaleProperties;
43
43
  //#endregion
44
44
  //#region src/helpers/versionId.d.ts
45
45
  /**
@@ -53,4 +53,4 @@ declare function getLocaleProperties(locale?: string): _$generaltranslation_inte
53
53
  declare function getVersionId(): string | undefined;
54
54
  //#endregion
55
55
  export { getLocales as a, getLocaleProperties as i, getDefaultLocale as n, getLocale as r, getVersionId as t };
56
- //# sourceMappingURL=index-Bc5qKE7T.d.mts.map
56
+ //# sourceMappingURL=index-jpLs__jj.d.cts.map
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_isEncodedTranslationOptions = require("./isEncodedTranslationOptions-D7ltjc4f.cjs");
3
- const require_versionId = require("./versionId-4kKcipCU.cjs");
3
+ const require_versionId = require("./versionId-SL-n6mTD.cjs");
4
4
  const require_mFallback = require("./mFallback-CoPRtKyL.cjs");
5
5
  let generaltranslation_internal = require("generaltranslation/internal");
6
6
  let generaltranslation_core = require("generaltranslation/core");
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { a as InlineTranslationOptions } from "./options-BOz9P0yM.cjs";
2
- import { n as gtFallback, t as mFallback } from "./index-DJVRTYiP.cjs";
1
+ import { o as InlineTranslationOptions } from "./options-x-8rtagw.cjs";
2
+ import { n as gtFallback, t as mFallback } from "./index-VdD5_a-R.cjs";
3
3
  import { t as RegisterableMessages } from "./message-C62MTLwE.cjs";
4
- import { a as getLocales, i as getLocaleProperties, n as getDefaultLocale, r as getLocale, t as getVersionId } from "./index-UDlCzB02.cjs";
4
+ import { a as getLocales, i as getLocaleProperties, n as getDefaultLocale, r as getLocale, t as getVersionId } from "./index-jpLs__jj.cjs";
5
5
  import { declareStatic, declareVar, decodeVars, derive } from "generaltranslation/internal";
6
6
 
7
7
  //#region src/translation-functions/t.d.ts
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { a as InlineTranslationOptions } from "./options-gL1Zt8jG.mjs";
2
- import { n as gtFallback, t as mFallback } from "./index-YDEznmyZ.mjs";
1
+ import { o as InlineTranslationOptions } from "./options-Bd7cus3W.mjs";
2
+ import { n as gtFallback, t as mFallback } from "./index-DA9KV2bF.mjs";
3
3
  import { t as RegisterableMessages } from "./message-BN4DirTg.mjs";
4
- import { a as getLocales, i as getLocaleProperties, n as getDefaultLocale, r as getLocale, t as getVersionId } from "./index-Bc5qKE7T.mjs";
4
+ import { a as getLocales, i as getLocaleProperties, n as getDefaultLocale, r as getLocale, t as getVersionId } from "./index-DUcoQ9y0.mjs";
5
5
  import { declareStatic, declareVar, decodeVars, derive } from "generaltranslation/internal";
6
6
 
7
7
  //#region src/translation-functions/t.d.ts
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as extractVariables, i as createInterpolationFailureMessage, n as decodeOptions, o as logger_default } from "./isEncodedTranslationOptions-DdHEzDDM.mjs";
2
- import { a as getLocales, d as resolveStringContentWithFallback, i as getLocaleProperties, m as getCurrentLocale, n as getDefaultLocale, r as getLocale, t as getVersionId, y as hashMessage } from "./versionId-jccDLifj.mjs";
2
+ import { a as getLocales, d as resolveStringContentWithFallback, i as getLocaleProperties, m as getCurrentLocale, n as getDefaultLocale, r as getLocale, t as getVersionId, y as hashMessage } from "./versionId-Bx4jT2_n.mjs";
3
3
  import { n as gtFallback, r as decodeMsg, t as mFallback } from "./mFallback-BQX_yiE-.mjs";
4
4
  import { VAR_IDENTIFIER, declareStatic, declareVar, decodeVars, derive, encode, libraryDefaultLocale } from "generaltranslation/internal";
5
5
  import { formatMessage } from "generaltranslation/core";
@@ -1,4 +1,4 @@
1
- import { a as InlineTranslationOptions, c as NormalizedLookupOptions, i as InlineResolveOptions, l as ResolutionOptions, n as DictionaryTranslationOptions, o as JsxTranslationOptions, r as EncodedTranslationOptions, s as LookupOptions, t as BaseTranslationOptions, u as RuntimeTranslationOptions } from "./options-BOz9P0yM.cjs";
2
- import { a as ConditionStore, c as I18nManagerConstructorParams, d as TranslationsLoader, f as GTConfig, l as ScopedConditionStore, o as ConditionStoreConfig, p as RenderMethod, s as I18nManagerConfig, t as LocaleCandidates, u as WritableConditionStore } from "./localeResolver-CHA4wSwo.cjs";
3
- import { a as Dictionary, c as DictionaryPath, i as DictionaryLoader, l as DictionaryValue, o as DictionaryEntry, r as LifecycleCallbacks, s as DictionaryKey } from "./TranslationsCache-DKwwyNRA.cjs";
4
- export { BaseTranslationOptions, type ConditionStore, type ConditionStoreConfig, type Dictionary, type DictionaryEntry, type DictionaryKey, type DictionaryLoader, type DictionaryPath, DictionaryTranslationOptions, type DictionaryValue, EncodedTranslationOptions, GTConfig, type I18nManagerConfig, type I18nManagerConstructorParams, InlineResolveOptions, InlineTranslationOptions, JsxTranslationOptions, type LifecycleCallbacks, type LocaleCandidates, LookupOptions, NormalizedLookupOptions, RenderMethod, ResolutionOptions, RuntimeTranslationOptions, type ScopedConditionStore, type TranslationsLoader, type WritableConditionStore };
1
+ import { a as InlineResolveOptions, c as LookupOptions, d as RuntimeTranslationOptions, i as EncodedTranslationOptions, l as NormalizedLookupOptions, n as DictionaryOptions, o as InlineTranslationOptions, r as DictionaryTranslationOptions, s as JsxTranslationOptions, t as BaseTranslationOptions, u as ResolutionOptions } from "./options-x-8rtagw.cjs";
2
+ import { a as ConditionStore, c as I18nManagerConstructorParams, d as TranslationsLoader, f as GTConfig, l as ScopedConditionStore, o as ConditionStoreConfig, p as RenderMethod, s as I18nManagerConfig, t as LocaleCandidates, u as WritableConditionStore } from "./localeResolver-BAUJEFj8.cjs";
3
+ import { a as Dictionary, c as DictionaryLeaf, i as DictionaryLoader, l as DictionaryPath, o as DictionaryEntry, r as LifecycleCallbacks, s as DictionaryKey, u as DictionaryValue } from "./TranslationsCache-EwvK0L53.cjs";
4
+ export { BaseTranslationOptions, type ConditionStore, type ConditionStoreConfig, type Dictionary, type DictionaryEntry, type DictionaryKey, type DictionaryLeaf, type DictionaryLoader, type DictionaryOptions, type DictionaryPath, DictionaryTranslationOptions, type DictionaryValue, EncodedTranslationOptions, GTConfig, type I18nManagerConfig, type I18nManagerConstructorParams, InlineResolveOptions, InlineTranslationOptions, JsxTranslationOptions, type LifecycleCallbacks, type LocaleCandidates, LookupOptions, NormalizedLookupOptions, RenderMethod, ResolutionOptions, RuntimeTranslationOptions, type ScopedConditionStore, type TranslationsLoader, type WritableConditionStore };
@@ -1,4 +1,4 @@
1
- import { a as InlineTranslationOptions, c as NormalizedLookupOptions, i as InlineResolveOptions, l as ResolutionOptions, n as DictionaryTranslationOptions, o as JsxTranslationOptions, r as EncodedTranslationOptions, s as LookupOptions, t as BaseTranslationOptions, u as RuntimeTranslationOptions } from "./options-gL1Zt8jG.mjs";
2
- import { a as ConditionStore, c as I18nManagerConstructorParams, d as TranslationsLoader, f as GTConfig, l as ScopedConditionStore, o as ConditionStoreConfig, p as RenderMethod, s as I18nManagerConfig, t as LocaleCandidates, u as WritableConditionStore } from "./localeResolver-Dd-qLfx9.mjs";
3
- import { a as Dictionary, c as DictionaryPath, i as DictionaryLoader, l as DictionaryValue, o as DictionaryEntry, r as LifecycleCallbacks, s as DictionaryKey } from "./TranslationsCache-CCbpu4hE.mjs";
4
- export { BaseTranslationOptions, type ConditionStore, type ConditionStoreConfig, type Dictionary, type DictionaryEntry, type DictionaryKey, type DictionaryLoader, type DictionaryPath, DictionaryTranslationOptions, type DictionaryValue, EncodedTranslationOptions, GTConfig, type I18nManagerConfig, type I18nManagerConstructorParams, InlineResolveOptions, InlineTranslationOptions, JsxTranslationOptions, type LifecycleCallbacks, type LocaleCandidates, LookupOptions, NormalizedLookupOptions, RenderMethod, ResolutionOptions, RuntimeTranslationOptions, type ScopedConditionStore, type TranslationsLoader, type WritableConditionStore };
1
+ import { a as InlineResolveOptions, c as LookupOptions, d as RuntimeTranslationOptions, i as EncodedTranslationOptions, l as NormalizedLookupOptions, n as DictionaryOptions, o as InlineTranslationOptions, r as DictionaryTranslationOptions, s as JsxTranslationOptions, t as BaseTranslationOptions, u as ResolutionOptions } from "./options-Bd7cus3W.mjs";
2
+ import { a as ConditionStore, c as I18nManagerConstructorParams, d as TranslationsLoader, f as GTConfig, l as ScopedConditionStore, o as ConditionStoreConfig, p as RenderMethod, s as I18nManagerConfig, t as LocaleCandidates, u as WritableConditionStore } from "./localeResolver-07Ie-MOQ.mjs";
3
+ import { a as Dictionary, c as DictionaryLeaf, i as DictionaryLoader, l as DictionaryPath, o as DictionaryEntry, r as LifecycleCallbacks, s as DictionaryKey, u as DictionaryValue } from "./TranslationsCache-liJZngtP.mjs";
4
+ export { BaseTranslationOptions, type ConditionStore, type ConditionStoreConfig, type Dictionary, type DictionaryEntry, type DictionaryKey, type DictionaryLeaf, type DictionaryLoader, type DictionaryOptions, type DictionaryPath, DictionaryTranslationOptions, type DictionaryValue, EncodedTranslationOptions, GTConfig, type I18nManagerConfig, type I18nManagerConstructorParams, InlineResolveOptions, InlineTranslationOptions, JsxTranslationOptions, type LifecycleCallbacks, type LocaleCandidates, LookupOptions, NormalizedLookupOptions, RenderMethod, ResolutionOptions, RuntimeTranslationOptions, type ScopedConditionStore, type TranslationsLoader, type WritableConditionStore };
package/dist/internal.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_isEncodedTranslationOptions = require("./isEncodedTranslationOptions-D7ltjc4f.cjs");
3
- const require_versionId = require("./versionId-4kKcipCU.cjs");
3
+ const require_versionId = require("./versionId-SL-n6mTD.cjs");
4
4
  let generaltranslation_internal = require("generaltranslation/internal");
5
5
  let generaltranslation_core = require("generaltranslation/core");
6
6
  //#region src/translation-functions/internal/getGT.ts
@@ -1,8 +1,8 @@
1
- import { a as InlineTranslationOptions, c as NormalizedLookupOptions, l as ResolutionOptions, o as JsxTranslationOptions, s as LookupOptions, u as RuntimeTranslationOptions } from "./options-BOz9P0yM.cjs";
2
- import { n as MFunctionType, o as TFunctionType, t as GTFunctionType } from "./functions-BqtnSFF4.cjs";
3
- import { a as getLocales, i as getLocaleProperties, n as getDefaultLocale, r as getLocale, t as getVersionId } from "./index-UDlCzB02.cjs";
4
- import { a as ConditionStore, c as I18nManagerConstructorParams, d as TranslationsLoader, i as resolveSupportedLocale, n as createLocaleResolver, r as determineSupportedLocale, s as I18nManagerConfig, t as LocaleCandidates } from "./localeResolver-CHA4wSwo.cjs";
5
- import { a as Dictionary, d as Translation, t as Hash, u as Locale } from "./TranslationsCache-DKwwyNRA.cjs";
1
+ import { c as LookupOptions, d as RuntimeTranslationOptions, l as NormalizedLookupOptions, o as InlineTranslationOptions, s as JsxTranslationOptions, u as ResolutionOptions } from "./options-x-8rtagw.cjs";
2
+ import { n as MFunctionType, o as TFunctionType, t as GTFunctionType } from "./functions-9y6F4zXC.cjs";
3
+ import { a as getLocales, i as getLocaleProperties, n as getDefaultLocale, r as getLocale, t as getVersionId } from "./index-jpLs__jj.cjs";
4
+ import { a as ConditionStore, c as I18nManagerConstructorParams, d as TranslationsLoader, i as resolveSupportedLocale, n as createLocaleResolver, r as determineSupportedLocale, s as I18nManagerConfig, t as LocaleCandidates } from "./localeResolver-BAUJEFj8.cjs";
5
+ import { a as Dictionary, d as Locale, f as Translation, l as DictionaryPath, o as DictionaryEntry, t as Hash } from "./TranslationsCache-EwvK0L53.cjs";
6
6
  import { CustomMapping, DataFormat, JsxChildren, StringContent, StringFormat } from "generaltranslation/types";
7
7
  import { GT } from "generaltranslation";
8
8
 
@@ -137,6 +137,10 @@ type ListenerStore<Events extends BaseEvent> = Partial<{ [EventName in keyof Eve
137
137
  * @prop {locales-cache-miss} - Emitted when a locale cache miss occurs
138
138
  * @prop {translations-cache-hit} - Emitted when a translations cache hit occurs
139
139
  * @prop {translations-cache-miss} - Emitted when a translations cache miss occurs
140
+ * @prop {locales-dictionary-cache-hit} - Emitted when a locales dictionary cache hit occurs
141
+ * @prop {locales-dictionary-cache-miss} - Emitted when a locales dictionary cache miss occurs
142
+ * @prop {dictionary-cache-hit} - Emitted when a dictionary cache hit occurs
143
+ * @prop {dictionary-cache-miss} - Emitted when a dictionary cache miss occurs
140
144
  */
141
145
  type I18nEvents<TranslationValue extends Translation> = BaseEvent & {
142
146
  'locales-cache-hit': {
@@ -157,6 +161,24 @@ type I18nEvents<TranslationValue extends Translation> = BaseEvent & {
157
161
  hash: Hash;
158
162
  translation: TranslationValue;
159
163
  };
164
+ 'locales-dictionary-cache-hit': {
165
+ locale: Locale;
166
+ dictionary: Dictionary;
167
+ };
168
+ 'locales-dictionary-cache-miss': {
169
+ locale: Locale;
170
+ dictionary: Dictionary;
171
+ };
172
+ 'dictionary-cache-hit': {
173
+ locale: Locale;
174
+ id: DictionaryPath;
175
+ dictionaryEntry: DictionaryEntry;
176
+ };
177
+ 'dictionary-cache-miss': {
178
+ locale: Locale;
179
+ id: DictionaryPath;
180
+ dictionaryEntry: DictionaryEntry;
181
+ };
160
182
  };
161
183
  //#endregion
162
184
  //#region src/i18n-manager/event-subscription/EventEmitter.d.ts
@@ -264,6 +286,10 @@ declare class I18nManager<TranslationValue extends Translation = Translation> ex
264
286
  * Edge case usage: access the dictionary object directly
265
287
  */
266
288
  loadDictionary(locale: string): Promise<Dictionary>;
289
+ /**
290
+ * Look up a dictionary entry
291
+ */
292
+ lookupDictionary(locale: string, id: string): string | undefined;
267
293
  /**
268
294
  * Just lookup a translation
269
295
  */
@@ -329,10 +355,10 @@ declare class I18nManager<TranslationValue extends Translation = Translation> ex
329
355
  private handleError;
330
356
  private resolveLocale;
331
357
  /**
332
- * Resolve the locale key used to load/read translation caches.
358
+ * Resolve the locale key used to load/read locale caches.
333
359
  * Returns undefined when the requested locale can use source content.
334
360
  */
335
- private resolveTranslationCacheLocale;
361
+ private resolveCacheLocale;
336
362
  private resolveLookupParams;
337
363
  private resolveLookupOptions;
338
364
  /**
@@ -1,8 +1,8 @@
1
- import { a as InlineTranslationOptions, c as NormalizedLookupOptions, l as ResolutionOptions, o as JsxTranslationOptions, s as LookupOptions, u as RuntimeTranslationOptions } from "./options-gL1Zt8jG.mjs";
2
- import { n as MFunctionType, o as TFunctionType, t as GTFunctionType } from "./functions-BdYU6e8M.mjs";
3
- import { a as getLocales, i as getLocaleProperties, n as getDefaultLocale, r as getLocale, t as getVersionId } from "./index-Bc5qKE7T.mjs";
4
- import { a as ConditionStore, c as I18nManagerConstructorParams, d as TranslationsLoader, i as resolveSupportedLocale, n as createLocaleResolver, r as determineSupportedLocale, s as I18nManagerConfig, t as LocaleCandidates } from "./localeResolver-Dd-qLfx9.mjs";
5
- import { a as Dictionary, d as Translation, t as Hash, u as Locale } from "./TranslationsCache-CCbpu4hE.mjs";
1
+ import { c as LookupOptions, d as RuntimeTranslationOptions, l as NormalizedLookupOptions, o as InlineTranslationOptions, s as JsxTranslationOptions, u as ResolutionOptions } from "./options-Bd7cus3W.mjs";
2
+ import { n as MFunctionType, o as TFunctionType, t as GTFunctionType } from "./functions-B2Dn3llc.mjs";
3
+ import { a as getLocales, i as getLocaleProperties, n as getDefaultLocale, r as getLocale, t as getVersionId } from "./index-DUcoQ9y0.mjs";
4
+ import { a as ConditionStore, c as I18nManagerConstructorParams, d as TranslationsLoader, i as resolveSupportedLocale, n as createLocaleResolver, r as determineSupportedLocale, s as I18nManagerConfig, t as LocaleCandidates } from "./localeResolver-07Ie-MOQ.mjs";
5
+ import { a as Dictionary, d as Locale, f as Translation, l as DictionaryPath, o as DictionaryEntry, t as Hash } from "./TranslationsCache-liJZngtP.mjs";
6
6
  import { GT } from "generaltranslation";
7
7
  import { CustomMapping, DataFormat, JsxChildren, StringContent, StringFormat } from "generaltranslation/types";
8
8
 
@@ -137,6 +137,10 @@ type ListenerStore<Events extends BaseEvent> = Partial<{ [EventName in keyof Eve
137
137
  * @prop {locales-cache-miss} - Emitted when a locale cache miss occurs
138
138
  * @prop {translations-cache-hit} - Emitted when a translations cache hit occurs
139
139
  * @prop {translations-cache-miss} - Emitted when a translations cache miss occurs
140
+ * @prop {locales-dictionary-cache-hit} - Emitted when a locales dictionary cache hit occurs
141
+ * @prop {locales-dictionary-cache-miss} - Emitted when a locales dictionary cache miss occurs
142
+ * @prop {dictionary-cache-hit} - Emitted when a dictionary cache hit occurs
143
+ * @prop {dictionary-cache-miss} - Emitted when a dictionary cache miss occurs
140
144
  */
141
145
  type I18nEvents<TranslationValue extends Translation> = BaseEvent & {
142
146
  'locales-cache-hit': {
@@ -157,6 +161,24 @@ type I18nEvents<TranslationValue extends Translation> = BaseEvent & {
157
161
  hash: Hash;
158
162
  translation: TranslationValue;
159
163
  };
164
+ 'locales-dictionary-cache-hit': {
165
+ locale: Locale;
166
+ dictionary: Dictionary;
167
+ };
168
+ 'locales-dictionary-cache-miss': {
169
+ locale: Locale;
170
+ dictionary: Dictionary;
171
+ };
172
+ 'dictionary-cache-hit': {
173
+ locale: Locale;
174
+ id: DictionaryPath;
175
+ dictionaryEntry: DictionaryEntry;
176
+ };
177
+ 'dictionary-cache-miss': {
178
+ locale: Locale;
179
+ id: DictionaryPath;
180
+ dictionaryEntry: DictionaryEntry;
181
+ };
160
182
  };
161
183
  //#endregion
162
184
  //#region src/i18n-manager/event-subscription/EventEmitter.d.ts
@@ -264,6 +286,10 @@ declare class I18nManager<TranslationValue extends Translation = Translation> ex
264
286
  * Edge case usage: access the dictionary object directly
265
287
  */
266
288
  loadDictionary(locale: string): Promise<Dictionary>;
289
+ /**
290
+ * Look up a dictionary entry
291
+ */
292
+ lookupDictionary(locale: string, id: string): string | undefined;
267
293
  /**
268
294
  * Just lookup a translation
269
295
  */
@@ -329,10 +355,10 @@ declare class I18nManager<TranslationValue extends Translation = Translation> ex
329
355
  private handleError;
330
356
  private resolveLocale;
331
357
  /**
332
- * Resolve the locale key used to load/read translation caches.
358
+ * Resolve the locale key used to load/read locale caches.
333
359
  * Returns undefined when the requested locale can use source content.
334
360
  */
335
- private resolveTranslationCacheLocale;
361
+ private resolveCacheLocale;
336
362
  private resolveLookupParams;
337
363
  private resolveLookupOptions;
338
364
  /**
package/dist/internal.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as decodeOptions, r as interpolateIcuMessage, t as isEncodedTranslationOptions } from "./isEncodedTranslationOptions-DdHEzDDM.mjs";
2
- import { _ as setI18nManager, a as getLocales, c as resolveJsxWithFallback, d as resolveStringContentWithFallback, f as resolveStringContentWithRuntimeFallback, g as setConditionStore, h as getI18nManager, i as getLocaleProperties, l as resolveJsxWithRuntimeFallback, m as getCurrentLocale, n as getDefaultLocale, o as createLookupOptions, p as interpolateMessage, r as getLocale, s as resolveJsx, t as getVersionId, u as resolveStringContent, v as I18nManager } from "./versionId-jccDLifj.mjs";
2
+ import { _ as setI18nManager, a as getLocales, c as resolveJsxWithFallback, d as resolveStringContentWithFallback, f as resolveStringContentWithRuntimeFallback, g as setConditionStore, h as getI18nManager, i as getLocaleProperties, l as resolveJsxWithRuntimeFallback, m as getCurrentLocale, n as getDefaultLocale, o as createLookupOptions, p as interpolateMessage, r as getLocale, s as resolveJsx, t as getVersionId, u as resolveStringContent, v as I18nManager } from "./versionId-Bx4jT2_n.mjs";
3
3
  import { libraryDefaultLocale } from "generaltranslation/internal";
4
4
  import { LocaleConfig } from "generaltranslation/core";
5
5
  //#region src/translation-functions/internal/getGT.ts
@@ -1,6 +1,6 @@
1
- import { a as Dictionary, d as Translation, i as DictionaryLoader, n as TranslationBatchConfig, r as LifecycleCallbacks } from "./TranslationsCache-DKwwyNRA.cjs";
2
- import { CustomMapping } from "generaltranslation/types";
1
+ import { a as Dictionary, f as Translation, i as DictionaryLoader, n as TranslationBatchConfig, r as LifecycleCallbacks } from "./TranslationsCache-liJZngtP.mjs";
3
2
  import { RuntimeTranslateManyOptions } from "generaltranslation/internal";
3
+ import { CustomMapping } from "generaltranslation/types";
4
4
 
5
5
  //#region src/config/types.d.ts
6
6
  /**
@@ -155,4 +155,4 @@ declare function resolveSupportedLocale(candidates: LocaleCandidates, config?: C
155
155
  declare function createLocaleResolver(config?: ConditionStoreConfig): (candidates?: LocaleCandidates) => string;
156
156
  //#endregion
157
157
  export { ConditionStore as a, I18nManagerConstructorParams as c, TranslationsLoader as d, GTConfig as f, resolveSupportedLocale as i, ScopedConditionStore as l, createLocaleResolver as n, ConditionStoreConfig as o, RenderMethod as p, determineSupportedLocale as r, I18nManagerConfig as s, LocaleCandidates as t, WritableConditionStore as u };
158
- //# sourceMappingURL=localeResolver-CHA4wSwo.d.cts.map
158
+ //# sourceMappingURL=localeResolver-07Ie-MOQ.d.mts.map
@@ -1,6 +1,6 @@
1
- import { a as Dictionary, d as Translation, i as DictionaryLoader, n as TranslationBatchConfig, r as LifecycleCallbacks } from "./TranslationsCache-CCbpu4hE.mjs";
2
- import { RuntimeTranslateManyOptions } from "generaltranslation/internal";
1
+ import { a as Dictionary, f as Translation, i as DictionaryLoader, n as TranslationBatchConfig, r as LifecycleCallbacks } from "./TranslationsCache-EwvK0L53.cjs";
3
2
  import { CustomMapping } from "generaltranslation/types";
3
+ import { RuntimeTranslateManyOptions } from "generaltranslation/internal";
4
4
 
5
5
  //#region src/config/types.d.ts
6
6
  /**
@@ -155,4 +155,4 @@ declare function resolveSupportedLocale(candidates: LocaleCandidates, config?: C
155
155
  declare function createLocaleResolver(config?: ConditionStoreConfig): (candidates?: LocaleCandidates) => string;
156
156
  //#endregion
157
157
  export { ConditionStore as a, I18nManagerConstructorParams as c, TranslationsLoader as d, GTConfig as f, resolveSupportedLocale as i, ScopedConditionStore as l, createLocaleResolver as n, ConditionStoreConfig as o, RenderMethod as p, determineSupportedLocale as r, I18nManagerConfig as s, LocaleCandidates as t, WritableConditionStore as u };
158
- //# sourceMappingURL=localeResolver-Dd-qLfx9.d.mts.map
158
+ //# sourceMappingURL=localeResolver-BAUJEFj8.d.cts.map
@@ -3,6 +3,11 @@ import { DataFormat, StringFormat } from "generaltranslation/types";
3
3
  //#region src/translation-functions/types/options.d.ts
4
4
  type BaseTranslationOptions = Record<string, any>;
5
5
  type DictionaryTranslationOptions = BaseTranslationOptions;
6
+ type DictionaryOptions = BaseTranslationOptions & {
7
+ $context?: string;
8
+ $maxChars?: number; /** @deprecated use {@link $context} instead */
9
+ context?: string;
10
+ };
6
11
  /**
7
12
  * Options for string resolution
8
13
  * Used by the gt() function
@@ -82,5 +87,5 @@ type NormalizedLookupOptions<T extends DataFormat> = Omit<ResolutionOptions<T>,
82
87
  $locale: string;
83
88
  };
84
89
  //#endregion
85
- export { InlineTranslationOptions as a, NormalizedLookupOptions as c, InlineResolveOptions as i, ResolutionOptions as l, DictionaryTranslationOptions as n, JsxTranslationOptions as o, EncodedTranslationOptions as r, LookupOptions as s, BaseTranslationOptions as t, RuntimeTranslationOptions as u };
86
- //# sourceMappingURL=options-BOz9P0yM.d.cts.map
90
+ export { InlineResolveOptions as a, LookupOptions as c, RuntimeTranslationOptions as d, EncodedTranslationOptions as i, NormalizedLookupOptions as l, DictionaryOptions as n, InlineTranslationOptions as o, DictionaryTranslationOptions as r, JsxTranslationOptions as s, BaseTranslationOptions as t, ResolutionOptions as u };
91
+ //# sourceMappingURL=options-Bd7cus3W.d.mts.map
@@ -3,6 +3,11 @@ import { DataFormat, StringFormat } from "generaltranslation/types";
3
3
  //#region src/translation-functions/types/options.d.ts
4
4
  type BaseTranslationOptions = Record<string, any>;
5
5
  type DictionaryTranslationOptions = BaseTranslationOptions;
6
+ type DictionaryOptions = BaseTranslationOptions & {
7
+ $context?: string;
8
+ $maxChars?: number; /** @deprecated use {@link $context} instead */
9
+ context?: string;
10
+ };
6
11
  /**
7
12
  * Options for string resolution
8
13
  * Used by the gt() function
@@ -82,5 +87,5 @@ type NormalizedLookupOptions<T extends DataFormat> = Omit<ResolutionOptions<T>,
82
87
  $locale: string;
83
88
  };
84
89
  //#endregion
85
- export { InlineTranslationOptions as a, NormalizedLookupOptions as c, InlineResolveOptions as i, ResolutionOptions as l, DictionaryTranslationOptions as n, JsxTranslationOptions as o, EncodedTranslationOptions as r, LookupOptions as s, BaseTranslationOptions as t, RuntimeTranslationOptions as u };
86
- //# sourceMappingURL=options-gL1Zt8jG.d.mts.map
90
+ export { InlineResolveOptions as a, LookupOptions as c, RuntimeTranslationOptions as d, EncodedTranslationOptions as i, NormalizedLookupOptions as l, DictionaryOptions as n, InlineTranslationOptions as o, DictionaryTranslationOptions as r, JsxTranslationOptions as s, BaseTranslationOptions as t, ResolutionOptions as u };
91
+ //# sourceMappingURL=options-x-8rtagw.d.cts.map
package/dist/types.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as InlineTranslationOptions, c as NormalizedLookupOptions, i as InlineResolveOptions, l as ResolutionOptions, n as DictionaryTranslationOptions, o as JsxTranslationOptions, r as EncodedTranslationOptions, s as LookupOptions, t as BaseTranslationOptions, u as RuntimeTranslationOptions } from "./options-BOz9P0yM.cjs";
2
- import { a as SyncResolutionFunctionWithFallback, i as SyncResolutionFunction, n as MFunctionType, o as TFunctionType, r as ResolveJsxTranslationFunction, t as GTFunctionType } from "./functions-BqtnSFF4.cjs";
1
+ import { a as InlineResolveOptions, c as LookupOptions, d as RuntimeTranslationOptions, i as EncodedTranslationOptions, l as NormalizedLookupOptions, n as DictionaryOptions, o as InlineTranslationOptions, r as DictionaryTranslationOptions, s as JsxTranslationOptions, t as BaseTranslationOptions, u as ResolutionOptions } from "./options-x-8rtagw.cjs";
2
+ import { a as SyncResolutionFunctionWithFallback, i as SyncResolutionFunction, n as MFunctionType, o as TFunctionType, r as ResolveJsxTranslationFunction, t as GTFunctionType } from "./functions-9y6F4zXC.cjs";
3
3
  import { t as RegisterableMessages } from "./message-C62MTLwE.cjs";
4
- import { a as Dictionary, c as DictionaryPath, d as Translation, l as DictionaryValue, o as DictionaryEntry, s as DictionaryKey } from "./TranslationsCache-DKwwyNRA.cjs";
5
- export { BaseTranslationOptions, type Dictionary, type DictionaryEntry, type DictionaryKey, type DictionaryPath, DictionaryTranslationOptions, type DictionaryValue, EncodedTranslationOptions, GTFunctionType, InlineResolveOptions, InlineTranslationOptions, JsxTranslationOptions, LookupOptions, MFunctionType, NormalizedLookupOptions, RegisterableMessages, ResolutionOptions, ResolveJsxTranslationFunction, RuntimeTranslationOptions, SyncResolutionFunction, SyncResolutionFunctionWithFallback, TFunctionType, type Translation };
4
+ import { a as Dictionary, c as DictionaryLeaf, f as Translation, l as DictionaryPath, o as DictionaryEntry, s as DictionaryKey, u as DictionaryValue } from "./TranslationsCache-EwvK0L53.cjs";
5
+ export { BaseTranslationOptions, type Dictionary, type DictionaryEntry, type DictionaryKey, type DictionaryLeaf, type DictionaryOptions, type DictionaryPath, DictionaryTranslationOptions, type DictionaryValue, EncodedTranslationOptions, GTFunctionType, InlineResolveOptions, InlineTranslationOptions, JsxTranslationOptions, LookupOptions, MFunctionType, NormalizedLookupOptions, RegisterableMessages, ResolutionOptions, ResolveJsxTranslationFunction, RuntimeTranslationOptions, SyncResolutionFunction, SyncResolutionFunctionWithFallback, TFunctionType, type Translation };
package/dist/types.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as InlineTranslationOptions, c as NormalizedLookupOptions, i as InlineResolveOptions, l as ResolutionOptions, n as DictionaryTranslationOptions, o as JsxTranslationOptions, r as EncodedTranslationOptions, s as LookupOptions, t as BaseTranslationOptions, u as RuntimeTranslationOptions } from "./options-gL1Zt8jG.mjs";
2
- import { a as SyncResolutionFunctionWithFallback, i as SyncResolutionFunction, n as MFunctionType, o as TFunctionType, r as ResolveJsxTranslationFunction, t as GTFunctionType } from "./functions-BdYU6e8M.mjs";
1
+ import { a as InlineResolveOptions, c as LookupOptions, d as RuntimeTranslationOptions, i as EncodedTranslationOptions, l as NormalizedLookupOptions, n as DictionaryOptions, o as InlineTranslationOptions, r as DictionaryTranslationOptions, s as JsxTranslationOptions, t as BaseTranslationOptions, u as ResolutionOptions } from "./options-Bd7cus3W.mjs";
2
+ import { a as SyncResolutionFunctionWithFallback, i as SyncResolutionFunction, n as MFunctionType, o as TFunctionType, r as ResolveJsxTranslationFunction, t as GTFunctionType } from "./functions-B2Dn3llc.mjs";
3
3
  import { t as RegisterableMessages } from "./message-BN4DirTg.mjs";
4
- import { a as Dictionary, c as DictionaryPath, d as Translation, l as DictionaryValue, o as DictionaryEntry, s as DictionaryKey } from "./TranslationsCache-CCbpu4hE.mjs";
5
- export { BaseTranslationOptions, type Dictionary, type DictionaryEntry, type DictionaryKey, type DictionaryPath, DictionaryTranslationOptions, type DictionaryValue, EncodedTranslationOptions, GTFunctionType, InlineResolveOptions, InlineTranslationOptions, JsxTranslationOptions, LookupOptions, MFunctionType, NormalizedLookupOptions, RegisterableMessages, ResolutionOptions, ResolveJsxTranslationFunction, RuntimeTranslationOptions, SyncResolutionFunction, SyncResolutionFunctionWithFallback, TFunctionType, type Translation };
4
+ import { a as Dictionary, c as DictionaryLeaf, f as Translation, l as DictionaryPath, o as DictionaryEntry, s as DictionaryKey, u as DictionaryValue } from "./TranslationsCache-liJZngtP.mjs";
5
+ export { BaseTranslationOptions, type Dictionary, type DictionaryEntry, type DictionaryKey, type DictionaryLeaf, type DictionaryOptions, type DictionaryPath, DictionaryTranslationOptions, type DictionaryValue, EncodedTranslationOptions, GTFunctionType, InlineResolveOptions, InlineTranslationOptions, JsxTranslationOptions, LookupOptions, MFunctionType, NormalizedLookupOptions, RegisterableMessages, ResolutionOptions, ResolveJsxTranslationFunction, RuntimeTranslationOptions, SyncResolutionFunction, SyncResolutionFunctionWithFallback, TFunctionType, type Translation };