From 1b62d08c9906cac7f982b8e2516d5cb6c1d96e95 Mon Sep 17 00:00:00 2001 From: Ramon Ramos Date: Mon, 10 Jun 2024 10:06:40 -0600 Subject: [PATCH] Fix wrong capitalization of article title in subnav for non-english languages. 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 %}