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 |
---|---|
32 | |
27 | |
20 | |
7 | |
7 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023