From e2403c2eb84e03616f21a564b0164d38498dd75d Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Mon, 22 Apr 2024 12:24:06 -0400 Subject: [PATCH] Fix bad Liquid in Spanish (#50252) --- src/languages/lib/correct-translation-content.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/languages/lib/correct-translation-content.js b/src/languages/lib/correct-translation-content.js index dd5a55e273..f4549b9ef3 100644 --- a/src/languages/lib/correct-translation-content.js +++ b/src/languages/lib/correct-translation-content.js @@ -88,6 +88,11 @@ export function correctTranslatedContentStrings(content, englishContent, context content = content.replaceAll('{{ 용어집.description }}', '{{ glossary.description }}') } + if (context.code === 'es') { + // Seen these a few times in the Spanish translations. + content = content.replaceAll('{% vulnerables variables.', '{% data variables.') + } + // We have seen a lot of Markdown tables, that may have Liquid tags // (like `{% ifversion ... %}`) within them lose the linebreak between // the heading and the first row marker.