intlify / intlify/utils

drop h3 and hono entries

Open
#69 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
TypeScript
Stars
17
Forks
1
PR merge metrics
No merged PRs in 30d

Description

### Clear and concise description of the problem

h3 v3 is going to support web standard Request/Response as default.
`@intliy/utils` has already supported utlifies for web standard Request/Response such as `getHeaderLanguages`.
We can use it to handle for h3 and hono, below example:

```js
import { getHeaderLanguages } from '@intliy/utils'

// h3
import { H3, serve } from 'h3'

const app = new H3().get('/', (event) => {
const languages = getHeaderLanguages(event.req)
})

// hono
import { Hono } from 'hono'
const app = new Hono()

app.get('/', (c) => {
const languages = getHeaderLanguages(c.req)
})
```

### Suggested solution

N/A

### Alternative

_No response_

### Additional context

_No response_

### Validations

- [x] Follow our [Code of Conduct](https://github.com/intlify/.github/blob/main/CODE_OF_CONDUCT.md)
- [x] Read the [Contributing Guide](https://github.com/intlify/utils/blob/main/CONTRIBUTING.md).
- [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.