Skip to content

Add Welsh translation for non-ministerial department pages#11483

Open
jamiestamp wants to merge 2 commits into
mainfrom
WHIT-3425-restore-welsh-on-about-us-page
Open

Add Welsh translation for non-ministerial department pages#11483
jamiestamp wants to merge 2 commits into
mainfrom
WHIT-3425-restore-welsh-on-about-us-page

Conversation

@jamiestamp
Copy link
Copy Markdown
Contributor

@jamiestamp jamiestamp commented May 21, 2026

This PR lays the foundation on which to translate organisations and their relationships to Welsh. The text had been all hard-coded and built dynamically before. Initially we just have the single org and relationship translated.

  • Added Welsh translation for "About us" section on non-ministerial departments' organisation pages.
  • Refactored organisation parental relationship templates for better locale-specific grammar within YAML files.

English behaviour is unchanged. Templates receive both %{relationship}
(article-prefixed) and %{type_name} (bare) so locale-specific grammar
can be decided in YAML rather than branching on locale in Ruby.
Welsh organisation pages of non-ministerial departments now render
"Adran anweinidogol yw'r X" instead of falling back to English.
Other organisation types continue to render in English until their
sentence templates are confirmed by a translator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant