Skip to content

Refresh: show nav, footer, and banner when translations are available [fix #15570]#15571

Merged
stephaniehobson merged 2 commits into
mozilla:mainfrom
craigcook:15570-m24-nav-footer-logic
Nov 26, 2024
Merged

Refresh: show nav, footer, and banner when translations are available [fix #15570]#15571
stephaniehobson merged 2 commits into
mozilla:mainfrom
craigcook:15570-m24-nav-footer-logic

Conversation

@craigcook

Copy link
Copy Markdown
Contributor

One-line summary

Updates the template logic to show global elements when their corresponding Fluent files are active, rather than explicitly for English only.

Issue / Bugzilla link

#15570

Testing

Run ./manage.py l10n_update to get latest Fluent files, if you haven't lately.
Flip switch M24_WEBSITE_REFRESH on

You should see the nav, footer, and pencil banner on localized pages for most tier 1 languages (I've verified de, fr, es-ES, it, and a few others).

Other locales should fall back to the old content in prod mode (I've been using be and ro to test). In dev mode you'll still see the new elements in English.

@craigcook craigcook added P1 First level priority - Must have Needs Review Awaiting code review Review: XS Code review time: up to 30min Refresh Work related to the 2024 site refresh labels Nov 26, 2024
@craigcook craigcook requested a review from a team as a code owner November 26, 2024 20:15
Comment thread bedrock/base/templates/includes/protocol/footer/footer.html Outdated
Comment thread bedrock/base/templates/includes/protocol/navigation/navigation.html Outdated
@craigcook craigcook force-pushed the 15570-m24-nav-footer-logic branch from f6a34e7 to e9f69a3 Compare November 26, 2024 22:24
@codecov

codecov Bot commented Nov 26, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.99%. Comparing base (b1f74bc) to head (e9f69a3).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15571      +/-   ##
==========================================
+ Coverage   78.98%   78.99%   +0.01%     
==========================================
  Files         158      158              
  Lines        8298     8298              
==========================================
+ Hits         6554     6555       +1     
+ Misses       1744     1743       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stephaniehobson stephaniehobson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R+ 🍌

@stephaniehobson stephaniehobson merged commit d80b758 into mozilla:main Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Awaiting code review P1 First level priority - Must have Refresh Work related to the 2024 site refresh Review: XS Code review time: up to 30min

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants