Language toggle: Canada.ca design
- Last updated: 2023-06-26
Mandatory
All public-facing Government of Canada content is available in both official languages. A language toggle in the global header provides access to the corresponding page in the other official language.
On this page
When to use
The language toggle is mandatory on all pages.
New transactional pages for web applications must allow people to toggle between official languages. Legacy web applications that don’t support toggling should be updated or replaced. Until then, you can omit the language toggle if its use results in a loss of data.
What to avoid
Don’t put other language options in the language toggle. It is only for English and French. Links to content in other languages should appear in the content area of the page.
Don’t use the language toggle to point to anything other than the corresponding page in the equivalent language.
Content and design
Find content and design specifications and visual examples.
Content specifications
Ensure that the language toggle links to the corresponding page in the alternate language.
Large screens
- On English pages, the link label text is “Français”
- On French pages, the link label text is “English”
Small screens
For small screens, the language toggle uses a 2-letter abbreviation for each language:
- On English pages, the link label text is “FR” in uppercase
- On French pages, the link label text is “EN” in uppercase
Accessibility
- Add the full name of the language in the title attribute for the abbreviated language toggle
- the abbreviation title for EN is “English”
- the abbreviation title for FR is “Français”
Interactions
- When selected, the language toggle brings the user to the alternate language version of the page they were on
Design specifications
- Type: link
- Position: top-right corner
- Font: Lato
- Size: 1.2 em
- Text colour:
- default link: #284162
- selected link (on hover or focus): #0535d2
- visited link: #284162
Accessibility
- Label the language toggle code so that it’s spoken in the correct language if read aloud by assistive technologies
- Ensure that the text label for the language toggle won’t be translated by browser translation tools
Visual examples
How to implement
Find working examples for implementing the language toggle.
GCweb (WET) theme implementation reference
The implementation reference includes how to configure each element of the header.
Implementations
Determine what best suits the type of page you're creating.
GC-AEM
For the Government of Canada Adobe Experience Manager (AEM):
Research and rationale
Consult policy rationale.
Policy rationale
As part of the global header, the language toggle is a mandatory element under the Canada.ca Specifications.
All Government of Canada communications must be available in both official languages.
Latest changes
- Updated the guidance to include advice on what to avoid, content and design specifications, visual examples, implementation guidance, and policy rationale
Page details
- Date modified: