Language toggle
A simple component for switching between two languages
The language toggle component lets the user switch between two languages when using a service. It is included in DWP Frontend.
It is used in the Toggle to Welsh pattern to switch between English and Welsh. This is the main DWP use case.
We plan to retire the Language toggle component in favour of the GOV.UK Language navigation component. You can keep using this component until we publish a retirement date.
When to use this component
Use the language toggle when a service is available in two different languages and the user can switch between them while using the service.
When to consider something else
Do not use this component to switch between more than two languages.
Similar components
GOV.UK added a Language navigation component in GOV.UK Frontend 6.5.0 (August 2026). It is in trial. For English and Welsh, its HTML is almost the same as this component’s. Both show the current language as text and the other as a link, separated by a line. As of DWP Frontend 5.1.1, the links also have the same accessible names.
The GOV.UK component also supports more than two languages and right-to-left scripts. Because it covers everything this component does, we plan to retire this component in favour of it.
The Government of Canada has a similar component which is used for switching between English and French. It displays only the alternate language (not the inactive current language link).
Design goals and metrics
This component was created to separate the technical part of the Toggle to Welsh pattern, so that it could be included in DWP Frontend and also used for other language pairs if needed.
Get support
Need help implementing this in a prototype or production build? Get support from the Design System team.
Give feedback
We depend on insights from real projects to update and improve the design system. If you use something we made, tell us how it went.
Could we improve this page?
Send questions, comments or suggestions to the DWP Design System team.
Last updated: