Open danacotoran opened 8 months ago
This was a stretch goal we didn't end up reaching for the localisation efforts last year, so I'll be very pleased if and when this ends up happening. There's a lot of complexity involved for such a simple component!
Hi @danacotoran 👋🏻 Thanks for this contribution. There's a lot of useful information here.
If you have access to any research done on this component please send it our way or post it here. We'll also leave this open for a bit in case other folks have evidence or views on this component. We'll keep you posted on developments on our end for picking this up. A greater wealth of evidence that there's a need for this helps with prioritisation (I think you've articulated a need very well so that last sentence isn't to say you've not articulated that need, just that more doesn't hurt!).
Back in 2022 I found eight different language switcher/selection designs used across various GOV.UK pages and services; sometimes in the header, sometimes in the body, sometimes in the footer.
Notably many of these also didn't include lang
or hreflang
attributes, and had link text that didn't state the link's purpose either in or outside of the surrounding context.
I spoke with Anika Henke (Senior Accessibility Specialist), as there was recently a digital accessibility audit on GOVUK, and pages using the translation nav component were included in the audit. The 4 pages with that component that were included in the audit were:
DAC did not find any issues with the translation nav component, which suggests perhaps the GOVUK version of this component might be a good example to follow, at least as far as accessibility practices are concerned.
Just noting in passing that there's some thorough guidance on translating services to Welsh on the HM Land Registry Design System.
What
This is a proposal to add a translation navigation/language toggle component or pattern to the Design System. This proposal is somewhat related to (but more specific than) https://github.com/alphagov/govuk-design-system-backlog/issues/99
The purpose of this component would be to allow users to switch between the English language version of a page and any other language(s) the page may be available in, Welsh being the most common use case.
With two languages (most common):
With multiple languages:
Why
There are slightly different implementations of this component across government.
govuk_publishing_components
library. This is used very broadly across publications on GOV.UKThere might be other similar components since many services are available in Welsh and there is a real need to easily switch between languages.
There are many challenges/consideration around this component, such as best practices on accessibility and semantics.
It would be great if this could be standardised.