New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dewib/dw-localise

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dewib/dw-localise

A localise module to synth locale with NuxtJS

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by400%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 06 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc