locale_switcher

Description

Display the links to change the locale of the current page. The links are wrapped inside a DIV tag.

The link to the current locale owns the class current which makes it possible to customize through CSS.

Nothing will be displayed if you do not select at least 2 locales for your site.

Syntax

{% locale_switcher <options> %}

Example

{% locale_switcher label: locale, sep: ' - ' %}

Options

Name Type Description
label String takes one of the following options: iso (de, fr, en, ...etc), locale (Deutsch, Français, English, ...etc), title (page title). By default, "iso".
sep String piece of html code separating 2 locales. By default, " | ".
© 2024 LocomotiveCMS Terms of use Privacy Policy
Back to top