diff --git a/commands/text-edit/translate.js b/commands/text-edit/translate.js index 62d797f5..4a259ff6 100644 --- a/commands/text-edit/translate.js +++ b/commands/text-edit/translate.js @@ -17,7 +17,11 @@ module.exports = class TranslateCommand extends Command { { key: 'text', prompt: 'What text would you like to translate?', - type: 'string' + type: 'string', + validate: (text) => { + if (text.length < 500) return true; + else return 'Text must be under 500 characters.'; + } }, { key: 'to',