
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
nuxt-i18n
Advanced tools
i18n for your Nuxt project
yarn add nuxt-i18n # yarn
npm i nuxt-i18n # npm
Firstly, you need to add nuxt-i18n
to your Nuxt config.
// nuxt.config.js
{
modules: [
[
'nuxt-i18n',
{
locales: ['en', 'es'],
defaultLocale: 'en',
vueI18n: {
fallbackLocale: 'en',
messages: {
en: {
greeting: 'Hello world!'
},
es: {
greeting: '¡Hola mundo!'
}
}
}
}
]
]
}
Then you can start using nuxt-i18n
in your Vue components!
<template>
<main>
<h1>{{ $t('greeting') }}</h1>
<nuxt-link
v-if="$i18n.locale !== 'en'"
:to="switchLocalePath('en')"
>
English
</nuxt-link>
<nuxt-link
v-if="$i18n.locale !== 'es'"
:to="switchLocalePath('es')"
>
Español
</nuxt-link>
</main>
</template>
If you would like to find out more about how to use nuxt-i18n
, check out the docs!
All contributions are welcome! If you would like to make some changes, follow these steps:
cd my-nuxt-project
mkdir modules
git clone git@github.com:<username>/i18n-module.git modules/i18n-module # ssh
git clone https://github.com/<username>/i18n-module.git modules/i18n-module # https
// nuxt.config.js
{
modules: [
['./modules/i18n-module', {
// options...
}]
]
}
cd modules/i18n-module/
yarn # yarn
npm i # npm
git checkout -b my-new-feature
yarn lint && yarn test # yarn
npm run lint && npm test # npm
git clone git@github.com:<username>/i18n-module.git # ssh
git clone https://github.com/<username>/i18n-module.git # https
cd i18n-module
yarn # yarn
npm i # npm
git checkout -b my-new-feature
yarn docs:dev # yarn
npm run docs:dev # npm
docs/
directoryIf you're adding new pages, make sure you add them to the table of contents in
docs/.vuepress/config
If you have any questions or issues, check out Discord server.
MIT License - Copyright (c) Nuxt Community
FAQs
i18n for Nuxt
The npm package nuxt-i18n receives a total of 15,153 weekly downloads. As such, nuxt-i18n popularity was classified as popular.
We found that nuxt-i18n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.