Liquid, JavaScript, themes, sales channels
Hello everyone,
Shopify partner here living in Quebec, where it is very important for us to have bilingual websites.
So I've figured most of it, translatable theme, the t filter, everything looks good except for the user inputs from content sections inside the theme customizer. On most sites by default, it is used for the home page, but I find it very handy to create custom pages so my client can easily edit content in there, however, I am stuck with a single language.
How can I translate the user input content from sections in the theme customize tool?
Thank you!
Did you find any solution?
I have the same problem where we can use sections in stores with more than one language
There is currently no way to do it except create multiple settings for the translations. So since I only do 2 or 3 languages websites, I add the 2 languages when needed in the section settings.
I think it's viable for the small clients and bigger clients are usually on Shopify plus with headless e-commerce anyway, so they might not need this fix.
Thanks.
I see. For now I will do something like this, creating 2 inputs. I think that is a better solution in UX that the "locales" one.
{% if request.locale.name == "English" %}
<h1>{{ section.settings.header_en }}</h1>
{% else %}
<h1>{{ section.settings.header_pt }}</h1>
{% endif %}
Shopify really needs to improve the multi-language
User | RANK |
---|---|
33 | |
25 | |
17 | |
9 | |
9 |
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023