translated/localized stringfiles containing messages from Sails core and dependencies
Localized stringfile containing messages used in Sails command-line interface and runtime. This is one part of the effort towards making Sails more accessible to non-native English readers/speakers.
These files are here for future use-- this project is an early-stage work in progress.
// From Sails core, an adapter, a generator, a hook, or some other dependency:var STRINGFILE = ;// Internally, this module runs node's native `util.format()` method,// so you can also template strings:var localizedMessage =// Then, appropriate msg is brought in auf deutsch, espanol, traditional chinese, english, etc.console;
Current language support targets are:
(please send a PR if you have a request and we'll add it to this list!)
The existing strings need to be pulled out of log messages and errors in:
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:
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.).
MIT c. Mike McNeil 2014