Created
September 18, 2013 18:44
-
-
Save rruhlen/6613647 to your computer and use it in GitHub Desktop.
Liquid to detect language.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% case system.language%} | |
{%when 'de'%} | |
German translation | |
{%when 'es_es'%} | |
Spanish translation | |
{%when 'fr_ca'%} | |
French Canadian translation | |
{%when 'fr_fr'%} | |
French translation | |
{%when 'it'%} | |
Italian translation | |
{%when 'nl'%} | |
Dutch translation | |
{%when 'pt'%} | |
Portugese translation | |
{%when 'en_ca'%} | |
English Canadian translation | |
{%when 'en_gb'%} | |
UK translation | |
{%when 'en_au'%} | |
Australian translation | |
{%when 'en_nz'%} | |
New Zealand translation | |
{%else%} | |
Default (normally English US translation) | |
{%endcase%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment