Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Languages/translations navigation #285

Open
danacotoran opened this issue Nov 6, 2023 · 5 comments
Open

Languages/translations navigation #285

danacotoran opened this issue Nov 6, 2023 · 5 comments
Labels
component Goes in the 'Components' section of the Design System

Comments

@danacotoran
Copy link

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

@owenatgov owenatgov added the component Goes in the 'Components' section of the Design System label Nov 6, 2023
@querkmachine
Copy link
Member

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!

@querkmachine querkmachine changed the title Translation nav component Languages/translations navigation Nov 6, 2023
@owenatgov
Copy link

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component Goes in the 'Components' section of the Design System
Projects
None yet
Development

No branches or pull requests

4 participants