{"_id":"i18n-light","_rev":"26-571eb9d64075f841235d9cc8ee193684","name":"i18n-light","description":"Lightweight NodeJS Internationalization Module.","dist-tags":{"latest":"0.5.4"},"versions":{"0.0.1":{"name":"i18n-light","version":"0.0.1","description":"Lightweight NodeJS Internationalization Middleware","main":"index.js","scripts":{"test":"mocha tests/test.js"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"fc56d66440d976ad3cd04ea8c7811e6504e8a3ee","_id":"i18n-light@0.0.1","_shasum":"15c4449931512a2933bf55623807b3edc831fd32","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}],"dist":{"shasum":"15c4449931512a2933bf55623807b3edc831fd32","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.0.1.tgz","integrity":"sha512-JECBVcSPXxGUB9bcaXLH2oI5KrAfhcC77s263q716TzIMOYEJ+Nsg4tSfk+PrcTPj3irDK0J6f/8otAL0MQF1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCng/tBDTIqHC8svXe7d2gkt3p6kuZuIkVcIzWozQEgcgIgNz2N9UtHprOVQSdGIuWRJti4MS8GeCkXGm3hGIVbzHI="}]}},"0.0.2":{"name":"i18n-light","version":"0.0.2","description":"Lightweight NodeJS Internationalization Middleware","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization"],"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"3a3938b9fbcd0dc7a134f79bc2bcfa9176598fb1","_id":"i18n-light@0.0.2","_shasum":"16826441b135166403bb3268f953a2907c8366b5","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}],"dist":{"shasum":"16826441b135166403bb3268f953a2907c8366b5","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.0.2.tgz","integrity":"sha512-wahwnBXHEOtZMg4N0JLIXo1HYnY/JgMYEmrsp9Hstgj6NXG3jMtTlzu/3Qo7ptVCLMyRmbe9YWKGiVkTfTt5Vw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEOM3ucz5/vfOilhab3J+UEtFsyyIPYnD2ul3pU3QOsOAiEAj1lQ4aaz9eIkFicwcPF/eqAKvvofTxjSHqKEulWoKUg="}]}},"0.1.0":{"name":"i18n-light","version":"0.1.0","description":"Lightweight NodeJS Internationalization Middleware","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization"],"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"0874f71659e9f33cf79685a77ff11b33dbab128a","_id":"i18n-light@0.1.0","_shasum":"3e64d258764870a5c87c0c226d10aceca98ba249","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}],"dist":{"shasum":"3e64d258764870a5c87c0c226d10aceca98ba249","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.1.0.tgz","integrity":"sha512-kCWBn444Dltk/DK95L/Z1JfMBIglMUItU0tztEWDMK5FLS0l1NZQjUbMD9+tlaTOMWuYJ0ArIVY6x7/UnwpVNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpVL6kVfzoAtQ5Xm2L6GgN5Op8/FEnaVUg8wX2HV5nGAiBX1Zf3P7EUBRy8/jA2+HMaDfk76oU+f8Eqp1jY4BTI0g=="}]}},"0.1.1":{"name":"i18n-light","version":"0.1.1","description":"Lightweight NodeJS Internationalization Middleware","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization"],"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"4cebb4799d32be2d1231758bc086f5793db6367b","_id":"i18n-light@0.1.1","_shasum":"29f46257e34488f58ac5ba6eed92d7acdfef147e","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}],"dist":{"shasum":"29f46257e34488f58ac5ba6eed92d7acdfef147e","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.1.1.tgz","integrity":"sha512-ZCooDMSu4WhPaY8NpeH1+vQ/Zesh8C2JU/6rHhsyoyCfhycqqZWr3jtLN/RdKoIfJkcFVgMrTO/FGJPd7+xjPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGnVDxCA+VS868ml4CFca6AZOgDOmCakW3flIbIgf7zNAiEAllfK+0A1HrgWHLezeJ/0o9til21SXc+Rf6sqdppJuDw="}]}},"0.2.0":{"name":"i18n-light","version":"0.2.0","description":"npm install --save i18n-light","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization"],"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"42ccc4a63cc471ea6515b431741e353f226d0b6c","_id":"i18n-light@0.2.0","_shasum":"4c460f5cade217cad13783b73d6727d2b6f3485a","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}],"dist":{"shasum":"4c460f5cade217cad13783b73d6727d2b6f3485a","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.2.0.tgz","integrity":"sha512-RcSzXJqGfCNpKjvDya+y7J7ySE2LIZXxs+zfWLFzs2vpIhBPIOKeBsQ7to/pDq5pBjgP3KqewrAHPCNTGi8KJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDFipFFOo07qfLST5IsQ/Wn9mDCEYlGq0GxFk0yoLuqmAiEAt1ERrjhA9hLER7QMspElg9b7G5H2SqW+grlo9tkG9LI="}]}},"0.2.1":{"name":"i18n-light","version":"0.2.1","description":"npm install --save i18n-light","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization"],"repository":{"type":"git","url":"https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"c8a56701beefab5aa18b15a418b961a20242664e","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n","_id":"i18n-light@0.2.1","_shasum":"72c0474fdf704faa1082cd69fc54968d1e230b28","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}],"dist":{"shasum":"72c0474fdf704faa1082cd69fc54968d1e230b28","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.2.1.tgz","integrity":"sha512-4Wozb7fR5mD/+i9+RAtaZGKhYQdFKjnUFJVkLFNdHib5oZW/6fmN/WL2vwvD7cUupC5j2nTfdl62hc2+zrGwjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG/mq6u9BIR28gPg/tY2ZyNwt6pI/O8frSEWVLUP5mF9AiEA26lDitp314g3/VtFeX1bZMsJcxb+98lDG5q+YD+1Lu4="}]}},"0.2.2":{"name":"i18n-light","version":"0.2.2","description":"[![Build Status](https://travis-ci.org/tabone/i18n.svg?branch=master)](https://travis-ci.org/tabone/i18n)","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"3ca526a80bda660fbaf769e3be8559c66bdcbcfd","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.2.2","_shasum":"ee0008debe5c9f7b068f7df4c783754b7e1b65a6","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}],"dist":{"shasum":"ee0008debe5c9f7b068f7df4c783754b7e1b65a6","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.2.2.tgz","integrity":"sha512-8ZJSFKX68PlPBpmUANUuuDHvD6N1wVmC4LsQZ6x1aYp2l8bN5gkW/QoBK7Q2Lk+Uj6l989b7e385MzGFww0SxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7ScrDENkvLf+atTVg7g8FT5yWqa/dP53bl2OsP/6ldgIhAO5jpCDTnh+6he5960FEWVfzp/NqxchXVYQ2AVUvmUDZ"}]}},"0.2.3":{"name":"i18n-light","version":"0.2.3","description":"[![Build Status](https://travis-ci.org/tabone/i18n.svg?branch=master)](https://travis-ci.org/tabone/i18n)","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"40c644e2155b1c5beb83e602d343b4b58d70c35f","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.2.3","_shasum":"99954e0ad09241e635c9f413bb5d9055719d0eb1","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}],"dist":{"shasum":"99954e0ad09241e635c9f413bb5d9055719d0eb1","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.2.3.tgz","integrity":"sha512-JmlR3ycHYu1Ua6uXrrj1a4fjhAtllYzcenaQcOF2KBua34TvRx2Kzk4YA2atXna4ISrq96WbFOcycndyGAgeng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHSPRSCL7lYs6RtZdfzp6y2KLVuzAbXXoosS8daYP3FwIgULBL8U8y0ur9sy+DubPGTaoH5mqGehE+GsHZwl292Gg="}]}},"0.3.0":{"name":"i18n-light","version":"0.3.0","description":"[![Build Status](https://travis-ci.org/tabone/i18n.svg?branch=master)](https://travis-ci.org/tabone/i18n)","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"177a736dd72bd25a895ac15fdafaf53e43ebef9f","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.3.0","_shasum":"9102725b9dbec14edf1ff9540d4fe307baa5c195","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.1.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"dist":{"shasum":"9102725b9dbec14edf1ff9540d4fe307baa5c195","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.3.0.tgz","integrity":"sha512-xCmzaoeiyVqJvFf0HF9Gdgf9quOK4+JunJ9600TbG4Kgg+fU4dOj9Bp+5ljuTMudNSKwe4vOz3325MiPLWPnew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQ/Xk+Waien7lYRgwftYerTtOLwET7OxQWnBDVctScKAIhANU/xMYFGoqaZ8vJpcD05q+sUfMtk+OX6t20x0GeBjZI"}]},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}]},"0.3.1":{"name":"i18n-light","version":"0.3.1","description":"[![Build Status](https://travis-ci.org/tabone/i18n.svg?branch=master)](https://travis-ci.org/tabone/i18n)","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"2a5cae1d44d112d061a3f542a9112ac37ee50f89","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.3.1","_shasum":"8fe4c00eafad82f2afd489c0f25e651dc8bcd5c5","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"dist":{"shasum":"8fe4c00eafad82f2afd489c0f25e651dc8bcd5c5","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.3.1.tgz","integrity":"sha512-evTw7ObCSJNtK3t5hugCtMgXMauBd5uPUuJlxPwV7tjjUzGPOnYV8A+AW/412jBJyikv0/eww3ipluGJS56Dow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsXwljIVhulooo1JJSDAQ7zj7K/trYGuZarneznFfA6QIgDgXZh2hkKes1Pet7Hlv3sLsHrdn4QfCLN3ICIKPMUZo="}]},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}]},"0.3.2":{"name":"i18n-light","version":"0.3.2","description":"[![Build Status](https://travis-ci.org/tabone/i18n.svg?branch=master)](https://travis-ci.org/tabone/i18n)","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"742f7a33f8d3b45831761d07429e7d094ab5ebde","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.3.2","_shasum":"a6b3612716ec62ef2721edbbbb6aa9acb5c8a6c5","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"dist":{"shasum":"a6b3612716ec62ef2721edbbbb6aa9acb5c8a6c5","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.3.2.tgz","integrity":"sha512-+52yQuEhZ7MUSlopfm6xXbHUPY1v3nQHwoVTwrvh12VRy9A5L3GDE2EWrVisfOBBHkAaDII2DovuQDfUe5eqwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBQoDQUTEnpIEPXAW7Q9oP4iZQjD2/v4Z7IPUvtLT6WwIhAKZwIeuMHuG/TPiSbjRwDSHC6x4Wgyc4h/ZjlrRoakCx"}]},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}]},"0.3.3":{"name":"i18n-light","version":"0.3.3","description":"[![Build Status](https://travis-ci.org/tabone/i18n.svg?branch=master)](https://travis-ci.org/tabone/i18n)","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"2243dc00b84b0fd6da7b46ef6eb7b2aef4434e47","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.3.3","_shasum":"854da1f1ba75e3b824bf82e041657b558ae59233","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"dist":{"shasum":"854da1f1ba75e3b824bf82e041657b558ae59233","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.3.3.tgz","integrity":"sha512-ZCx8CHSn/QQ187LaFhIfwzYm/60IqCXxrM6Ag+e/enubbjoLEpoP3qOV9khG68rs5qKOaeQiqnuV05WTzhlYuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjGBc14AUTF9u8MoenhL/P0cg8hTUQl9x4Cdp2sbbDfAIhAKRvmP8PLTfrSR2AAMqVnmk9nMSa2TKPUIC7cbEEcm27"}]},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}]},"0.4.0":{"name":"i18n-light","version":"0.4.0","description":"[![Build Status](https://travis-ci.org/tabone/i18n.svg?branch=master)](https://travis-ci.org/tabone/i18n)","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"b2703ac93ed94946a530eddc225b01f5be211f00","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.4.0","_shasum":"fb3eb8b1aa7487d299f3f972187a08a1897f3e36","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"dist":{"shasum":"fb3eb8b1aa7487d299f3f972187a08a1897f3e36","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.4.0.tgz","integrity":"sha512-GkM0o2VRokDn1NzJkp7OhVEGLmslheECO/CdK9rguvQOn+ZeYeHU2WixTpEUSm0EC+KzkLHDRYeHhYua4EHV/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBtyoD4Qr4hSXHNhfX2xsJNfUO5fr0t9t+staAZRtZZDAiEA43NEA7n8es8IoKo2PouHfzKY4lgUwNJ+Jp5EuJnNDPs="}]},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}]},"0.4.1":{"name":"i18n-light","version":"0.4.1","description":"[![Build Status](https://travis-ci.org/tabone/i18n.svg?branch=master)](https://travis-ci.org/tabone/i18n)","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"62844ba3b90d66010aa81b00163ac5528c5abe90","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.4.1","_shasum":"eed44cf506a34429682550659faaa83548e7e154","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"dist":{"shasum":"eed44cf506a34429682550659faaa83548e7e154","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.4.1.tgz","integrity":"sha512-q81o0MTtN/8gVdXYLk6u3Bl8H/lz6rpwFmerTPRG+Jq46i381Gnszguox/Fk5MRLw1HYwI0WF+ivppUBNf4Z4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBEtM/k63x4EUJQyKmN8LfirLRB2SfbpqL9UiIVI19xnAiEAwmZURrM8VFl9Rb8/eQTLe0Pjw4RKuKzJnqLzc87ohfM="}]},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}]},"0.4.2":{"name":"i18n-light","version":"0.4.2","description":"[![Build Status](https://travis-ci.org/tabone/i18n.svg?branch=master)](https://travis-ci.org/tabone/i18n)","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"67a7c6d11c4bd8c147c5957043f96ca92938dc96","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.4.2","_shasum":"03e67ff79156f642d0866f7c7ee2b581164a91d6","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"dist":{"shasum":"03e67ff79156f642d0866f7c7ee2b581164a91d6","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.4.2.tgz","integrity":"sha512-S4JLbQEjzTxuDQDabkzHBmxG8y2/DD/RWiWW/ZPP9Y4qVLNvGnIwxnFmR+cdx5Famm15w7BNS9uOTbXpvdW2pQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCObMR9fHSxgOaWGSRdOXQayWIfsscq5SqjZQtXOvkFYQIgS9R14+KcPQYQ0o5KF4hgPfEYih5uO8nhATu8RhY0PWo="}]},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}]},"0.5.0":{"name":"i18n-light","version":"0.5.0","description":"Lightweight NodeJS Internationalization Module.","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"428ec37a23de2ff2e5320920c68457d793685bbf","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.5.0","_shasum":"c5426bc2adec5fe75757b6ef8fb131eb5d1ef92c","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"dist":{"shasum":"c5426bc2adec5fe75757b6ef8fb131eb5d1ef92c","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.5.0.tgz","integrity":"sha512-irPrPLQwIgPJT/sxZHwCU5rljljl4PWPGI6ETVB6rQFoQ5PNS8qOFmiSlpuBAJxYIsBwBfq6CqGFpYnsVrgLxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEWxTaXgWPydz2wT4zLTDmEswx8ddvUwmReYFUwQBcTwIgC9hWz6i0lGFy9IF5DKER/N5Cbp/CbXJ0//cay8dvp3M="}]},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}]},"0.5.1":{"name":"i18n-light","version":"0.5.1","description":"Lightweight NodeJS Internationalization Module.","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"5274a02f9b70da94fc6a343cfcb47ba16cc204fa","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.5.1","_shasum":"2f005518009a232940cbb596de83cb801dbe43d8","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"dist":{"shasum":"2f005518009a232940cbb596de83cb801dbe43d8","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.5.1.tgz","integrity":"sha512-yUTCpOWuPWjTl0sbhRuO51Cc263RIM0PnHiysF5buPMh6hUerhJGyqQW3sVZGxxVJmBb1LauUzn8a62oJZBdnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8XrDXu4q1hZlU9IQ9kbyZBITazOC15//naPPJgUPQlQIgYLdMa0yrINfgi5AgBdi13DA/B1TvskWwcQzYK1XiNTg="}]},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}]},"0.5.2":{"name":"i18n-light","version":"0.5.2","description":"Lightweight NodeJS Internationalization Module.","main":"index.js","scripts":{"test":"mocha tests/test.js"},"keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"614cc3b68bd5031cf7c862c02283a6a08010571f","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.5.2","_shasum":"a85373b082b55e064e308b61885bc8e2dbaae0d2","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"dist":{"shasum":"a85373b082b55e064e308b61885bc8e2dbaae0d2","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.5.2.tgz","integrity":"sha512-T5Eexu2mV+834TQjg+fgzVmCbdQqMw8jaDm6wYdH+bZw+zJGM4VtOWOQmGNfysnVuF7LH+WXItiOOaRkcFtk6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICZskj5kqnrKVECSON5rZj8d4uXdl0qYue33QdUIwnbUAiBejtdc/b6O0oU9FqcMj94MO0MXiMHKrTaXXiHTMJ076Q=="}]},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}]},"0.5.3":{"name":"i18n-light","version":"0.5.3","description":"Lightweight NodeJS Internationalization Module.","main":"index.js","scripts":{"test":"./node_modules/istanbul/lib/cli.js cover ./node_modules/.bin/_mocha tests/test.js","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"coveralls":"^2.11.4","istanbul":"^0.3.22","mocha":"^2.2.4"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"df9b922a1c45dfe6f2b88d19f44779e70a54c053","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.5.3","_shasum":"35240a09687531ba00687fdc26ba556a44b2bed0","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"dist":{"shasum":"35240a09687531ba00687fdc26ba556a44b2bed0","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.5.3.tgz","integrity":"sha512-ziCQKPd1lamZw0LLjmjYviQcLvSHRxIsBdTzjMwTsTAfSuA+ICWTie5Gao5MN/ASGztHQtF/VmCj1a9qz7MsDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICj9htKW3SikqcafbJjuJD0vQBiNSUC+Mv+Fxx+g0vfLAiEAzEuKYUXMKYn61fNmAkNjLSklGQkRXTkYtak2DYXpdNE="}]},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}]},"0.5.4":{"name":"i18n-light","version":"0.5.4","description":"Lightweight NodeJS Internationalization Module.","main":"index.js","scripts":{"test":"./node_modules/istanbul/lib/cli.js cover ./node_modules/.bin/_mocha tests/test.js","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"standard":{"ignore":["tests/locale","example"]},"repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","devDependencies":{"coveralls":"^2.11.4","istanbul":"^0.4.4","mocha":"^3.0.0"},"dependencies":{"sprintf-js":"^1.0.2"},"gitHead":"bbc18b41c3cc014cc9f117c52f20887d73a7e4ae","bugs":{"url":"https://github.com/tabone/i18n/issues"},"homepage":"https://github.com/tabone/i18n#readme","_id":"i18n-light@0.5.4","_shasum":"b068651cbdc450bc391b2077abdbf164e26710a0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"tabone","email":"taboneluca3@gmail.com"},"dist":{"shasum":"b068651cbdc450bc391b2077abdbf164e26710a0","tarball":"https://registry.npmjs.org/i18n-light/-/i18n-light-0.5.4.tgz","integrity":"sha512-B38OL83hElMiLsvQkQ9kcz9pOcgwtSJdr9La+ewgkKcqSbnLy4ZXnpbaiM+oRQMvmgxxvmj3dSfIpYcMQDekTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbwJdOlOSs/01y+sXheybUZsHUKOSOwJ4HXn4dYNiLyQIhAM1Rc/W02WnMfaRSGyhESZRsCg821T9uxgd9xxPA+WKY"}]},"maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/i18n-light-0.5.4.tgz_1470072688290_0.7224769908934832"}}},"readme":"[![Build Status](https://travis-ci.org/tabone/i18n.svg?branch=master)](https://travis-ci.org/tabone/i18n)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n[![Coverage Status](https://coveralls.io/repos/tabone/i18n/badge.svg?branch=master&service=github)](https://coveralls.io/github/tabone/i18n?branch=master)\n\n# i18n-light\n\n## Installation\n\n```bash\nnpm install --save i18n-light\n```\n\n```bash\nbower install --save i18n-light\n```\n\n## Motiviation\nMy main motivation in developing `i18n-light` was to create a localization module which enabled a developer to use the same storage (`dictionaries`) for both `Back-end` and `Front-end` code, thus having localized phrases more consistent and organized.\n\n## Vocabulary\n| Name | Description |\n|------|-------------|\n| `Dictionary` | A `JSON file` which `i18n-light` will use for localization. |\n| `Dicionary Contexts` | Is the `JSON` of a locale. This reside within a `dictionary` and is this `Object` which `i18n-light` will be using for localization. |\n| `Dictionary Path` | Is the path which i18n-light need to travel through the `dictionary context`. |\n| `Locale` | A name for a dictionary. |\n\n## Usage\n### Structure\n```\n  app\n  ├── dict/\n  |   ├── en.json\n  |   └── it.json\n  └── server.js\n```\n\n### Dictionaries\n#### dict/en.json\n\n```javascript\n{\n  \"common\": {\n    \"logo\": \"i18n-light\"\n  },\n  \"home\": {\n    \"logout\": \"Logout\",\n    \"loggedin\": \"Hello %s\",\n    \"messages\": {\n      \"zero\": \"No messages\",\n      \"one\": \"1 message\",\n      \"many\": \"%s messages\"\n    }\n  }\n}\n```\n#### dict/it.json\n\n```javascript\n{\n  \"home\": {\n    \"logout\": \"Esci\",\n    \"loggedin\": \"Ciao %s\",\n    \"messages\": {\n      \"zero\": \"0 messaggi\",\n      \"one\": \"1 messaggio\",\n      \"many\": \"%s messaggi\"\n    }\n  }\n}\n```\n\n### Basic Example\n\n```javascript\nvar i18n = require('i18n-light')\n\ni18n.configure({\n  defaultLocale: 'en',\n  dir: path.join(__dirname, 'dict'),\n  extension: '.json'\n})\n```\n\n### Express Example\n\n```javascript\nvar express = require('express')\n  , app = express()\n  , i18n = require('i18n-light')\n\n...\n\ni18n.configure({\n  dir: path.join(__dirname, 'dict'),\n  defaultLocale: 'en',\n  fallback: true,\n  cache: true,\n  extension: 'json',\n  refresh: false\n})\n\napp.use(i18n.init())\n\napp.get('/', function(req, res) {\n  i18n.setLocale('en')\n  console.log(i18n.__('common.logo'))          // => 'i18n-light'\n  console.log(i18n.__('home.logout'))          // => 'Logout'\n  console.log(i18n.__('home.loggedin', 'Tom')) // => 'Hello Tom'\n  console.log(i18n.__('home.messages', 2))     // => '2 messages'\n})\n\napp.get('/it', function(req, res) {\n  i18n.setLocale('it')\n  console.log(i18n.__('common.logo'))          // Will fallback to en => 'i18n-light'\n  console.log(i18n.__('home.logout'))          // => 'Esci'\n  console.log(i18n.__('home.loggedin', 'Tom')) // => 'Ciao Tom'\n  console.log(i18n.__('home.messages', 2))     // => '2 messaggi'\n})\n\n...\n\nrequire('http').createServer(app).listen(8080)\n```\n\n### Views Example\n\n```html\n...\n<body>\n  <span><%=i18n.__('common.logo')%></span> <!-- i18n-light -->\n</body>\n...\n```\n\n## Options\n| Name | Type | Default | Description |\n|------|------|---------|-------------|\n| `defaultLocale` | `String` | `Required` | The locale which `i18-light` will fallback if a `dictionary path` isn't resolvable in the current dictionary. |\n| `dir` | `String` | N/A | The directory path where the `dictionaries` will reside. |\n| `context` | `Object` | N/A | Instead of using `dir` to instruct `i18n-light` from where to retrieve the dictionaries, you can pass `dictionaries` directly through the `context`. Note: `i18n-light` will only look for this attribute if dir isn't specified. More information below. |\n| `fallback` | `Boolean` | `true` | Indicates whether `i18n-light` should fallback to the `defaultLocale` `dictionary context` if the path is invalid in the `dictionary context` of the current locale. |\n| `refresh` | `Boolean` | `false` | Indicates whether `i18n-light` should retrieve an update of the `dictionary context` (`true`) or keep using what is already cached (`false`). |\n| `cache` | `Boolean` | `true` | Indicates whether `i18n-light` should cache `dictionary context`s (`true`) or not (`false`). |\n| `extension` | `String` | `.js` | The `extension` of the `dictionary` files. |\n| `resolve` | `Function` | `null` | Instead of using `dir` or `context` you can use this function to code your own resolver for your `dictionary` files. Note that `i18n-light` will only use this function if your `i18n-light` instance is not configured using either `context` or `dir`. More info on how to use [here](#using-your-own-resolver)|\n\n## API\n### configure(opts)\nMethod used to configure (initiate) an instance of `i18n-light`. Take a look at the [options section](#options) to understand what options it accepts.\n\n```javascript\n...\ni18n.configure({\n  dir: path.join(__dirname, 'dict'),\n  defaultLocale: 'en',\n  fallback: true\n})\n...\n```\n\n### init()\nMiddleware method. This is the method used to integrate `i18n-light` instance to `Express`. Take a look at the [usage section](#usage) example to see how this can be easily done. This method makes your `i18n-light` instance accessible from:\n\n1. `res.i18n`\n2. `res.locals.i18n` - making your instances accessible from your views.\n\n```javascript\n...\napp.use(i18n.init())\n...\n```\n\n### resetLocale([refresh])\nMethod used to reset the current locale to the default one. It has an optional parameter `refresh` which when its `true` `i18n-light` updates the dictionary context of the default locale.\n\n```javascript\ni18n.configure({\n  defaultLocale: 'en'\n  ...\n})\n...\ni18n.setLocale('it')  //default locale is now 'it'\n...\ni18n.resetLocale()  //default locale is now 'en'\n```\n\n### setLocale(locale[, refresh])\nMethod used to change the current locale of your `i18n-light` instance to `locale`. It has an `optional` argument `refresh` which when its `true`, `i18n-light` updates the dictionary context of `locale`.\n\n```javascript\ni18n.configure({\n  defaultLocale: 'en'\n  ...\n})\n...\ni18n.setLocale('it')  //default locale is now 'it'\n```\n\n### getLocale()\nMethod used to get the name of the current locale.\n\n```javascript\ni18n.configure({\n  defaultLocale: 'en'\n  ...\n})\n...\ni18n.getLocale()  // => en\n...\ni18n.setLocale('it')\n...\ni18n.getLocale()  // => it\n```\n\n### isCached(locale)\nMethod used to check whether a `dictionary context` of `locale` is cached or not.\n\n```javascript\ni18n.configure({\n  defaultLocale: 'en'\n  ...\n})\n...\ni18n.isCached('en')  // => true\n...\ni18n.isCached('it')  // => false\n...\ni18n.setLocale('it')\n...\ni18n.isCached('it')  // => true\n```\n\n### setDefaultLocale(locale)\nMethod used to change the default locale of your `i18n-light` instance to `locale`.\n\n```javascript\ni18n.configure({\n  defaultLocale: 'en'\n  ...\n})\n...\ni18n.getLocale()              // => en\n...\ni18n.setDefaultLocale('it')   // => true\n...\ni18n.getLocale('it')          // => it\n```\n\n### refreshContext([locale])\nMethod used to refresh the `dictionary context` of `locale`.\n\n### clearCache([refresh])\nMethod used to clear the cache of your `i18n-light` instance.\n\n```javascript\ni18n.configure({\n  defaultLocale: 'en'\n  ...\n})\n...\ni18n.setLocale('it')    // => en\n...\ni18n.isCached('en')     // => true\ni18n.isCached('it')     // => true\n...\ni18n.clearCache()\n...\ni18n.isCached('en')     // => false\ni18n.isCached('it')     // => false\n```\n\nIt has an `optional` argument `refresh` which when its true, `i18n-light` refreshes the `dictionary context` of the current locale.\n\n```javascript\ni18n.configure({\n  defaultLocale: 'en'\n  ...\n})\n...\ni18n.setLocale('it')    // => en\n...\ni18n.isCached('en')     // => true\ni18n.isCached('it')     // => true\n...\ni18n.clearCache(true)\n...\ni18n.isCached('en')     // => false\ni18n.isCached('it')     // => true\n```\n\n### __(path[,arg1 [,arg2[,..]]])\nMethod used by `i18n-light` to convert `path` to the localized phrase within the current `dictionary context` of the current locale (or default locale if path is invalid and `fallback` === true).\n\nThis method makes use of [sprintf-js](https://www.npmjs.com/package/sprintf-js), enabling you to include placeholders in your `dictionary` phrases (see example).\n\nNote that if `path` is not resolvable `i18n-light` will return the path itself.\n\n#### Dictionary\n```javascript\n{\n  \"home\": {\n    \"login\": \"Login\",\n    \"welcome\": \"Welcome %s\"\n  }\n}\n```\n\n#### Code\n```javascript\n...\ni18n.__('home.login')           // => 'Login'\ni18n.__('home.welcome', 'Tom')  // => 'Welcome Tom'\n...\n```\n\n### __n(path[,arg1 [,arg2[,..]]], count)\nMethod used by `i18n-light` to convert `path` to a quantitative localized phrase within the current `dictionary context` of the current locale (or default locale if path is invalid and `fallback` === true).\n\nThis method makes use of [sprintf-js](https://www.npmjs.com/package/sprintf-js), enabling you to include placeholders in your `dictionary` phrases (see example).\n\nNote that if `path` is not resolvable `i18n-light` will return the path itself.\n\nAlso note that the last argument (`count`) is used only by `i18n-light` and not by `sprintf-js`.\n\nIf `count === 0` or is a `String` it will append `.zero` to `path`.\n\nIf `count === 1` it will append `.one` to `path`.\n\nIf `count > 1` it will append `.many` to `path`.\n\n#### Dictionary\n```javascript\n{\n  \"home\": {\n    \"messages\": {\n      \"zero\": \"No messages\",\n      \"one\": \"1 message\",\n      \"many\": \"%s messages\"\n    }\n  }\n}\n```\n\n#### Code\n```javascript\n...\ni18n.__n('home.messages', 0)      // => 'No messages'\ni18n.__n('home.messages', 1)      // => '1 Message'\ni18n.__n('home.messages', 3)      // => 'undefined messages'\ni18n.__n('home.messages', 3, 3)   // => '3 messages'\n...\n```\n\n## Using your own Resolver\nAs already mentioned in the [options](#options) section, `i18n-light` will only use this functionality if it hasn't been configured with `dir` or `context` options. When a context of a locale is needed, `i18n-light` will call this function with the locale name passed as the parameter. This function should then return a `dictionary context` in the form of a JSON.\n\n```javascript\ni18n.configure({\n  defaultLocale: 'en',\n  resolve: function(locale){\n    $.ajax({\n      type: 'GET',\n      url: 'dict/' + locale + '.js',\n      dataType: 'json',\n      success: function(data) {\n        return data\n      },\n      async: false\n    });\n  }\n  ...\n})\n```\n\n## Browserify\nIntead of using the `dir` option to point to the dictionaries directory, you have the possibility to inject your own `dictionary context`s during the configuration of `i18n-light` instance using `context` option. As already stated, in order for `i18n-light` to use the `context` option, the `dir` option needs to be omitted.\n\nThe following example shows how can this be done using [brfs](https://www.npmjs.com/package/brfs) for `browserify`.\n\n```javascript\nvar i18n = require('i18n-light');\n\ni18n.configure({\n  defaultLocale: document.documentElement.lang,\n  context: { 'en': JSON.parse(require('fs')\n                      .readFileSync('en.js', 'utf-8'))\n            , 'it': JSON.parse(require('fs')\n                      .readFileSync('it.js', 'utf-8'))\n            }\n})\n```","maintainers":[{"name":"tabone","email":"taboneluca3@gmail.com"}],"time":{"modified":"2022-06-18T23:46:22.331Z","created":"2015-05-09T23:29:22.049Z","0.0.1":"2015-05-09T23:29:22.049Z","0.0.2":"2015-05-09T23:46:32.201Z","0.1.0":"2015-05-10T11:37:30.878Z","0.1.1":"2015-05-10T15:04:09.779Z","0.2.0":"2015-05-10T18:58:59.158Z","0.2.1":"2015-05-11T17:07:53.848Z","0.2.2":"2015-07-14T15:27:10.382Z","0.2.3":"2015-07-16T15:49:53.913Z","0.3.0":"2015-08-29T16:30:32.339Z","0.3.1":"2015-08-29T17:20:06.986Z","0.3.2":"2015-08-30T09:00:26.309Z","0.3.3":"2015-08-30T16:38:23.856Z","0.4.0":"2015-09-05T19:33:35.176Z","0.4.1":"2015-09-05T19:35:05.074Z","0.4.2":"2015-09-05T19:47:25.272Z","0.5.0":"2015-09-10T15:39:42.982Z","0.5.1":"2015-09-17T16:58:09.671Z","0.5.2":"2015-09-22T16:58:16.734Z","0.5.3":"2015-10-09T20:03:34.696Z","0.5.4":"2016-08-01T17:31:30.074Z"},"author":{"name":"Luca Tabone","email":"taboneluca3@gmail.com"},"license":"MIT","readmeFilename":"README.md","keywords":["i18n-light","i18n","multilingual","internationalization","middleware"],"homepage":"https://github.com/tabone/i18n#readme","repository":{"type":"git","url":"git+https://github.com/tabone/i18n.git"},"bugs":{"url":"https://github.com/tabone/i18n/issues"},"users":{"stylemistake":true}}