How to translate a user input from section

Anonymous
Not applicable

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!

Replies 3 (3)
MPMachado
Shopify Expert
8 0 8

Did you find any solution?

I have the same problem where we can use sections in stores with more than one language

https://alaska.agency
Anonymous
Not applicable

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.

MPMachado
Shopify Expert
8 0 8

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

https://alaska.agency