Fix: fix bug with incorrect translation context for themes

This commit is contained in:
Pieter Vander Vennet 2024-04-12 19:47:51 +02:00
parent 0a73b28ee1
commit 368f9ad0c8

View file

@ -286,9 +286,10 @@ class AddContextToTranslationsInLayout extends DesugaringStep<LayoutConfigJson>
)
}
convert(json: LayoutConfigJson, context: ConversionContext): LayoutConfigJson {
convert(json: LayoutConfigJson): LayoutConfigJson {
const conversion = new AddContextToTranslations<LayoutConfigJson>("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"]))
}
}