hadron-i18n

0.0.1 • Public • Published

hadron-i18n

Extremely simple i18n support for hadron applications.

Installation

npm install --save hadron-i18n

Usage

Translations should be in .yml with the filenames all lowercase. Use camelcasing of keys for the ability to use dot notation.

myapp:
  toolbar:
    text: "Testing"
const I18n = require('hadron-i18n');
new I18n('de', 'en-GB').load('/path/to/my/locales', (error, i18n) => {
  global.t = i18n.t;
});
 
console.log(global.t.myapp.toolbar.text);

License

Apache 2.0

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0

Package Sidebar

Install

npm i hadron-i18n

Weekly Downloads

0

Version

0.0.1

License

Apache-2.0

Last publish

Collaborators

  • orechova
  • himanshusinghs
  • c-buckingham
  • mongo-j
  • mabaasit
  • alexander_schroll
  • chuck.kalmanek
  • mongodb-js-user
  • rueckstiess
  • durran
  • lerouxb
  • fredtruman
  • mbroadst
  • hswolff
  • satyasinha
  • matt_d_rat
  • rhysm
  • tomhollander
  • alena.khineika
  • jeff-allen-mongo
  • mmarcon
  • jonathan.balsano
  • mongodb-build
  • jack.weir
  • stennie
  • mcasimir
  • kristina.stefano
  • jarjee
  • shaketbaby
  • devtoolsbot
  • addaleax
  • gribnoysup
  • mutukrish