Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tw-capitalize from localized article pages #12072

Closed
TheoChevalier opened this issue Mar 18, 2024 · 1 comment
Closed

Remove tw-capitalize from localized article pages #12072

TheoChevalier opened this issue Mar 18, 2024 · 1 comment

Comments

@TheoChevalier
Copy link
Contributor

TheoChevalier commented Mar 18, 2024

Hi,

I noticed Wagtail is altering translations in the navbar menu of articles pages by capitalizing it following the English capitalization rules. The example below was taken from https://foundation.mozilla.org/fr/research/library/accelerating-progress-toward-trustworthy-ai/whitepaper/

This capitalization is wrong in French and in most languages outside English. The correct capitalization is the one displayed below Accélérer le développement d’une IA digne de confiance

We need to add a conditional so that tw-capitalize is only added for the English page and removed from the other locales in https://github.com/MozillaFoundation/foundation.mozilla.org/blob/main/network-api/networkapi/wagtailpages/templates/fragments/article_subnav.html#L7

┆Issue is synchronized with this Jira Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants