LocalizationUpsertSubcommand constructor
LocalizationUpsertSubcommand()
Implementation
LocalizationUpsertSubcommand() {
argParser
..addOption(
'translation-id',
help: 'Translation key ID. [Required]',
mandatory: true,
)
..addOption(
'locale-id',
help: 'Locale ID (e.g. en, nl, de). [Required]',
mandatory: true,
)
..addOption(
'text',
abbr: 't',
help: 'Localized text value. [Required]',
mandatory: true,
)
..addOption(
'id',
help: 'Localization ID [Optional, leave empty to create new].',
)
..addOption(
'variant',
help: 'Optional variant name [Optional].',
)
..addFlag(
'auto-translate',
help: 'Mark for auto-translation to other target locales [Optional].',
);
}