适用于 Nuxt 的 I18n 模块
Nuxt 应用的国际化 (i18n)。
vue-i18n@nuxtjs/i18n 模块安装到您的项目中npx nuxi@latest module add i18nnuxt.config.ts 中的 i18n 关键字配置模块{
modules: [
'@nuxtjs/i18n',
],
i18n: {
locales: [
{ code: 'en', language: 'en-US' },
{ code: 'fr', language: 'fr-FR' }
],
defaultLocale: 'en',
}
}## 链接 - [发布说明](./CHANGELOG.md) - [社区](https://discord.nuxtjs.org/) (「️❓ help」支持论坛) - 文档 - [版本 10.x](https://next.i18n.nuxtjs.org/) - [9.x 版本](https://v9.i18n.nuxtjs.org/) - [8.x 版本](https://v9.i18n.nuxtjs.org/docs/v8) - [7.x 版本 (Nuxt 2 - 到期)](https://v9.i18n.nuxtjs.org/docs/v7) ## ©️ 许可证
MIT 许可 - 版权所有 (c) Nuxt 社区
暂无开放 Issues,或尚未同步最近议题。