
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
nuxt-language-negotiation
Advanced tools
This module provides basic multi-language support for a Nuxt 3 app. It's minimal by design and tries to do one thing only.
Accept-Language
or
custom (e.g. via API).languageMapping
meta propertyThis module is not a replacement for @nuxtjs/i18n and doesn't aim to be one. The following features are not provided and are left to the user of the module:
export default defineNuxtConfig({
modules: ['nuxt-language-negotiation'],
languageNegotiation: {
// Define the available languages.
availableLanguages: ['en', 'de', 'fr', 'it'],
// We use two negotiators: Path prefix takes precedence. In cases where no
// path prefix is available, we fallback to Accept-Language headers.
negotiators: ['pathPrefix', 'acceptLanguage'],
// Write debug messages to the console on client and server.
debug: true,
},
})
The module assumes the following:
/en/search
, /de/suche
, etc./:language/product/:id
./german-landing-page
only available in German, so it defines de
in
route.meta.language.This means your pages directory should look like this:
pages/
search.vue
products/
[id].vue
index.vue
landing-page.vue
index.vue
FAQs
Simple language negotiation for Nuxt 3.
The npm package nuxt-language-negotiation receives a total of 263 weekly downloads. As such, nuxt-language-negotiation popularity was classified as not popular.
We found that nuxt-language-negotiation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.