Skip to content

Commit

Permalink
Set up locales to house stringfiles for future use in internationaliz…
Browse files Browse the repository at this point in the history
…ing built-in log messages from core+cli.
  • Loading branch information
mikermcneil committed Jan 16, 2014
1 parent a4cd422 commit aad3b33
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bin/locales/en.js

This file was deleted.

6 changes: 6 additions & 0 deletions errors/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Errors


> TODO:
> 1. move messages into locales
> 2. Ideally we don't call `process.exit()` at all- instead, consistently call sails.lower(). See comment at bottom of `fatal.js`.
13 changes: 13 additions & 0 deletions locales/en.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* English stringfile
* @type {Object}
*/
module.exports = {

cli: {
invalid: 'Sorry, I don\'t understand what that means.',
toGetHelp: 'To get help using the Sails command-line tool, run:\n` $ sails --help `'
},

core: {}
};

0 comments on commit aad3b33

Please sign in to comment.