Skip to content

Instantly share code, notes, and snippets.

@rruhlen
Created October 17, 2013 16:45
Show Gist options
  • Select an option

  • Save rruhlen/7028248 to your computer and use it in GitHub Desktop.

Select an option

Save rruhlen/7028248 to your computer and use it in GitHub Desktop.
liquid translation example for contact us section.
{% capture contactus_de_content %}
<p><h1><b>Telefonsupport</b></h1>
Der Telefonsupport ist in englischer Sprache verfügbar, 7 Tage/Woche,
von 07:00 Uhr bis 20:00 Uhr Pacific Time (GMT -08:00),
unter dieser Rufnummer:<p></p>
<a href="tel:+18584953532">&#x260e; +1 858 495 3532</a><br>
<!-- {{ URI }} -->
</p>
{% endcapture %}
{% capture contactus_fr_content %}
<p><h1><b>Support technique par téléphone</b></h1>
Le support est disponible <b>en anglais ou en allemand</b>,
tous les jours, 7:00-20:00 Pacifique (GMT -08:00) :<p></p>
<a href="tel:+18584953532">&#x260e; +1 858 495 3532</a><br>
</p>
{% endcapture %}
{% if site.phone_enabled_config %}
<li class="phone">
{% case system.language%} {%when "de"%} {{ contactus_de_content }} {%when "fr"%} {{contactus_fr_content}} {% else %} {{ desk.page.theme.contact_us_content }}{%endcase%}
</li>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment