TranslateCommand constructor
TranslateCommand()
Implementation
TranslateCommand() {
argParser
..addOption(
'text',
abbr: 't',
help: 'Text to translate. [Required]',
mandatory: true,
)
..addOption(
'source-locale',
abbr: 's',
help: 'Source locale ID (e.g. en). [Required]',
mandatory: true,
)
..addOption(
'target-locale',
help: 'Target locale ID (e.g. es, fr, de, nl). [Required]',
mandatory: true,
)
..addOption(
'translation-loc-id',
help: 'Optional translation localization ID context [Optional].',
defaultsTo: '',
)
..addOption(
'variable-loc-id',
help: 'Optional variable localization ID context [Optional].',
defaultsTo: '',
)
..addOption(
'field-name',
help: 'Optional field name context [Optional].',
defaultsTo: '',
);
}