Socket
Socket
Sign inDemoInstall

clout-i18n

Package Overview
Dependencies
11
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    clout-i18n

Clout module to implement i18n


Version published
Weekly downloads
1
decreased by-85.71%
Maintainers
1
Install size
1.31 MB
Created
Weekly downloads
 

Readme

Source

clout-i18n

Install

In the directory of your clout-js application, do the following;

  1. Install this package
npm install clout-i18n
  1. Add this module to package.json or clout.json
{
    ...
    "modules": ["clout-i18n"]
    ...
}

Configure

Create a new file i18n.default.js or i18n.<YOUR_ENV>.js in /conf directory with the following JavaScript.

module.exports = {
    i18n: {
        locales:['en'],
        directory: '/locales'
    }
};

Usage

This module utilizes i18n-node to provide the power of internationalization. Please read the documentation on how to leverage the library.

The library is injected into the scope of APIs and Controllers.

Keywords

FAQs

Last updated on 24 May 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc