1.0.33 • Published 1 year ago

@inyur/nuxt-i18n v1.0.33

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

@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

1.0.33

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.23

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago