Fix Everything

This commit is contained in:
Daniel Odendahl Jr
2017-06-01 18:31:20 +00:00
parent 66706d9c7b
commit 4e1f83a30f
85 changed files with 721 additions and 851 deletions
+4 -10
View File
@@ -24,11 +24,8 @@ module.exports = class TranslateCommand extends Command {
prompt: 'Which language is being translated to?',
type: 'string',
validate: (to) => {
if (codes[to.toLowerCase()]) {
return true;
} else {
return 'Invalid Language Code. Use `help translate` for a list of codes.';
}
if (codes[to.toLowerCase()]) return true;
else return 'Invalid Language Code. Use `help translate` for a list of codes.';
},
parse: (to) => to.toLowerCase()
},
@@ -38,11 +35,8 @@ module.exports = class TranslateCommand extends Command {
type: 'string',
default: '',
validate: (from) => {
if (codes[from.toLowerCase()]) {
return true;
} else {
return 'Invalid Language Code. Use `help translate` for a list of codes.';
}
if (codes[from.toLowerCase()]) return true;
else return 'Invalid Language Code. Use `help translate` for a list of codes.';
},
parse: (from) => from.toLowerCase()
}