Weird bug with a store, related to the store products variants when translated.

Hey Everyone,

I’ve got a weird bug, my liquid code has to check that a variant value is equal to ‘Size’ as defined by my user. when the condition is met my liquid code runs, if its not met then there is no result.

Problem is, this store is translated in many language English, French, Italian and Greek. When you switch the language of the website, the variant value Size on his products is translated to the correspondent language chosen.

My liquid code runs on his English version, french and Italian, but when It comes to Greek. It runs for most product and for some products it doesn’t run, I checked that the products variants he wrote have the same translation for ‘Size’ and still I cannot understand where the bug comes from. My liquid code is error free, as I was able to run it on multiple stores except this one.

I don’t know where to look to investigate more. Did anyone met a similar error like this one related to the translation of a website?

Thanks!

Hi @Bontalexel31 ,

If you’re using Langify then you can remove the translation for “Size” from your option names/variants and translate it using a Custom Content instead in

Langify → Custom → Global Strict Mode

Here’s a guide on how to use Custom Contents just in case:

https://support.langify-app.com/support/solutions/articles/11000082059-custom-content-translations

If you’d like to test this yourself just install Langify on your dev store (affiliate plan), tell me its myshopify domain and I’ll whitelist Langify for you asap.

For any further questions just email us at support@langify-app.com

PS: This is a very frequent issue that we get every other day at Langify.