Multi-Language Shopify Online Shop
Markus Tripp
355

Hi Markus.

Thanks for your efforts sharing this perfect guide! I was able to successfully implement multiple languages support.

Some observations:

There is no need to duplicate cart.liquid, cart.de.liquid etc. if logic is the same. You can keep only one snippet lang-cart.liquid and use something like {{ ‘products-’ | append: lang | append: ‘.product.sold_out’ | t }} for translations. Then put these strings to your default language file (like en.default.json).

"products-en": {
"product": {
"sold_out": "Sold",
}
},
"products-ru": {
"product": {
"sold_out": "Нет в наличии"
}
},
"products-zh": {
"product": {
"sold_out": "已售完"
}
}

User also be able to edit translations via shopify console.