Configuration for Sails' built-in internationalization & localization features. For more information see the concepts section on internationalization.
||['en','es','fr','de']||List of supported locale codes|
||'/config/locales'||The project-relative path to the folder containing your locale translations (i.e. stringfiles)|
||'en'||The default locale for the site. Note that this setting will be overridden for any request that sends an "Accept-Language" header (i.e. most browsers), but it's still useful if you need to localize the response for requests made by non-browser clients (e.g. cURL).|
||false||Whether to automatically add new keys to locale (translation) files when they are encountered during a request.|
Is something missing?
If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.
- Blueprint API
- Command Line Interface
- Response (`res`)
- Waterline (ORM)
- Resourceful PubSub
- Socket Client
We wrote a book!
Get early access to the book
with promotion code: mcneildoc