hono-intlayer 9.4.3 → 9.4.4
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/types/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Locale } from "@intlayer/types/allLocales";
|
|
|
3
3
|
import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
4
4
|
import { Context, MiddlewareHandler } from "hono";
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
declare const translateFunction: (context: Context) => <T extends string>(content: StrictModeLocaleMap<T> | string, locale?: Locale) => T;
|
|
6
|
+
export declare const translateFunction: (context: Context) => <T extends string>(content: StrictModeLocaleMap<T> | string, locale?: Locale) => T;
|
|
7
7
|
/**
|
|
8
8
|
* Hono middleware that detects the user's locale and populates context with Intlayer data.
|
|
9
9
|
*
|
|
@@ -23,7 +23,7 @@ declare const translateFunction: (context: Context) => <T extends string>(conten
|
|
|
23
23
|
* app.use('*', intlayer());
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
declare const intlayer: () => MiddlewareHandler;
|
|
26
|
+
export declare const intlayer: () => MiddlewareHandler;
|
|
27
27
|
/**
|
|
28
28
|
* Translation function to retrieve content for the current locale.
|
|
29
29
|
*
|
|
@@ -46,9 +46,8 @@ declare const intlayer: () => MiddlewareHandler;
|
|
|
46
46
|
* });
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
|
-
declare const t: <Content = string>(content: StrictModeLocaleMap<Content>, locale?: Locale) => Content;
|
|
50
|
-
declare const getIntlayer: typeof getIntlayer$1;
|
|
51
|
-
declare const getDictionary: typeof getDictionary$1;
|
|
49
|
+
export declare const t: <Content = string>(content: StrictModeLocaleMap<Content>, locale?: Locale) => Content;
|
|
50
|
+
export declare const getIntlayer: typeof getIntlayer$1;
|
|
51
|
+
export declare const getDictionary: typeof getDictionary$1;
|
|
52
52
|
//#endregion
|
|
53
|
-
export { getDictionary, getIntlayer, intlayer, t, translateFunction };
|
|
54
53
|
//# 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":[],"sources":["../../src/index.ts"],"mappings":";;;;;qBAsCa,oBAAiB,SAClB,aACT,kBAAgB,SACN,oBAAoB,aAAW,SAC/B,WACR;;;;;;;;;;;;;;;;;;;;qBAoDQ,gBACP;;;;;;;;;;;;;;;;;;;;;;;qBAwEO,IAAK,kBAAgB,SACvB,oBAAoB,UAAQ,SAC5B,WACR;qBAyBU,oBAAoB;qBAwBpB,sBAAsB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hono-intlayer",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Manage internationalization i18n in a simple way for hono application.",
|
|
6
6
|
"keywords": [
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@intlayer/config": "9.4.
|
|
79
|
-
"@intlayer/core": "9.4.
|
|
80
|
-
"@intlayer/engine": "9.4.
|
|
81
|
-
"@intlayer/types": "9.4.
|
|
78
|
+
"@intlayer/config": "9.4.4",
|
|
79
|
+
"@intlayer/core": "9.4.4",
|
|
80
|
+
"@intlayer/engine": "9.4.4",
|
|
81
|
+
"@intlayer/types": "9.4.4",
|
|
82
82
|
"cls-hooked": "4.2.2"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"@utils/tsdown-config": "1.0.4",
|
|
90
90
|
"hono": "4.13.1",
|
|
91
91
|
"rimraf": "6.1.3",
|
|
92
|
-
"tsdown": "0.
|
|
92
|
+
"tsdown": "0.23.0",
|
|
93
93
|
"typescript": "7.0.2",
|
|
94
|
-
"vitest": "
|
|
94
|
+
"vitest": "5.0.0"
|
|
95
95
|
},
|
|
96
96
|
"engines": {
|
|
97
97
|
"node": ">=14.18"
|