Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

pixelfear/Statamic-Language-Switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Statamic Language Switcher

Create links to corresponding languages on your site

If you have your multi-lingual Statamic site set up in language folders with identical sub-structures, you can use this plugin to swap out the language segment.

For example, on the English 'About the team' page named /en/about/team, you might want to put a link to the French version (/fr/about/team).

<a href="{{ lang_switch lang='fr' }}">French</a>
<a href="{{ lang_switch lang='de' }}">Deutsch</a>

Optional parameters:

  • url: Defaults to the current page.
  • segment: If your language segment isn't the first one, enter the number.
  • full_url: Specify yes if you want to output the full http URL.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages