clout-i18n

0.0.1 • Public • Published

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.

/clout-i18n/

    Package Sidebar

    Install

    npm i clout-i18n

    Weekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • muhammaddadu