Skip to content

Commit

Permalink
Update check-translation.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Clemog committed Jan 18, 2023
1 parent 5d83f59 commit a3f95f1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions scripts/i18n/check-translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,4 @@ glob(`${srcFile}`, { ignore: ['data/translated-*.yaml'] }, (_, files) => {
)

cli.printChecksResultTableHeader(markdown)

destLangs.forEach((destLang) => {
const destPath = `data/translated-rules-${destLang}.yaml`
const destRules = R.mergeAll(utils.readYAML(path.resolve(destPath)))
const missingRules = utils.getMissingRules(rules, destRules)
cli.printChecksResult(missingRules.length, 'rules', destLang, markdown)
inquirer.prompt(questions).then((answers) => {
answers.expandMissingRules &&
missingRules.map((obj) => cli.printWarn(obj.rule))
})
})
})

0 comments on commit a3f95f1

Please sign in to comment.