payment methods translations in checkout extensibility

payment methods translations in checkout extensibility

kristinam
Shopify Partner
5 0 0

Hello,

 

Does anyone know how to translate payment methods (additional payment methods) in new checkout extensibility? With checkout.liquid I could load checkout.js to detect language and show correct text. How to do it now? Thanks!

Replies 2 (2)

Liam
Community Manager
3108 341 879

Hi Kristinam

 

Once you detect language, how are you showing new text, eg: using JS to target the content? Have you looked into using the CustomerAccountStandardApi - specifically i18n.

 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

kristinam
Shopify Partner
5 0 0

Hi Liam,

 

Thanks for reply. The case is not about checkout extension. But the regular checkout. When there was the checkout.liquid, we had custom checkout.js to write the translation by targeting the gateway and putting if(Shopify.Checkout.normalizedLocale == 'en'), then show English text. But now I can't load any js to checkout. How do I change the texts now?

 

Sorry if that sounds confusing 🙂