Receiving wrong welcome email language when registering through Storefront API

Hi all,

when using the Storefront API to register a customer, we found an issue that Shopify sends out the welcome e-mail with the wrong language selected.

We create the customer using the customerCreate mutation and specify the Accept-Language header. Furthermore, we have set the @inContext directive with language parameter. Still, the customer always receives emails in english, not in the one we specified.

Is there any parameter we are not aware of that controls this behavior?

Thanks in advance!

Hi Ocastx,

The Accept-Language header and @inContext directive are both used to specify the language of the Storefront API responses, but they might not affect the language used in Shopify’s automated emails, such as the welcome email. The language used in these emails is typically determined by the customer’s language preference in their customer profile within Shopify, so it’s separate to the Storefront API.

Could you create customers via the Admin customerCreate mutation instead of the Storefront API one, as this has a locale field and may apply the language settings? Alternatively, you could create a custom welcome email and send it to the customer using your own email service provider. This way, you can control the language in which the email is sent.

Hope this helps,