Hi There,
I’m looking for a way to automatically translate the content that a merchant writes on my app. For example. The merchant can create a drop-down and type 3 options:
1 dog, 2 dogs and 3 dogs. I’d like to find a way to auto-translate this content depending on the shopper’s locale, so if visited from Spain for example that dropdown should show 1 perro, 2 perros, 3 perros.
So far I belive that the best (and maybe the only) option is to create a function that when saving the dropdown iterates over all the merchant created values and stores that in a metaobject.
Then accessing the fields created on the metaobject on Shopify’s “translate and adapt” and using the “Auto Translate”.
Finally, when it comes to displaying the translation in the storefront, it would be a matter of checking the shoppers’ locale and reading the matching translation stored in the meta object.
Does this approach make sense? Any better way that you can think about?
Thanks!