{"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","tarball":"http://registry-npm.ywwl.com/sails-stringfile/download/sails-stringfile-0.2.0.tgz","integrity":"sha512-/pvy1slTTN/m5XQ9HbxCU+2UJ8GD2jjiXaTunGmkbFtduWl8HdetRjuohNIcFF2VuIv5PQdrOIdwB6P3M4OlEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtIuzrIBuOFsM17spPuGpGZgrStKg7U9nkPGt6mYTqdwIgKHiXIbXq+VkgsACma0lyIf9WdRdSpU4ShrhvtM1kq8g="}],"size":4496,"noattachment":false,"key":"/sails-stringfile/-/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"}],"directories":{},"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","publish_time":1391176765068,"_cnpm_publish_time":1391176765068,"dist-tags":{"latest":"0.3.3"}}