Hello guys!
We recently expanded into a new market(France) and we are translating all our landing pages to French. However, we came accross a problem - the product descriptions. I cannot find an option to change it based on the market. I read on some of the forums that it can be done with html in the product description code.
Does anybody know whats the right way to do it? And how should I write the code in case html is in fact the best way to go about this?
Thank you in advance!
You can’t change product descriptions per market directly from the Shopify admin unless you use the Translate & Adapt app along with Shopify Markets. That’s the easiest and cleanest way — it lets you add a French version of your product descriptions without messing with code.
If you’re not using that setup, some people try an HTML workaround using Liquid, like:
liquid
CopyEdit
{% if request.locale.iso_code == ‘fr’ %}
Description in French
{% else %}
English description
{% endif %}
But this only works if your theme supports Liquid in the product description, which most don’t by default. So the best move is really to use Shopify’s translation tools or a proper translation app.