Giter VIP home page Giter VIP logo

h3's People

Contributors

daviddesloovere avatar kazupon avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

h3's Issues

`useTranslation` errors when used inside a Nitro request hook

Describe the bug

When used inside a Nitro request hook, useTranslation (for server-side translation) errors:
image

Reproduction

nitroApp.hooks.hook("request", async (event) => { const t = await useTranslation(event) })

System Info

------------------------------
- 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:    -
------------------------------

Used Package Manager

n/a

Additional context

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!

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

bun
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/devcontainer.json
  • ghcr.io/devcontainers/features/node 1
  • ghcr.io/shyim/devcontainers-features/bun 0
  • ghcr.io/devcontainers-community/features/deno 1
github-actions
.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

  • Check this box to trigger a request for Renovate to run again on this repository

Add devcontainer

Clear and concise description of the problem

Read the CONTRIBUTING.md and noticed bun is required. I'm on... Windows :-) And bun isn't available for Windows (except WSL).

Suggested solution

Add support for VS Code dev container.

Alternative

Wait for bun on Windows.

Additional context

No response

Validations

detectLocaleFromCookie helper

Clear and concise description of the problem

The Only default helper to resolve the locale is detectLocaleFromAcceptLanguageHeader. To get it from a cookie, one needs to write custom code.

Suggested solution

Implement a detectLocaleFromCookie helper

Alternative

Using custom function is already possible, but since there is a helper for accept-language already, more helpers make sense.

Additional context

No response

Validations

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.