@inyur/nuxt-i18n
v1.0.33
Published
## Setup
Downloads
397
Readme
@inyur/nuxt-i18n
Setup
- Add
@inyur/nuxt-i18n
dependency to your project
npm install --save @inyur/nuxt-i18n
- Add
@inyur/nuxt-i18n
to themodules
section ofnuxt.config.js
export default {
modules: [
'@inyur/nuxt-i18n',
]
}
Requirements
Required env variables:
- LOCALE_COOKIE_DOMAIN
- LOCALE_COOKIE_KEY
Configuration
// nuxt.config.js
module.exports = {
inyurI18n: {
// You can limit needed locales, optional
// By default this module use all awailable languages
// supported by module
// locales: ['en'], // Optional
// You can choose strategy
// Available 'no_prefix' and 'prefix'
// By default use no_prefix strategy
// strategy: 'no_prefix', // Optional
}
}
***
This module automaticaly use or create directory @/translations
And all languange files inside if it not existed
This module use @nuxtjs/i18n internaly
For more docs see https://i18n.nuxtjs.org/
License
Copyright (c) Igor Pylypenko