We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Change language using capture or replace in shopify?

Change language using capture or replace in shopify?

dungle
Shopify Partner
1 0 0

Hi everyone, i'm having situation like this

<div class="orderitem-description">{{ item.description }}</div>
Example
<div class="orderitem-description">Waist: 1</div>

Can i use replace or capture just to change the "Waist" to other language? 
Example like this
<div class="orderitem-description">{{ item.description | replace: 'Waist', '허리' | replace: 'Size', '사이즈' | replace: 'Length', '길이'}}
</div>

Thank you. 

Reply 1 (1)

LizHoang
Shopify Partner
1251 159 195

Hi @dungle, thanks for reaching out. 

 

Regarding your request, I checked and would like to inform you that your current approach involves hardcoding translations within the Liquid template, which may not be the most flexible solution. Instead, I recommend you use a translation app to handle multiple languages efficiently. 

 

I hope my information is helpful to you. 

 

Liz

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program