Liquid features usage examples

Create new currency switcher


Add language value for product property


Use sections only for certain language


Show content only for default language


Include different snippets per each language


Replace product image output with localized version

Default usage




Use image ALT localization

Default usage




Load Facebook SDK with localization parameter

{%- capture LS_LANGUAGE -%}{%- render "ls-language" -%}{%- endcapture -%}
{%- assign FB_LANGUAGE = LS_LANGUAGE | replace: "-", "_" -%}

<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "https://connect.facebook.net/{{ FB_LANGUAGE }}/sdk.js#xfbml=1&version=v3.0";
    fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Start your 14-day free trial today!

Schedule meeting

Try LangShop free for 14 days by entering your domain of Shopify store.