Skip to content

clout-js-modules/clout-18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Clout module to implement i18n

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published