Fix overzealous language check for unofficial themes

This commit is contained in:
Pieter Vander Vennet 2022-10-04 13:50:24 +02:00
parent b50788074b
commit 218cf3b151
2 changed files with 2 additions and 4 deletions

View file

@ -79,7 +79,7 @@ export default class LayoutConfig {
}
const context = this.id
this.credits = json.credits
this.language = json.mustHaveLanguage ?? Array.from(Object.keys(json.title))
this.language = json.mustHaveLanguage ?? ( official ? ["en"] : [])
this.usedImages = Array.from(
new ExtractImages(official, undefined).convertStrict(
json,