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
<script> | |
/** | |
* Geolocation app must be installed | |
* redirection variable -> list of supported countries with specifi domain extension ( assigned via Shopify Markets setting ) | |
*/ | |
(()=>{ | |
let published_locales = {{ shop.published_locales | json }} | |
let shop_locales = published_locales.map(locale=>locale.shop_locale.locale.toLowerCase()) | |
let redirection = ["cz","dk","fi","fr","gr","it","nl","pl","pt","es","se"] |