For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
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!
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
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 🙂