{"_id":"lang","_rev":"9-305f577cf206719a9e85c916fa1c5f8c","name":"lang","description":"A tiny internationalization library","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.13":{"author":{"name":"inotseeyou","email":"inotseeyou@gmail.com","url":"http://inotseeyou.com"},"name":"lang","description":"common function for javascript on nodejs","version":"0.1.13","repository":{"url":""},"main":"index.js","engines":{"node":">=0.5.10"},"dependencies":{},"devDependencies":{"expresso":"0.9.2"},"keywords":["tool","help","lang","common","format","tip","knife"],"scripts":{"test":"./dotest"},"_npmUser":{"name":"inotseeyou","email":"inotseeyou@gmail.com"},"_id":"lang@0.1.13","_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.5.10","_defaultsLoaded":true,"dist":{"shasum":"7c04c6b9320a43da77b53ba878393191257095f9","tarball":"https://registry.npmjs.org/lang/-/lang-0.1.13.tgz","integrity":"sha512-Uga5OBSyItMSHcSG7MXiHywNzp/3mIlPRaVOnR0oA44PT9vhoTSLjuM8mnTKV6cNi4rtvi8Yt5FE3R7whuCHqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdt6LENM5B8U8XKs9HGMGbO8YhiRfSkX52J3aUJBbFpAIgVYwQgUpVulVPMkluhMNr9sv3yBLNH9c/RRzx+izS4WY="}]},"maintainers":[{"name":"inotseeyou","email":"inotseeyou@gmail.com"}]},"0.1.1":{"name":"lang","version":"0.1.1","description":"A tiny internationalization library","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/callumacrae/lang"},"keywords":["language","lang","i18","internationalization","internationalisation"],"author":{"name":"Callum Macrae","email":"callum@macr.ae"},"license":"MIT","bugs":{"url":"https://github.com/callumacrae/lang/issues"},"homepage":"https://github.com/callumacrae/lang","dependencies":{"delve":"^0.3.2","jquery":"^1.11.2"},"gitHead":"ff1e3bf84d905348f16a5cda6d0a34276540a9c5","_id":"lang@0.1.1","_shasum":"2324e17706ad464781092305106e6cf87fdfa319","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"callumacrae","email":"callum@macr.ae"},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"dist":{"shasum":"2324e17706ad464781092305106e6cf87fdfa319","tarball":"https://registry.npmjs.org/lang/-/lang-0.1.1.tgz","integrity":"sha512-8o/Sdy9fjytu+pl3/Zy4mYOGKAejf3rRukChyKkW6rgSd3aWmGzf6OUnmuJ9IjIdSc798gX4LKIXArzWSVd42Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCglADLUpow9gDgSqdBmQJfsF14JIR4mHTTN0LLxXBVhwIgMJFeAoCv1eIX6AMASzc6Q6jiTOJJoT/H0vda+kjeTUQ="}]}}},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"time":{"modified":"2022-06-19T10:32:42.957Z","created":"2011-11-20T03:33:18.059Z","0.1.13":"2011-11-20T03:33:19.502Z","0.1.1":"2015-04-22T09:14:44.632Z"},"author":{"name":"Callum Macrae","email":"callum@macr.ae"},"repository":{"type":"git","url":"https://github.com/callumacrae/lang"},"keywords":["language","lang","i18","internationalization","internationalisation"],"readme":"# lang\n\nA tiny language library. Put this on your page:\n\n```html\n<script type=\"text/x-i18n-json\">\n\t{\n        \"numbers\" {\n            \"one\": \"Un\",\n            \"two\": \"Deux\",\n            \"three\": \"Trois\",\n            \"four\": \"Quatre\"\n        },\n        \"sentence\": \"Ce est une phrase\"\n    }\n</script>\n```\n\nThen, you can use the lang function as follows:\n\n```js\nvar lang = require('lang');\n\nlang('numbers.two'); //=> Deux\nlang('sentence'); //=> Ce est une phrase\n```\n\nYou can have multiple script tags and it'll merge the objects. The idea is that\nyou output the JSON from the server using the already localised text, instead\nof putting localised text straight into your JavaScript.\n\nIf this library is too simple for you, check out something like [i18next].\n\n## Todo\n\nAdd tests.\n\n## Install\n\n```\n$ npm install --save lang\n```\n\n(note: used to be tiny-lang, and is still available as tiny-lang on npm, but\nthat won't be updated)\n\n## License\n\nReleased under the MIT license.\n\n[i18next]: http://i18next.com/\n","readmeFilename":"README.md","homepage":"https://github.com/callumacrae/lang","bugs":{"url":"https://github.com/callumacrae/lang/issues"},"license":"MIT","users":{"vandeurenglenn":true}}