Add validation rule: public themes should have a complete translation in english

This commit is contained in:
Pieter Vander Vennet 2022-02-16 02:23:50 +01:00
parent 39e6cdfda4
commit 92f5b57c9f
8 changed files with 162 additions and 113 deletions

View file

@ -138,6 +138,11 @@ class ValidateTheme extends DesugaringStep<LayoutConfigJson> {
.convert(theme, theme.id)
errors.push(...checked.errors)
}
if(!json.hideFromOverview){
const checked = new ValidateLanguageCompleteness("en")
.convert(theme, theme.id)
warnings.push(...checked.errors)
}
} catch (e) {
errors.push(e)