When creating orders through the Shopify API we noticed that in the resulting order the field customer_locale is always empty.
In the docs it does say that it’s a read-only property, so we can’t send this data when creating the order. However, how does it get filled in? Is there any way that we can make sure this field is filled in?
In doing some testing it looks like the customer_locale field is set by the language that a shop’s theme is set to - so if they’re using Shopify’s theme translations/languages this should be set on any orders that go through the storefront. Since API-created orders bypass the storefront entirely though, orders created with the Order API won’t have a customer_locale.