1.0.7 • Published 3 years ago

@dewib/dw-localise v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

dw-localise

A localise module to synth locale with NuxtJS

Install

Add package yarn add @dewib/dw-localise

Usage

Add the module to your nuxt.config.js

modules: {
  '@dewib/dw-localise'
},

// Your localise configuration
localise: {
  filter: ['!ios-only,!ios-infoplist,!android-only'],
  fallback: 'fr',
  locale: 'fr',
  token: process.env.LOCO_API_KEY,
  path: path.resolve(__dirname, 'static/i18n'),
  disabled: process.env.LOCO_DISABLED,
}

Config

Localise module handle four parameters.

filter: used to filter with tags see more fallback: fallback locale for untranslated assets, specified as short code. e.g. en or en_GB see more locale: used to handle case you have only one locale and due to lack of informations from localise. token: the localise token to export the locales path: where the locales will be writen disabled: in case you don't need to sync it from localise server

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago