(defaultLang = null)
| 14 | } |
| 15 | |
| 16 | async run(defaultLang = null) { |
| 17 | const templatesPath = path.join(this.themePath, 'templates'); |
| 18 | const paths = await this.getLangHelpersPaths(templatesPath); |
| 19 | const dedupePaths = [...new Set(paths)]; |
| 20 | const langFiles = await this.getLangFilesContent(defaultLang); |
| 21 | const errors = this.validate(dedupePaths, langFiles); |
| 22 | this.printErrors(errors); |
| 23 | return errors; |
| 24 | } |
| 25 | |
| 26 | printErrors(errors) { |
| 27 | if (errors.length > 0) { |
no test coverage detected