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
This blog post is a recap of the webinar Getting Ready For BFCM: How To Run A Flash Sal...
By Jacqui Oct 3, 2023Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023