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
`eventHandler((event) => {})`) as their first argument. (Exclud `useTranslation`) return the [`Intl.Locale`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
120
118
121
119
### Translations
122
120
123
121
-`useTranslation(event)`: use translation function
124
122
125
123
### Headers
126
124
127
-
-`getHeaderLocale(event)`: get locale from `accept-language` header
128
-
-`getHeaderLocales(event)`: get some locales from `accept-language` header
125
+
-`getHeaderLocale(event, options)`: get locale from `accept-language` header
126
+
-`getHeaderLocales(event, options)`: get some locales from `accept-language` header
129
127
130
128
### Cookies
131
129
132
-
-`getCookieLocale()`: get locale from cookie
133
-
-`setCookieLocale()`: set locale to cookie
130
+
-`getCookieLocale(event, options)`: get locale from cookie
131
+
-`setCookieLocale(event, options)`: set locale to cookie
134
132
135
133
### Misc
136
134
137
-
-`getPathLocale(event)`: get locale from path
138
-
-`getQueryLocale(event)`: get locale from query
135
+
-`getPathLocale(event, options)`: get locale from path
136
+
-`getQueryLocale(event, options)`: get locale from query
139
137
140
138
## Helpers
141
139
142
-
-`detectLocaleFromAcceptLanguageHeader`: detect locale from `accept-language`
143
-
header
140
+
-`detectLocaleFromAcceptLanguageHeader(event)`: detect locale from `accept-language` header
144
141
145
142
## 🙌 Contributing guidelines
146
143
147
-
If you are interested in contributing to `@intlify/h3`, I highly recommend
148
-
checking out [the contributing guidelines](/CONTRIBUTING.md) here. You'll find
149
-
all the relevant information such as
150
-
[how to make a PR](/CONTRIBUTING.md#pull-request-guidelines),
151
-
[how to setup development](/CONTRIBUTING.md#development-setup)) etc., there.
144
+
If you are interested in contributing to `@intlify/h3`, I highly recommend checking out [the contributing guidelines](/CONTRIBUTING.md) here. You'll find all the relevant information such as [how to make a PR](/CONTRIBUTING.md#pull-request-guidelines), [how to setup development](/CONTRIBUTING.md#development-setup)) etc., there.
0 commit comments