-
Notifications
You must be signed in to change notification settings - Fork 4
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
Welsh language toggle #158
Comments
hello – I'm auditing a service that uses the Welsh language toggle and I’m wondering if there’s an issue related to WCAG SC 2.4.4 Link purpose in context. I can see there’s an Could adding some invisible text to the link (e.g. 'change language to Welsh/Cymraeg') help orientate users in this situation? |
@wilsond-gds if it is following the pattern (https://design.tax.service.gov.uk/hmrc-design-patterns/welsh-language-toggle/) then the link will include the hidden copy "Change language to" (in the same language) to make it clear the link's purpose. I suspect the service you are looking at may be using an older version of the component, so it would be worth their updating. |
Hello - we are looking at a language toggle on our services at Companies House. Curious as to why your guide says it should appear above the Back link (not in line with it)? Thanks. |
@jfranciswebdesign From memory it was so focus order followed the visual order. It has been looked at before as it does add to wasted space. Putting them inline was done in some services but the focus order effect was odd so was backed out, not to say it couldn't be revisited). There is also the consideration of what page hierarchy is in play - the toggle is more of a global navigation element (so sits closer to the header in source order - and some variants of the header have it as part of that UI), whilst the back link is more page-level. There was some wider discussion about moving the toggle into the global header region by default, but this never materialised. |
Thanks for the speedy reply @adamliptrot-oc - all makes sense, we'll go with your design 👍 |
Hello everyone, We've been exploring ways to enhance the Welsh language toggle to make it more accessible to non-technical colleagues. Our idea is to streamline the process by using a single HTML template that incorporates a language flag, indicating which part of the code should be generated in the final HTML from the Nunjucks template, as illustrated below: Example:
Our primary goal is simplicity, avoiding the need for separate journeys or HTML files based on language preferences, or utilizing JSON files for translation. We experimented with an i18n translation server, but found it required JSON files for each language, such as We welcome any suggestions or insights on how to refine our current approach. Whether it pertains to user experience, technical implementation, or any other aspect, we're eager to hear your ideas! Please don't hesitate to share your suggestions here. FYI: @alrobboOC |
can you say a bit more on this issue? As it may be solveable
|
We found that with the current toggle, the current challenges apply: The current toggle points to a url. So if I was viewing it it English and clicked the Welsh, it means redirecting to a totally new and separate (Welsh) page. A duplicate of the english page. @RobertBuczek and I came up with a different way of making the toggle work, with the help of @JoeSimmonds. It makes the toggle more user friendly. Instructions on how to implement the toggle into your prototype
In the example below, I want the toggle to display on the page called toggle.html
The caveat with this is that it's only for the prototype - I know this solution isn't ideal for live versions of the service so please be aware of that. It's not a perfect solution, but it's simple, it works and it's a start. At the time of writing, there are plans to change the navigation bar, including the location of Welsh language toggle. Once the update is live, I'd love to discuss it more here to explore solutions. @Jon-Rowe-HMRC fyi |
Might not be entirely appropriate here, but I tried to use the Welsh toggle to switch between two versions of content on my prototype, as it's controlled by HMRC-frontend, I wasn't able to do it as easily I thought, so I utilised some CSS to be able to switch easily enough between the two versions. Firstly, you'll need to add your own css as below:
Next you can use the following HTML to display the 2 different versions of your content.
You can find a working example in our prototype here. |
This is an interesting use of the toggle Geoff. |
I tried to view the prototype, but it's password protected. :( |
Welsh language toggle
Overview
This is used to switch the language used on a service from English to Welsh.
This pattern is related to the HMRC header.
The text was updated successfully, but these errors were encountered: