diff --git a/Models/ThemeConfig/Conversion/Validation.ts b/Models/ThemeConfig/Conversion/Validation.ts index 4248011a93..22db9808dd 100644 --- a/Models/ThemeConfig/Conversion/Validation.ts +++ b/Models/ThemeConfig/Conversion/Validation.ts @@ -15,8 +15,6 @@ import Translations from "../../../UI/i18n/Translations" import Svg from "../../../Svg" import {QuestionableTagRenderingConfigJson} from "../Json/QuestionableTagRenderingConfigJson" import FilterConfigJson from "../Json/FilterConfigJson"; -import {control} from "leaflet"; -import layers = control.layers; import DeleteConfig from "../DeleteConfig"; class ValidateLanguageCompleteness extends DesugaringStep { @@ -269,7 +267,7 @@ class ValidateTheme extends DesugaringStep { ).convert(theme, theme.id) errors.push(...checked.errors) } - if (!json.hideFromOverview && theme.id !== "personal") { + if (!json.hideFromOverview && theme.id !== "personal" && this._isBuiltin) { // The first key in the the title-field must be english, otherwise the title in the loading page will be the different language const targetLanguage = theme.title.SupportedLanguages()[0] if (targetLanguage !== "en") { diff --git a/Models/ThemeConfig/LayoutConfig.ts b/Models/ThemeConfig/LayoutConfig.ts index 70d20ec3bd..8fc718764b 100644 --- a/Models/ThemeConfig/LayoutConfig.ts +++ b/Models/ThemeConfig/LayoutConfig.ts @@ -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,