Skip to content

Translate English nav and use locale-aware menu routes - #45

Open
MustafaGood wants to merge 1 commit into
new-design-systemfrom
feat/nav-menu-routes
Open

Translate English nav and use locale-aware menu routes#45
MustafaGood wants to merge 1 commit into
new-design-systemfrom
feat/nav-menu-routes

Conversation

@MustafaGood

@MustafaGood MustafaGood commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • English /en showed Swedish nav labels because theme strings like Services only existed in locale-theme/sv. FastGettext fell back to the default locale (Swedish) and rendered Tjänster.
  • Adds English msgstrs for Services, Pro and Main navigation.
  • Pro and blog use locale-aware Rails helpers (no hardcoded handlingar.se/sv/...). Pro is hidden when Alaveteli Pro is off so the link cannot 404.

Closes #5

Test plan

  • /en top nav: Make a request, View authorities, Pro (if enabled), Services, Help. All English, not Tjänster
  • /sv top nav: Gör en begäran, Visa myndigheter, Tjänster, Hjälp
  • Pro goes to locale-prefixed /pro or /en/pro, not /sv/pro from the English site
  • Blog (when BLOG_FEED is set) uses blog_path
  • Desktop and mobile
  • Restart the app after pulling .po changes

Do not merge to main.

…aware Pro and blog routes instead of hardcoded /sv/ URLs.
@MustafaGood MustafaGood moved this to 👀 In review in Handlingar Theme Aug 26, 2026
@MustafaGood
MustafaGood force-pushed the feat/nav-menu-routes branch from 2037f76 to 5030be9 Compare August 26, 2026 21:42
@MustafaGood MustafaGood moved this from In review to Done in Handlingar Theme Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant