intlify / h3 Goto Github PK
View Code? Open in Web Editor NEWInternationalization middleware & utilities for h3
License: MIT License
Internationalization middleware & utilities for h3
License: MIT License
When used inside a Nitro request hook, useTranslation (for server-side translation) errors:
nitroApp.hooks.hook("request", async (event) => { const t = await useTranslation(event) })
------------------------------
- Operating System: Linux
- Node Version: v21.1.0
- Nuxt Version: 3.11.2
- CLI Version: 3.12.0
- Nitro Version: 2.9.6
- Package Manager: [email protected]
- Builder: -
- User Config: nitro, i18n, devtools, runtimeConfig, experimental, vite
- Runtime Modules: @nuxtjs/[email protected]
- Build Modules: -
------------------------------
n/a
The reproduction provided is extremely minimal as that's all that needs to be done in order to trigger the error. If necessary, I can provide a less minimal reproduction, please do let me know!
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@vitest/coverage-v8
, vitest
)package.json
@intlify/core ^9.10.1
@intlify/utils ^0.13.0
@types/node ^20.6.0
@types/supertest ^2.0.12
@vitest/coverage-v8 ^1.3.0
bumpp ^9.2.0
gh-changelogen ^0.2.8
h3 ^1.11.0
lint-staged ^15.0.2
supertest ^6.3.3
typescript ^5.3.0
unbuild ^2.0.0
vitest ^1.3.0
node >= 18
.devcontainer/devcontainer.json
ghcr.io/devcontainers/features/node 1
ghcr.io/shyim/devcontainers-features/bun 0
ghcr.io/devcontainers-community/features/deno 1
.github/workflows/ci.yml
actions/checkout v4
denoland/setup-deno v1
actions/checkout v4
denoland/setup-deno v1
oven-sh/setup-bun v1
actions/setup-node v3
actions/checkout v4
denoland/setup-deno v1
oven-sh/setup-bun v1
actions/setup-node v3
actions/checkout v4
denoland/setup-deno v1
oven-sh/setup-bun v1
actions/setup-node v3
.github/workflows/github-label-sync.yml
r7kamura/github-label-sync-action v0
.github/workflows/release.yml
actions/checkout v4
denoland/setup-deno v1
oven-sh/setup-bun v1
actions/setup-node v3
jungwinter/split v2
stefanzweifel/git-auto-commit-action v5
.github/workflows/reproduire.yml
actions/checkout v4
Hebilicious/reproduire v0.0.9@4b686ae9cbb72dad60f001d278b6e3b2ce40a9ac
Read the CONTRIBUTING.md and noticed bun is required. I'm on... Windows :-) And bun isn't available for Windows (except WSL).
Add support for VS Code dev container.
Wait for bun on Windows.
No response
ref: https://vue-i18n.intlify.dev/guide/advanced/typescript.html#resource-keys-completion-supporting
same vue-i18n
No response
No response
The Only default helper to resolve the locale is detectLocaleFromAcceptLanguageHeader
. To get it from a cookie, one needs to write custom code.
Implement a detectLocaleFromCookie
helper
Using custom function is already possible, but since there is a helper for accept-language already, more helpers make sense.
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.