10000 GitHub - igogo5yo/node-intl: This library give you simple interface to work with intl.js and intl-messageformat.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

igogo5yo/node-intl

Repository files navigation

NodeIntl

Build Status NPM NPM

This library give you simple interface to work with intl.js and intl-messageformat.

Usage

Install the package via NPM: npm i node-intl.

 const intl = NodeIntl.instance; // Create instance

 intl.locale = 'en-US'; // set locale

 intl.messages = {...}; // set messages

 intl.addMessages({...}); // add new messages

 intl.addMessagesFromFile('path/to/file'); // add new messages from file

 intl.formatMessage('device.name', {prop: 'Name'}); // format messages

About

This library give you simple interface to work with intl.js and intl-messageformat.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0