Hey, I’m wondering if someone has any idea how to approach this.
Let’s say my store’s locale is currently set to French but I would like to display the product title on PDP in English (so the ‘en’ locale), how do I go about it? Is there a liquid syntax for getting the title in a particular locale?
Hi Chideraa, did you manage to work this out? I’m trying to achieve the same thing. Basically with the below code, but not sure where/how to get the English product.title
Damn, that’s unfortunate. We’ve gone the route of using a metafield for the Japanese title. So the product has an English title (primary language), but no Japanese title on the product itself.
Code example for anyone that is interested
{% if localization.language.iso_code == 'ja' and product.metafields.translation.title_ja %}
{{ product.metafields.translation.title_ja }}
{%- endif -%}