get-i18n
Installation
npm install get-i18n --save
Syntax
/** * @param */; /** * @param * @param * @returns */
Usage
Setup
; ;
Hello World
; // Categories
Interpolation
;; // Other products from Jan
Pluralization
; ; // You have no new message.; // You have one new message.; // You have 7 new messages.
Get a whole namespace
;;// {// heading: 'Categories',// subheading: 'Lorem ipsum...'// }
Get a whole namespace with data
;;// {// heading: 'Other products from Jan.',// subheading: 'Lorem ipsum'// }
Tests
npm test
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Release History
- 1.1.3 Pluralization plus namespace bug
- 1.1.2 Removed console.log
- 1.1.1 Fixed missing build
- 1.1.0 Namespaces
- 1.0.0 Initial release