Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Do not pre-translate 0 languages
Browse files Browse the repository at this point in the history
  • Loading branch information
villermen committed Apr 29, 2020
1 parent 7ebb957 commit f446fb7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/commands/upload_cmds/sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ module.exports = {
console.log(chalk.green('OK'));
}

if (argv.preTranslationEngine && argv.preTranslationLanguages) {
if (
argv.preTranslationEngine &&
argv.preTranslationLanguages &&
argv.preTranslationLanguages.length > 0
) {
process.stdout.write(
`Pre-translating ${argv.preTranslationLanguages.join(', ')} with ${argv.preTranslationEngine} engine...`
);
Expand Down

0 comments on commit f446fb7

Please sign in to comment.