How to add custom translation key in local files in Shopify

How to add custom translation key in local files in Shopify

Jo-Ibra
Tourist
8 0 1

Hello, since couple of days I was trying to show sale with percentage on products pictures. I already  did it, and the below picture was my result:

 

JoIbra_0-1742063401575.png

 

My problem is that, I use 2 languages ( English default and Arabic ) In English language it is ok as you can see in the above picture, But in Arabic also show the same, I want to add custom arabic translation for the word "OFF", So any body have idea about how can I create translation key in the local files to translate the word off in Arabic language. Here my custom code for showing the % in product pictures

JoIbra_1-1742063726113.png

 

I do appreciate any help in that

Jo-Ibra
Replies 2 (2)
Jo-Ibra
Tourist
8 0 1

Hello, Doxidepro, There is no option for manual translation, as far as i know, it is need to add a new translation key in both English and Arabic local files because the word (OFF) is not defined. I cannot find the correct way to do it.

Jo-Ibra
Jo-Ibra
Tourist
8 0 1

Thank you for you effort,I really appreciate it,  I did it by different way, in all cases the percentage displayed and the problem to translate the off word, simply i removed the off word and replace it with original coded translation and working fine.

Here is the result:

JoIbra_0-1742147367200.png

 

Jo-Ibra