@inyur/nuxt-i18n

1.0.33 • Public • Published

@inyur/nuxt-i18n

Setup

  1. Add @inyur/nuxt-i18n dependency to your project
npm install --save @inyur/nuxt-i18n
  1. Add @inyur/nuxt-i18n to the modules section of nuxt.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

MIT License

Copyright (c) Igor Pylypenko

Readme

Keywords

none

Package Sidebar

Install

npm i @inyur/nuxt-i18n

Weekly Downloads

45

Version

1.0.33

License

ISC

Unpacked Size

9.05 kB

Total Files

7

Last publish

Collaborators

  • dryymoon