From 8d0c834584828ddac9b653f732af609d1012802d Mon Sep 17 00:00:00 2001 From: Ram Date: Mon, 10 Jun 2024 17:29:23 -0600 Subject: [PATCH] Fix wrong capitalization of article title in subnav for non-english languages. (#12467) Conditioning the `tw-capitalize` to only be added to pages with `LANGUAGE_CODE` set to `en`. --- .../wagtailpages/templates/fragments/article_subnav.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/network-api/networkapi/wagtailpages/templates/fragments/article_subnav.html b/network-api/networkapi/wagtailpages/templates/fragments/article_subnav.html index 47ae884ad27..21945009e38 100644 --- a/network-api/networkapi/wagtailpages/templates/fragments/article_subnav.html +++ b/network-api/networkapi/wagtailpages/templates/fragments/article_subnav.html @@ -1,10 +1,11 @@ {% load i18n wagtailimages_tags wagtailcore_tags static %} +{% get_current_language as LANGUAGE_CODE %}