On this page
- 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
- Use image ALT localization
- Load Facebook SDK with localization parameter
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
Localization
Use image ALT localization
Default usage
Localization
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>