Hello there!
It appears there is no way in Liquid to understand if the a field doesn’t have the translation in a specific locale, if there is some content in the main locale for the same field.
Let’s make an example:
- Product title has some content in the primary language
- Product title doesn’t have its Spanish translation
- when I visit the store in Spanish, {{ product.title }} always render the English version of the title.
It might be ok for some fields, like the title, but for other fields, like the description, it would be great to have control over rendering nothing instead of the content in another language.
I have some workaround in mind already, like putting some fake content (like an empty string) in the fields where I don’t want the fallback, or keeping track in a custom metafield about which fields have a translation in all the supported languages. Both solutions are not ideal, though.
Is there any native way of solving this?