0.0.1 • Published 8 years ago

clout-i18n v0.0.1

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

clout-i18n

Install

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

1) Install this package

npm install clout-i18n

2) 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.