Solved

Checkout Language in Additional Scripts

rjml
Tourist
4 1 0

I am trying to check checkout language on "Additional Scripts" on "Checkout".

The purpose if because of a payment method that have written text (on this script field) and we need to be able to translate it.

Any help?

Accepted Solution (1)
rjml
Tourist
4 1 0

This is an accepted solution.

For anyone coming here.

We were able to do it using: shop.locale

View solution in original post

Replies 3 (3)

LitExtension
Shopify Partner
4860 1001 1135

Hi @rjml,

Go to Settings > Additional scripts. https://i.imgur.com/VCE3GWV.png

You can find it here.

Hope it helps!

If you find my answer can help you solve your issue, please mark it as a solution. Thank you and good luck.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
rjml
Tourist
4 1 0

@LitExtension Thanks for your answer.

We know where to locate that Additional Scripts, and we already have scripts running (and working).

But we are setting up a multi language store now.
And some of our scripts (on that field Additional Scripts) use text.

What we want is to know how to identify current checkout language, something like:
if checkout language == pt then
   run PT SCRIPT
else if checkout language == en then
   run EN SCRIPT
endif

This is what we are not able to achieve. And we can't find anything about it on docs.

We just need to know, how to identify current checkout language on Settings > Checkout > Additional Scripts, in order to provide Script according the language.

Can you help? Thanks.

 

rjml
Tourist
4 1 0

This is an accepted solution.

For anyone coming here.

We were able to do it using: shop.locale