Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

egg-i18next

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-i18next

[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

egg-i18next

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-i18next --save

Usage

// {app_root}/config/plugin.js
exports.i18next = {
  enable: true,
  package: 'egg-i18next',
};

Configuration

// {app_root}/config/config.default.js
exports.i18next = {
  queryField: 'locale',
  cookieField: 'locale',
  cookieMaxAge: 365 * 24 * 60 * 60 * 1000, // 1 year
  loadPath: '/config/locale/{{lng}}.yml',
  init: { // initialization config for i18next, refer to https://www.i18next.com/configuration-options.html for more details.
    fallbackLng: 'en-US',
  },
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT

Keywords

FAQs

Package last updated on 16 Mar 2018

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