-
Notifications
You must be signed in to change notification settings - Fork 2
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
Supporting multiple languages #99
Comments
@stevenaproctor commented on 1 Aug This will help Welsh language users when content is not available in Welsh. In English, this means "This page is only available in English at the moment." The link lets you close the banner and means "Do not show this again". In English, this means "Some of our pages have yet to be translated into Welsh." This more general version is used in the personal tax account as a disclaimer for the whole account. This information will need to be used in all services that are not completely translated in to Welsh. The blue banner is an alert that is not part of the GOV.UK Design System or HMRC Design System yet. Research on this patternThe content has been agreed with and translated by the Welsh Language Unit. The blue banner is in older versions of assets frontend as an attorney banner and an alert-info notification. I do not have any research but the banner is usually above the |
Useful resource for javascript components https://www.i18next.com/ |
@timpaul are there any updates on progress for language support? Asking on behalf of our Welsh Language Unit. Thanks |
Here's some research from 2015: https://userresearch.blog.gov.uk/2015/09/15/the-welsh-experience-on-gov-uk-a-qualitative-research-study/ |
HMRC has a consistent toggle for English and Cymraeg https://design.tax.service.gov.uk/hmrc-design-patterns/account-header/ |
The guidance for components contains examples in english. It would be great if examples were also in welsh. For instance, somebody recently asked on Slack what the welsh for the skip link was. Answers came back as ''Mynd i'r prif gynnwys' and 'Neidio i'r prif gynnwys'. The HMRC welsh translation team told me to use 'Ewch yn syth i’r prif gynnwys'. A lot of skip links are in english even when the toggle is set to welsh. My hypothesis is that compliance would increase if a welsh example is given. It would also reduce duplicated effort. I propose the welsh translation team is asked to provide examples for components. What do others think? |
It's something that we're hoping to explore in the next 12 months, but we need to work out how to implement it consistently and in a sustainable way. For example, we need to understand how:
|
Canada is reworking the design system too https://github.com/canada-ca/design-system-systeme-conception/tree/gh-pages |
I know we've not had much traction on this pattern, but one of the things I'm seeing come up quite a lot is a fail for 3.1.2 Language of parts due to not having a common component and the lack of understanding around it. The issue is that people put a link in which reads: Cymraeg, but they're not giving it the attribute It would be good, if this pattern is not going to be developed for a while, to at least add some guidance around it to the design system as a stop-gap so people at least know that they need to add the lang attribute in order for it to meet WCAG 2.1. |
To add another voice to the mix, the 'Check an HGV' service is translated into 8 languages (walked back from the original 17 requested) because we need to reach a variety of users both in and out of the UK. The link off of the start page is difficult to see in the midst of all the other information, so having a vetted component/pattern that can accommodate changing to multiple languages throughout the service would be brilliant, and probably useful to a variety of services across government. |
The 'Check an HGV...' service is a good example showing more than two languages. Language selection is at top-right, as is the style for British embassies (such as https://www.gov.uk/world/organisations/british-embassy-moscow). There is some evidence supporting top-right at: https://confluence.tools.tax.service.gov.uk/display/WL/User+Testing+in+Welsh (the confluence page may not be visible to everyone). |
We're being asked to consider supporting 16 other languages in our service, like here: https://www.gov.uk/guidance/transporting-goods-between-great-britain-and-the-eu-by-roro-freight-guidance-for-hauliers |
We have one service translated into 11 languages, with another (much larger one) currently in the process. We looked at the patterns shown above for guidance, but this didn't seem ideal for our project which is largely used on a mobile device. Instead we display the languages on the start screen in a list. For our larger service, we have a select box in the top right corner with the languages. If JS is disabled, this becomes the standard English/Welsh toggle. We also have the list of linked languages on the start screen below the main body content to help with discoverability if the user does not spot or understand the convention of the select input, or if they do not have JS enabled. We tested this with users and had great feedback. |
In my recent internationalisation work I've ended up compiling quite the list of language selector patterns used across services and GOV.UK. Some list all available languages, some exclude the currently selected language (usually if this is a toggle between two languages). Sometimes the current language is still presented as a link, sometimes it isn't. Sometimes the language name is presented in English as well as the target language, sometimes it isn't. The GOV.UK translation navigation component seems to be the most used pattern on GOV.UK itself, and many services crib elements of it's design, layout and on-page location for their own implementations too. A toggle appearing in the content of the page: A list appearing in the content of the page: A list appearing below/next to the page title: A list appearing in the page's header: A toggle appearing in the page's phase banner: A list appearing below the page's phase banner, aligned with the back link. A list appearing in the page's footer: And a toggle appearing in the page's footer: |
We ran an external accessibility audit for some of the components and patterns in GOV.UK Frontend in May 2023. In that audit, we included an example of when a user is asked whether they want to change a language. We’re adding results from that audit here so that we can:
One WCAG AAA issue raisedThe link text is 'In Welsh (Cymraeg)’, which is pretty meaningless on its own out of context
More detail in this issue: |
We've just added some guidance on how to 'share findings about your users' with us 📝. This will help us learn more about how your users switch languages within your service. |
What
Why
Welsh language support is a legal requirement for many government services, so we should provide design guidance for this.
Anything else
The text was updated successfully, but these errors were encountered: