mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Translate Fix
This commit is contained in:
@@ -17,7 +17,11 @@ module.exports = class TranslateCommand extends Command {
|
|||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What text would you like to translate?',
|
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',
|
key: 'to',
|
||||||
|
|||||||
Reference in New Issue
Block a user