Language selection

Search


Language toggle link

Status
Stable
Type
Canada.ca site functionality
Last review
2022-11-01
Component version
Version 1.1

Purpose

The language toggle link always leads people to the equivalent page in the other official language, ensuring that people are able to switch between languages without losing track of where they were before

How to implement

Before and After

Version 1.1

List of change since version 1.0: Addition the translation="no" attribute.

<ul class="list-inline mrgn-bttm-0">
				<li>
					<a href="/fr.html" lang="fr">
						<span class="hidden-xs">Français</span>
						<abbr title="Français" translate="no" class="visible-xs h3 mrgn-tp-sm mrgn-bttm-0 text-uppercase">fr</abbr>
					</a>
				</li>
			</ul>

Version 1.0 (deprecated)

The language toggle version 1.0 is deprecated but still supported.

<ul class="list-inline mrgn-bttm-0">
				<li>
					<a href="/fr.html" lang="fr">
						<span class="hidden-xs">Français</span>
						<abbr title="Français" class="visible-xs h3 mrgn-tp-sm mrgn-bttm-0 text-uppercase">fr</abbr>
					</a>
				</li>
			</ul>

Page details

Date modified: