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 |
---|---|
24 | |
23 | |
12 | |
12 | |
10 |
Thanks to all who participated in our AMA with 2H Media on planning your 2023 marketing bu...
By Jacqui Mar 30, 2023Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023