diff --git a/src/Models/ThemeConfig/Conversion/PrepareTheme.ts b/src/Models/ThemeConfig/Conversion/PrepareTheme.ts index 04d9e9232..bcf0a7924 100644 --- a/src/Models/ThemeConfig/Conversion/PrepareTheme.ts +++ b/src/Models/ThemeConfig/Conversion/PrepareTheme.ts @@ -286,9 +286,10 @@ class AddContextToTranslationsInLayout extends DesugaringStep ) } - convert(json: LayoutConfigJson, context: ConversionContext): LayoutConfigJson { + convert(json: LayoutConfigJson): LayoutConfigJson { const conversion = new AddContextToTranslations("themes:") - return conversion.convert(json, context) + // The context is used to generate the 'context' in the translation .It _must_ be `json.id` to correctly link into weblate + return conversion.convert(json, ConversionContext.construct([json.id],["AddContextToTranslation"])) } }