Solved

What's the difference between request.locale.iso_code and shop.locale?

YuLarry
Shopify Partner
3 0 0

Which property should I use, request.locale.iso_code or shop.locale? What is the difference between the two, and is the shop.locale property deprecated?

Accepted Solution (1)

NomtechSolution
Astronaut
1245 113 149

This is an accepted solution.

key difference between request.locale.iso_code and shop.locale is that the former represents the customer's current language preference, while the latter represents the default language setting of the shop.

View solution in original post

Reply 1 (1)

NomtechSolution
Astronaut
1245 113 149

This is an accepted solution.

key difference between request.locale.iso_code and shop.locale is that the former represents the customer's current language preference, while the latter represents the default language setting of the shop.