Shopify Community
Locale change in the storefront doesn't immediately reflect in the functions input
Retired Boards
Appdev
Functions
optimization
romie
October 23, 2023, 1:10pm
1
Steps:
Set the cart up so that a discount functions executes.
Check the value of locale ISO code provided in input from function logs.
Change the locale code on the store front
Check the logs, the value would still be the old locale code.
Related topics
Topic
Replies
Views
Activity
shopify functions translation
Shopify Apps
shopify-apps
1
151
January 17, 2025
Mehrsprachiger Shop
Technische Fragen & Antworten
css
3
38
January 23, 2023
Translating discount message with Input.locale in Shopify Scripts
Technical Q&A
0
16
March 17, 2022
Show different content based locale , different product information
Shopify Discussion
shop-performance
0
24
October 2, 2023
Language is switched to default when clicking on /{{ shop.locale }}/checkout
Start a Business
troubleshooting
1
68
August 8, 2024