You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -25,13 +25,13 @@ define i18n middleware for Hono
25
25
26
26
| Parameter | Type | Description |
27
27
| ------ | ------ | ------ |
28
-
|`options`|`Options`| An i18n options like vue-i18n [`createI18n`]([https://vue-i18n.intlify.dev/guide/#javascript](https://vue-i18n.intlify.dev/guide/#javascript)), which are passed to `createCoreContext` of `@intlify/core`, see about details [`CoreOptions` of `@intlify/core`](https://github.com/intlify/vue-i18n-next/blob/6a9947dd3e0fe90de7be9c87ea876b8779998de5/packages/core-base/src/context.ts#L196-L216)|
28
+
|`options`|`Options`| An intlify options like vue-i18n [`createI18n`]([https://vue-i18n.intlify.dev/guide/#javascript](https://vue-i18n.intlify.dev/guide/#javascript)), which are passed to `createCoreContext` of `@intlify/core`, see about details [`CoreOptions` of `@intlify/core`](https://github.com/intlify/vue-i18n-next/blob/6a9947dd3e0fe90de7be9c87ea876b8779998de5/packages/core-base/src/context.ts#L196-L216)|
29
29
30
30
## Returns
31
31
32
32
`MiddlewareHandler`
33
33
34
-
A defined i18n middleware
34
+
A defined intlify middleware
35
35
36
36
## Description
37
37
@@ -41,9 +41,9 @@ Define the middleware to be specified for Hono [`app.use`]([https://hono.dev/gui
Copy file name to clipboardExpand all lines: packages/hono/docs/functions/getDetectorLocale.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
# Function: getDetectorLocale()
8
8
9
9
```ts
10
-
function getDetectorLocale(ctx):Promise<Intl.Locale>;
10
+
function getDetectorLocale(c):Promise<Intl.Locale>;
11
11
```
12
12
13
13
get a locale which is detected with locale detector.
@@ -16,7 +16,7 @@ get a locale which is detected with locale detector.
16
16
17
17
| Parameter | Type | Description |
18
18
| ------ | ------ | ------ |
19
-
|`ctx`|`Context`| A Hono context |
19
+
|`c`|`Context`| A Hono context |
20
20
21
21
## Returns
22
22
@@ -26,16 +26,16 @@ Return an `Intl.Locale` instance representing the detected locale
26
26
27
27
## Description
28
28
29
-
The locale obtainable via this function comes from the locale detector specified in the `locale` option of the [defineI18nMiddleware](defineI18nMiddleware.md).
29
+
The locale obtainable via this function comes from the locale detector specified in the `locale` option of the [defineIntlifyMiddleware](defineIntlifyMiddleware.md).
0 commit comments