Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
forked from bcartier/LangUrl

Addon for Statamic v2.5 to help build a language toggle

Notifications You must be signed in to change notification settings

appswithlove/statamic-langurl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Language URL for Statamic 2

Usage:

Intended to help build a language toggle for Statamic 2. For example, in a English and French site where English is the default language, you can use {{ lang_url locale="fr" }} and {{ lang_url locale="default" }} in your templates to easily switch languages of the current page:

{{ if locale == "en" }}
  <a href='{{ lang_url locale="fr" }}'>Français</a>
{{/if}

{{ if locale == "fr" }}
  <a href='{{ lang_url locale="default" }}'>English</a>
{{/if}

About

Addon for Statamic v2.5 to help build a language toggle

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%