{"_id":"sails-stringfile","_rev":"204547","name":"sails-stringfile","description":"translated/localized stringfiles containing messages from Sails core and dependencies","dist-tags":{"latest":"0.3.3"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"},{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"rachaelshaw","email":"rachael@balderdash.co"}],"time":{"modified":"2021-06-03T13:07:29.000Z","created":"2014-01-17T10:18:34.960Z","0.3.3":"2019-04-30T20:07:14.198Z","0.3.2":"2014-02-07T00:11:26.641Z","0.3.1":"2014-02-05T01:00:24.096Z","0.3.0":"2014-01-31T14:09:18.218Z","0.2.0":"2014-01-31T13:59:25.068Z","0.1.0":"2014-01-31T13:54:26.122Z","0.0.1":"2014-01-17T10:18:34.960Z"},"users":{"schpnpls":true},"author":{"name":"Mike McNeil"},"repository":{"type":"git","url":"git://github.com/balderdashy/sails-stringfile.git"},"versions":{"0.3.3":{"name":"sails-stringfile","version":"0.3.3","description":"translated/localized stringfiles containing messages from Sails core and dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/balderdashy/sails-stringfile.git"},"keywords":["sails","waterline","international","web","internationalization","cli","locales","web-framework","i18n"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/balderdashy/sails-stringfile/issues"},"homepage":"https://github.com/balderdashy/sails-stringfile","dependencies":{"colors":"*","@sailshq/lodash":"^3.10.2"},"gitHead":"bc17e018e51964ef5d644681a692480776311af7","_id":"sails-stringfile@0.3.3","_nodeVersion":"8.9.4","_npmVersion":"6.9.0","dist":{"shasum":"6264107745493f4c062e5e53b43c52b52f1b343c","size":4803,"noattachment":false,"key":"/sails-stringfile/-/sails-stringfile-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/sails-stringfile/download/sails-stringfile-0.3.3.tgz"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"},{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"rachaelshaw","email":"rachael@balderdash.co"}],"_npmUser":{"name":"rachaelshaw","email":"rachaelshaw@treeline.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sails-stringfile_0.3.3_1556654834002_0.3267254359026952"},"_hasShrinkwrap":false,"publish_time":1556654834198,"_cnpm_publish_time":1556654834198},"0.3.2":{"name":"sails-stringfile","version":"0.3.2","description":"translated/localized stringfiles containing messages from Sails core and dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/balderdashy/sails-stringfile.git"},"keywords":["sails","waterline","international","web","internationalization","cli","locales","web-framework","i18n"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/balderdashy/sails-stringfile/issues"},"homepage":"https://github.com/balderdashy/sails-stringfile","dependencies":{"colors":"*","lodash":"~2.4.1"},"_id":"sails-stringfile@0.3.2","dist":{"shasum":"da4e3666a8f9cfd3e1f346bfb8116a303e1c30bd","size":4628,"noattachment":false,"key":"/sails-stringfile/-/sails-stringfile-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/sails-stringfile/download/sails-stringfile-0.3.2.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"},{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"rachaelshaw","email":"rachael@balderdash.co"}],"directories":{},"publish_time":1391731886641,"_cnpm_publish_time":1391731886641,"_hasShrinkwrap":false},"0.3.1":{"name":"sails-stringfile","version":"0.3.1","description":"translated/localized stringfiles containing messages from Sails core and dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/balderdashy/sails-stringfile.git"},"keywords":["sails","waterline","international","web","internationalization","cli","locales","web-framework","i18n"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/balderdashy/sails-stringfile/issues"},"homepage":"https://github.com/balderdashy/sails-stringfile","dependencies":{"colors":"*","lodash":"~2.4.1"},"_id":"sails-stringfile@0.3.1","dist":{"shasum":"8b62e556688c42d0511959398c7f51c1f7941d88","size":4598,"noattachment":false,"key":"/sails-stringfile/-/sails-stringfile-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sails-stringfile/download/sails-stringfile-0.3.1.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"},{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"rachaelshaw","email":"rachael@balderdash.co"}],"directories":{},"publish_time":1391562024096,"_cnpm_publish_time":1391562024096,"_hasShrinkwrap":false},"0.3.0":{"name":"sails-stringfile","version":"0.3.0","description":"translated/localized stringfiles containing messages from Sails core and dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/balderdashy/sails-stringfile.git"},"keywords":["sails","waterline","international","web","internationalization","cli","locales","web-framework","i18n"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/balderdashy/sails-stringfile/issues"},"homepage":"https://github.com/balderdashy/sails-stringfile","dependencies":{"colors":"*","lodash":"~2.4.1"},"_id":"sails-stringfile@0.3.0","dist":{"shasum":"6c9ff4d075ca52d1748d32284b3403df17acbb9d","size":4594,"noattachment":false,"key":"/sails-stringfile/-/sails-stringfile-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sails-stringfile/download/sails-stringfile-0.3.0.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"},{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"rachaelshaw","email":"rachael@balderdash.co"}],"directories":{},"publish_time":1391177358218,"_cnpm_publish_time":1391177358218},"0.2.0":{"name":"sails-stringfile","version":"0.2.0","description":"translated/localized stringfiles containing messages from Sails core and dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/balderdashy/sails-stringfile.git"},"keywords":["sails","waterline","international","web","internationalization","cli","locales","web-framework","i18n"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/balderdashy/sails-stringfile/issues"},"homepage":"https://github.com/balderdashy/sails-stringfile","dependencies":{"colors":"*","lodash":"~2.4.1"},"_id":"sails-stringfile@0.2.0","dist":{"shasum":"d74abaa1715a11d87436b11bd35d9b0d3d76414f","size":4496,"noattachment":false,"key":"/sails-stringfile/-/sails-stringfile-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sails-stringfile/download/sails-stringfile-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"},{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"rachaelshaw","email":"rachael@balderdash.co"}],"directories":{},"publish_time":1391176765068,"_cnpm_publish_time":1391176765068,"_hasShrinkwrap":false},"0.1.0":{"name":"sails-stringfile","version":"0.1.0","description":"translated/localized stringfiles containing messages from Sails core and dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/balderdashy/sails-stringfile.git"},"keywords":["sails","waterline","international","web","internationalization","cli","locales","web-framework","i18n"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/balderdashy/sails-stringfile/issues"},"homepage":"https://github.com/balderdashy/sails-stringfile","dependencies":{"colors":"*","lodash":"~2.4.1"},"_id":"sails-stringfile@0.1.0","dist":{"shasum":"77c94ff2bd1da5b2f20ff3e474b8fb57684edbe2","size":4400,"noattachment":false,"key":"/sails-stringfile/-/sails-stringfile-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sails-stringfile/download/sails-stringfile-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"},{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"rachaelshaw","email":"rachael@balderdash.co"}],"directories":{},"publish_time":1391176466122,"_cnpm_publish_time":1391176466122,"_hasShrinkwrap":false},"0.0.1":{"name":"sails-stringfile","version":"0.0.1","description":"translated/localized stringfiles containing messages from Sails core and dependencies","main":"gettext.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/balderdashy/sails-stringfile.git"},"keywords":["sails","waterline","international","web","internationalization","cli","locales","web-framework","i18n"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/balderdashy/sails-stringfile/issues"},"homepage":"https://github.com/balderdashy/sails-stringfile","readmeFilename":"README.md","_id":"sails-stringfile@0.0.1","dist":{"shasum":"c94f1fce6831654467351e32394c93ce260e6239","size":3058,"noattachment":false,"key":"/sails-stringfile/-/sails-stringfile-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sails-stringfile/download/sails-stringfile-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"},{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"rachaelshaw","email":"rachael@balderdash.co"}],"directories":{},"publish_time":1389953914960,"_cnpm_publish_time":1389953914960,"_hasShrinkwrap":false}},"readme":"sails-stringfile\n===================\n\nLocalized stringfile containing messages used in Sails command-line interface and runtime.\n\nThis project is an early-stage work in progress to make all strings used in Sails humanLanguageAgnostic.  That includes console messages, comments in generated code files, and even errors.  This is a big project, but just one small part of the effort towards making Sails more accessible to non-native English readers/speakers.\n\n\n## How This Module Works\n\n+ Environment variables are used to determine a user's locale.  (defaults to English)\n\n\n## Usage\n\n\n```javascript\n// From Sails core, an adapter, a generator, a hook, or some other dependency:\nvar STRINGFILE = require('sails-stringfile');\n\n// Internally, this module runs node's native `util.format()` method,\n// so you can also template strings:\nvar localizedMessage = STRINGFILE.get('cli.new.success', ['myApp', {some:'stuff'}, 'more stuff'])\n\n// Then, appropriate msg is brought in auf deutsch, espanol, traditional chinese, english, etc.\nconsole.log(localizedMessage);\n```\n\n\n## Languages\n\nCurrent language support _targets_ are:\n\n+ English\n+ French\n+ Spanish\n+ Traditional Chinese\n+ German\n\n> (please send a PR if you have a request and we'll add it to this list!)\n\n\n\n\n## How Can I Help?\n\n+ The existing strings need to be pulled out of log messages and errors in:\n  + sails core\n  + anchor core\n  + waterline core\n  + sails-generate-*\n  + sails-hook-*\n  + sails-adapter-* (adapters)\n\n> See the complete list of modules here: https://github.com/balderdashy/sails/blob/master/MODULES.md\n\n+ Code comments and other support files (like README) in newly generated sails modules (or a new project) should be pulled out into the generator scope and brought in using the same mechanism.  This is only relevant for generators:\n  + sails-generate-new\n  + sails-generate-frontend\n  + sails-generate-backend\n  + sails-generate-views\n  + sails-generate-gruntfile\n  + sails-generate-controller\n  + sails-generate-model\n  + sails-generate-generator\n\n+ A stringfile needs to be created in the `locales` in this repository for each language we want to support, mapping the string keys to a reasonable log message in the target language (the English stringfile is a good reference to see how a particular type of message should be worded, etc.).\n\n\n\n\n\n## License\n\nMIT c. Mike McNeil 2014\n","_attachments":{},"homepage":"https://github.com/balderdashy/sails-stringfile","bugs":{"url":"https://github.com/balderdashy/sails-stringfile/issues"},"license":"MIT"}