@intlayer/i18next 9.7.0 → 9.7.2
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/esm/createInstance.mjs +2 -3
- package/dist/esm/getDictionary.mjs +2 -3
- package/dist/esm/getDictionaryDynamic.mjs +2 -3
- package/dist/esm/index.mjs +3 -4
- package/dist/esm/plugin/index.mjs +1 -2
- package/dist/esm/resolveTranslation.mjs +1 -2
- package/dist/types/createInstance.d.ts +0 -2
- package/dist/types/createInstance.d.ts.map +1 -1
- package/dist/types/getDictionary.d.ts +2 -3
- package/dist/types/getDictionary.d.ts.map +1 -1
- package/dist/types/getDictionaryDynamic.d.ts +2 -3
- package/dist/types/getDictionaryDynamic.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/plugin/index.d.ts +0 -2
- package/dist/types/plugin/index.d.ts.map +1 -1
- package/dist/types/resolveTranslation.d.ts +2 -4
- package/dist/types/resolveTranslation.d.ts.map +1 -1
- package/dist/types/typedTranslation.d.ts +1 -3
- package/dist/types/typedTranslation.d.ts.map +1 -1
- package/package.json +38 -38
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getInterpolationValues, resolveTranslation } from "./resolveTranslation.mjs";
|
|
2
|
-
import { internationalization, log } from "@intlayer/config/built";
|
|
3
2
|
import { getIntlayer } from "@intlayer/core/interpreter";
|
|
4
3
|
import { navigatePath, resolveMessageNodeToString } from "@intlayer/core/messageFormat";
|
|
4
|
+
import { internationalization, log } from "@intlayer/config/built";
|
|
5
5
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
6
6
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
7
7
|
import { getHTMLTextDir } from "@intlayer/core/localization";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/createInstance.ts
|
|
10
10
|
const warnIgnoredResources = (location) => {
|
|
11
11
|
getAppLogger({ log })(`${colorize(location, ANSIColors.CYAN)}: the ${colorize("`resources`", ANSIColors.CYAN)} option is ignored when using ${colorize("@intlayer/i18next", ANSIColors.MAGENTA)} — translations are served from the compiled intlayer dictionaries instead. Remove the resource imports and the ${colorize("`resources`", ANSIColors.CYAN)} option to reduce your bundle size.`);
|
|
12
12
|
};
|
|
@@ -218,6 +218,5 @@ const createInstance = (instanceOptions = {}) => {
|
|
|
218
218
|
return instance;
|
|
219
219
|
};
|
|
220
220
|
|
|
221
|
-
//#endregion
|
|
222
221
|
export { createInstance };
|
|
223
222
|
//# sourceMappingURL=createInstance.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { resolveTranslation } from "./resolveTranslation.mjs";
|
|
2
|
-
import { internationalization } from "@intlayer/config/built";
|
|
3
2
|
import { getDictionary as getDictionary$1 } from "@intlayer/core/interpreter";
|
|
3
|
+
import { internationalization } from "@intlayer/config/built";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/getDictionary.ts
|
|
6
6
|
/**
|
|
7
7
|
* Dictionary-accepting variant of `getFixedT`.
|
|
8
8
|
*
|
|
@@ -34,6 +34,5 @@ const getDictionary = ((dictionary, locale, keyPrefix) => {
|
|
|
34
34
|
};
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
//#endregion
|
|
38
37
|
export { getDictionary };
|
|
39
38
|
//# sourceMappingURL=getDictionary.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { resolveTranslation } from "./resolveTranslation.mjs";
|
|
2
|
-
import { internationalization } from "@intlayer/config/built";
|
|
3
2
|
import { getDictionary } from "@intlayer/core/interpreter";
|
|
3
|
+
import { internationalization } from "@intlayer/config/built";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/getDictionaryDynamic.ts
|
|
6
6
|
/**
|
|
7
7
|
* Dynamic dictionary-accepting variant of `getFixedT`.
|
|
8
8
|
*
|
|
@@ -31,6 +31,5 @@ const getDictionaryDynamic = (async (dictionaryPromise, key, locale, keyPrefix)
|
|
|
31
31
|
};
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
//#endregion
|
|
35
34
|
export { getDictionaryDynamic };
|
|
36
35
|
//# sourceMappingURL=getDictionaryDynamic.mjs.map
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getInterpolationValues, resolveTranslation } from "./resolveTranslation.mjs";
|
|
2
|
-
import { getDictionary } from "./getDictionary.mjs";
|
|
3
1
|
import { createInstance } from "./createInstance.mjs";
|
|
2
|
+
import { getDictionary } from "./getDictionary.mjs";
|
|
4
3
|
import { getDictionaryDynamic } from "./getDictionaryDynamic.mjs";
|
|
4
|
+
import { getInterpolationValues, resolveTranslation } from "./resolveTranslation.mjs";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/index.ts
|
|
7
7
|
const i18next = createInstance();
|
|
8
8
|
const dir = i18next.dir.bind(i18next);
|
|
9
9
|
const init = i18next.init.bind(i18next);
|
|
@@ -37,6 +37,5 @@ const loadLanguages = i18next.loadLanguages.bind(i18next);
|
|
|
37
37
|
*/
|
|
38
38
|
const keyFromSelector = (selector) => selector;
|
|
39
39
|
|
|
40
|
-
//#endregion
|
|
41
40
|
export { changeLanguage, createInstance, i18next as default, i18next, dir, exists, getDictionary, getDictionaryDynamic, getFixedT, getInterpolationValues, hasLoadedNamespace, init, keyFromSelector, loadLanguages, loadNamespaces, loadResources, reloadResources, resolveTranslation, setDefaultNamespace, t, use };
|
|
42
41
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -6,7 +6,7 @@ import { getConfiguration } from "@intlayer/config/node";
|
|
|
6
6
|
import { runOnce } from "@intlayer/engine/utils";
|
|
7
7
|
import { intlayer } from "vite-intlayer";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/plugin/index.ts
|
|
10
10
|
const i18nextVitePlugin = (options) => {
|
|
11
11
|
const intlayerConfig = getConfiguration();
|
|
12
12
|
const appLogger = getAppLogger(intlayerConfig);
|
|
@@ -26,6 +26,5 @@ const i18nextVitePlugin = (options) => {
|
|
|
26
26
|
return [...Array.isArray(basePlugins) ? basePlugins : [basePlugins], compatPlugin];
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
//#endregion
|
|
30
29
|
export { i18nextVitePlugin as default, i18nextVitePlugin };
|
|
31
30
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -2,7 +2,7 @@ import { getIntlayer } from "@intlayer/core/interpreter";
|
|
|
2
2
|
import { navigatePath, resolveMessageNodeToString } from "@intlayer/core/messageFormat";
|
|
3
3
|
import { getDictionaries } from "@intlayer/dictionaries-entry";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/resolveTranslation.ts
|
|
6
6
|
/**
|
|
7
7
|
* Shared i18next-dialect translation resolution.
|
|
8
8
|
*
|
|
@@ -149,6 +149,5 @@ const resolveTranslation = ({ locale, namespace, key, options, keySeparator = ".
|
|
|
149
149
|
return resolved;
|
|
150
150
|
};
|
|
151
151
|
|
|
152
|
-
//#endregion
|
|
153
152
|
export { getInterpolationValues, resolveTranslation };
|
|
154
153
|
//# sourceMappingURL=resolveTranslation.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createInstance.d.ts","names":[],"sources":["../../src/createInstance.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"createInstance.d.ts","names":["_createInstance"],"sources":["../../src/createInstance.ts"],"mappings":";qBAkCa,uBAAuBA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ScopedTFunction, TypedTFunction } from "./typedTranslation.js";
|
|
2
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
2
|
import { DictionaryKeys, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
4
|
-
|
|
3
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
5
4
|
/**
|
|
6
5
|
* Overload set for {@link getDictionary}: without a key prefix the returned
|
|
7
6
|
* `t()` is typed against the dictionary's dot-paths; with a prefix the keys
|
|
@@ -28,5 +27,5 @@ type GetDictionary = {
|
|
|
28
27
|
* t('counter.label');
|
|
29
28
|
*/
|
|
30
29
|
export declare const getDictionary: GetDictionary;
|
|
31
|
-
|
|
30
|
+
export {};
|
|
32
31
|
//# sourceMappingURL=getDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"mappings":";;;;;;;;KAgBK;GACF,UAAU,YACT,YAAY,GACZ,SAAS,gBACR,eAAe,WAAW;GAC5B,UAAU,YAAY,uBACrB,YAAY,GACZ,QAAQ,2BACR,WAAW,SACV,gBAAgB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;qBAmBnC,eAmBP"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ScopedTFunction, TypedTFunction } from "./typedTranslation.js";
|
|
2
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
2
|
import { DictionaryKeys, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
4
|
-
|
|
3
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
5
4
|
/**
|
|
6
5
|
* Overload set for {@link getDictionaryDynamic}: without a key prefix the
|
|
7
6
|
* returned `t()` is typed against the dictionary's dot-paths; with a prefix
|
|
@@ -23,5 +22,5 @@ type GetDictionaryDynamic = {
|
|
|
23
22
|
* t('counter.label');
|
|
24
23
|
*/
|
|
25
24
|
export declare const getDictionaryDynamic: GetDictionaryDynamic;
|
|
26
|
-
|
|
25
|
+
export {};
|
|
27
26
|
//# sourceMappingURL=getDictionaryDynamic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDictionaryDynamic.d.ts","names":[],"sources":["../../src/getDictionaryDynamic.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDictionaryDynamic.d.ts","names":[],"sources":["../../src/getDictionaryDynamic.ts"],"mappings":";;;;;;;;KAiBK;GACF,UAAU,YAAY,UAAU,gBAC/B,mBAAmB,0BAA0B,QAAQ,KACrD,KAAK,GACL,SAAS,gBACR,QAAQ,eAAe;GACzB,UAAU,YAAY,UAAU,gBAAgB,uBAC/C,mBAAmB,0BAA0B,QAAQ,KACrD,KAAK,GACL,QAAQ,2BACR,WAAW,SACV,QAAQ,gBAAgB,GAAG;;;;;;;;;;;;;qBAcnB,sBA6BP"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { getDictionary } from "./getDictionary.js";
|
|
|
4
4
|
import { getDictionaryDynamic } from "./getDictionaryDynamic.js";
|
|
5
5
|
import { ResolveTranslationParams, getInterpolationValues, resolveTranslation } from "./resolveTranslation.js";
|
|
6
6
|
import { InitOptions, TFunction, TOptions, changeLanguage as changeLanguage$1, dir as dir$1, exists as exists$1, hasLoadedNamespace as hasLoadedNamespace$1, i18n, i18n as i18n$1, init as init$1, loadLanguages as loadLanguages$1, loadNamespaces as loadNamespaces$1, loadResources as loadResources$1, reloadResources as reloadResources$1, setDefaultNamespace as setDefaultNamespace$1, t as t$1, use as use$1 } from "i18next";
|
|
7
|
-
//#region src/index.d.ts
|
|
8
7
|
declare const i18next: i18n$1;
|
|
9
8
|
export declare const dir: typeof dir$1;
|
|
10
9
|
export declare const init: typeof init$1;
|
|
@@ -37,6 +36,5 @@ export declare const loadLanguages: typeof loadLanguages$1;
|
|
|
37
36
|
* provided to keep `.keyFromSelector(...)` call-sites working.
|
|
38
37
|
*/
|
|
39
38
|
export declare const keyFromSelector: (selector: unknown) => unknown;
|
|
40
|
-
//#endregion
|
|
41
39
|
export { type ContentAtPath, type InitOptions, type ResolveTranslationParams, type ScopedDotPaths, type ScopedTFunction, type TFunction, type TOptions, type TranslatedValue, type TypedGetFixedT, type TypedTFunction, createInstance, i18next as default, i18next, getDictionary, getDictionaryDynamic, getInterpolationValues, type i18n, resolveTranslation };
|
|
42
40
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["i18n","_dir","_init","_loadResources","_reloadResources","_use","_changeLanguage","_t","_exists","_setDefaultNamespace","_hasLoadedNamespace","_loadNamespaces","_loadLanguages"],"sources":["../../src/index.ts"],"mappings":";;;;;;cAkCM,SAASA;qBAMF,YAAYC;qBACZ,aAAaC;qBACb,sBAAsBC;qBAEtB,wBAAwBC;qBAExB,YAAYC;qBACZ,uBAAuBC;;;;;;;;;;;;;qBAevB,WAAW;qBAIX,UAAUC;qBACV,eAAeC;qBACf,4BAA4BC;qBAE5B,2BAA2BC;qBAE3B,uBAAuBC;qBAEvB,sBAAsBC;;;;;;qBAQtB,kBAAe"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { PluginOption } from "vite";
|
|
2
2
|
import { intlayer } from "vite-intlayer";
|
|
3
|
-
//#region src/plugin/index.d.ts
|
|
4
3
|
export declare const i18nextVitePlugin: (options?: Parameters<typeof intlayer>[0]) => PluginOption[];
|
|
5
|
-
//#endregion
|
|
6
4
|
export { i18nextVitePlugin as default };
|
|
7
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;qBASa,oBAAiB,UAClB,kBAAkB,iBAC3B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { TOptions } from "i18next";
|
|
2
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
1
|
import { MessageValues } from "@intlayer/core/messageFormat";
|
|
4
|
-
|
|
2
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
|
+
import { TOptions } from "i18next";
|
|
5
4
|
/** Extracts interpolation values from i18next `t()` options. */
|
|
6
5
|
export declare const getInterpolationValues: (options?: TOptions) => MessageValues;
|
|
7
6
|
export type ResolveTranslationParams = {
|
|
@@ -41,5 +40,4 @@ export type ResolveTranslationParams = {
|
|
|
41
40
|
* and key echo).
|
|
42
41
|
*/
|
|
43
42
|
export declare const resolveTranslation: ({ locale, namespace, key, options, keySeparator, nsSeparator, depth, dictionaryContent }: ResolveTranslationParams) => unknown;
|
|
44
|
-
//#endregion
|
|
45
43
|
//# sourceMappingURL=resolveTranslation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveTranslation.d.ts","names":[],"sources":["../../src/resolveTranslation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveTranslation.d.ts","names":[],"sources":["../../src/resolveTranslation.ts"],"mappings":";;;;qBAuHa,yBAAsB,UAAc,aAAW;YAmBhD;;EAEV,QAAQ;;EAER;;EAEA;;EAEA,UAAU;;EAEV;;EAEA;;EAEA;;;;;;;;;;;EAWA;;;;;;;;;;;qBAYW,uBAAkB,QAAA,WAAA,KAAA,SAAA,cAAA,aAAA,OAAA,qBAS5B"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { TOptions } from "i18next";
|
|
2
1
|
import { DictionaryKeys } from "@intlayer/types/module_augmentation";
|
|
2
|
+
import { TOptions } from "i18next";
|
|
3
3
|
import { GetNestingResult } from "@intlayer/core/interpreter";
|
|
4
4
|
import { ValidDotPathsFor } from "@intlayer/core/transpiler";
|
|
5
|
-
//#region src/typedTranslation.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* The interpreter-resolved content type at dot-path `P` of dictionary `N` —
|
|
8
7
|
* the same type strength as the base `useIntlayer` hook.
|
|
@@ -55,5 +54,4 @@ export type TypedGetFixedT = {
|
|
|
55
54
|
<N extends DictionaryKeys, Prefix extends string>(lng: string | readonly string[] | null, ns: N | null | undefined, keyPrefix: Prefix): ScopedTFunction<N, Prefix>;
|
|
56
55
|
<N extends DictionaryKeys>(lng: string | readonly string[] | null, ns?: N | null): TypedTFunction<N>;
|
|
57
56
|
};
|
|
58
|
-
//#endregion
|
|
59
57
|
//# sourceMappingURL=typedTranslation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedTranslation.d.ts","names":[],"sources":["../../src/typedTranslation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"typedTranslation.d.ts","names":[],"sources":["../../src/typedTranslation.ts"],"mappings":";;;;;;;;YASY,cAAc,UAAU,gBAAgB,KAAK,iBAAiB,GAAG;;;;;;YAOjE,gBAAgB,UAAU,gBAAgB,KACpD,cAAc,GAAG,oBAAoB,cAAc,GAAG;;;;;YAM5C,eAAe,UAAU,gBAAgB,yBACnD,iBAAiB,kBAAiB,YAC9B,oBAAoB,gBAAgB,iBAClC;;;;;;;;YAWI,eAAe,UAAU;;GAElC,UAAU,iBAAiB,IAC1B,KAAK,IAAI,KACT,SAAS;IAAa;MACrB,cAAc,GAAG;;GAEnB,UAAU,iBAAiB,IAC1B,KAAK,IAAI,KACT,wBAAwB,mBACxB,eAAe,WACd,gBAAgB,GAAG;;;;;;;YAQZ,gBAAgB,UAAU,gBAAgB;;GAEnD,UAAU,eAAe,GAAG,SAC3B,KAAK,IAAI,KACT,SAAS;IAAa;MACrB,cAAc,MAAM,UAAU;;GAEhC,UAAU,eAAe,GAAG,SAC3B,KAAK,IAAI,KACT,wBAAwB,mBACxB,eAAe,WACd,gBAAgB,MAAM,UAAU;;;;;;YAOzB;GACT,UAAU,gBAAgB,uBACzB,wCACA,IAAI,sBACJ,WAAW,SACV,gBAAgB,GAAG;GACrB,UAAU,gBACT,wCACA,KAAK,WACJ,eAAe"}
|
package/package.json
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/i18next",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "i18next API adapter for intlayer — drop-in compatibility layer that exposes the i18next interface while using @intlayer/core under the hood",
|
|
6
6
|
"keywords": [
|
|
7
|
-
"intlayer",
|
|
8
|
-
"i18next",
|
|
9
|
-
"i18n",
|
|
10
7
|
"adapter",
|
|
11
|
-
"compatibility"
|
|
8
|
+
"compatibility",
|
|
9
|
+
"i18n",
|
|
10
|
+
"i18next",
|
|
11
|
+
"intlayer"
|
|
12
12
|
],
|
|
13
13
|
"homepage": "https://intlayer.org",
|
|
14
14
|
"bugs": {
|
|
15
15
|
"url": "https://github.com/aymericzip/intlayer/issues"
|
|
16
16
|
},
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/aymericzip/intlayer.git"
|
|
20
|
-
},
|
|
21
17
|
"license": "Apache-2.0",
|
|
22
18
|
"author": {
|
|
23
19
|
"name": "Aymeric PINEAU",
|
|
@@ -30,7 +26,25 @@
|
|
|
30
26
|
"url": "https://github.com/aymericzip"
|
|
31
27
|
}
|
|
32
28
|
],
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/aymericzip/intlayer.git"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"./dist",
|
|
35
|
+
"./package.json"
|
|
36
|
+
],
|
|
33
37
|
"sideEffects": false,
|
|
38
|
+
"main": "dist/esm/index.mjs",
|
|
39
|
+
"module": "dist/esm/index.mjs",
|
|
40
|
+
"types": "dist/types/index.d.ts",
|
|
41
|
+
"typesVersions": {
|
|
42
|
+
"*": {
|
|
43
|
+
"plugin": [
|
|
44
|
+
"./dist/types/plugin/index.d.ts"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
34
48
|
"exports": {
|
|
35
49
|
".": {
|
|
36
50
|
"types": "./dist/types/index.d.ts",
|
|
@@ -42,29 +56,15 @@
|
|
|
42
56
|
},
|
|
43
57
|
"./package.json": "./package.json"
|
|
44
58
|
},
|
|
45
|
-
"main": "dist/esm/index.mjs",
|
|
46
|
-
"module": "dist/esm/index.mjs",
|
|
47
|
-
"types": "dist/types/index.d.ts",
|
|
48
|
-
"typesVersions": {
|
|
49
|
-
"*": {
|
|
50
|
-
"plugin": [
|
|
51
|
-
"./dist/types/plugin/index.d.ts"
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"files": [
|
|
56
|
-
"./dist",
|
|
57
|
-
"./package.json"
|
|
58
|
-
],
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "bun --bun tsdown --config tsdown.config.ts",
|
|
61
61
|
"build:ci": "bun --bun tsdown --config tsdown.config.ts",
|
|
62
62
|
"clean": "bun --bun rimraf ./dist .turbo",
|
|
63
63
|
"dev": "bun --bun tsdown --config tsdown.config.ts --watch",
|
|
64
|
-
"format": "
|
|
65
|
-
"format:fix": "
|
|
66
|
-
"lint": "
|
|
67
|
-
"lint:fix": "
|
|
64
|
+
"format": "oxfmt --check .",
|
|
65
|
+
"format:fix": "oxfmt .",
|
|
66
|
+
"lint": "oxlint .",
|
|
67
|
+
"lint:fix": "oxlint --fix .",
|
|
68
68
|
"prepublish": "cp -f ../../README.md ./README.md",
|
|
69
69
|
"publish": "bun publish || true",
|
|
70
70
|
"publish:canary": "bun publish --access public --tag canary || true",
|
|
@@ -75,24 +75,24 @@
|
|
|
75
75
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@intlayer/config": "9.
|
|
79
|
-
"@intlayer/core": "9.7.
|
|
80
|
-
"@intlayer/dictionaries-entry": "9.
|
|
81
|
-
"@intlayer/engine": "9.7.
|
|
82
|
-
"@intlayer/types": "9.7.
|
|
83
|
-
"vite-intlayer": "9.
|
|
78
|
+
"@intlayer/config": "9.7.2",
|
|
79
|
+
"@intlayer/core": "9.7.2",
|
|
80
|
+
"@intlayer/dictionaries-entry": "9.7.2",
|
|
81
|
+
"@intlayer/engine": "9.7.2",
|
|
82
|
+
"@intlayer/types": "9.7.2",
|
|
83
|
+
"vite-intlayer": "9.7.2"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@types/node": "^26",
|
|
87
87
|
"@utils/ts-config": "1.0.4",
|
|
88
88
|
"@utils/ts-config-types": "1.0.4",
|
|
89
89
|
"@utils/tsdown-config": "1.0.4",
|
|
90
|
-
"i18next": "26.
|
|
91
|
-
"rimraf": "6.1.
|
|
92
|
-
"tsdown": "0.23.
|
|
90
|
+
"i18next": "26.7.1",
|
|
91
|
+
"rimraf": "6.1.4",
|
|
92
|
+
"tsdown": "0.23.7",
|
|
93
93
|
"typescript": "7.0.2",
|
|
94
|
-
"vite": "8.3.
|
|
95
|
-
"vitest": "5.0
|
|
94
|
+
"vite": "8.3.7",
|
|
95
|
+
"vitest": "5.1.0"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"i18next": ">=20.0.0",
|