alphagov / govuk-design-system-backlog

GOV.UK Design System Community Backlog
30 stars 2 forks source link

Languages/translations navigation #285

Open danacotoran opened 8 months ago

danacotoran commented 8 months ago

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):

Screenshot 2023-10-25 at 17 42 52

With multiple languages:

image

Why

There are slightly different implementations of this component across government.

There 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.

querkmachine commented 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!

owenatgov commented 8 months ago

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!).

querkmachine commented 8 months ago

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.

danacotoran commented 6 months ago

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.

romaricpascal commented 5 months ago

Just noting in passing that there's some thorough guidance on translating services to Welsh on the HM Land Registry Design System.