How to translate hard-coded text for one language only?

How to translate hard-coded text for one language only?

EcoGifts
Tourist
5 1 0

Hi, I have a question. I created a second language on my page. Everything is translated, but I put some text in the coding itself. This is not translated. If I translate this, it translates for both languages. How can I only change it for one language? 

 

I am using Translate & Adapt, but I would also like to translate something which is hard-coded in my product-template.liquid. 

Reply 1 (1)

shopifyavi
Shopify Staff
40 6 19

Hi there, from what I'm understanding it might be that you can use a t-filter for the specific fields you want to translate. That should expose them into Translate & Adapt which will allow you to translate it to whichever language you need. see documentation here https://shopify.dev/docs/themes/architecture/locales/storefront-locale-files

To learn more visit the Shopify Help Center or the Community Blog.