createCustomer mutation how to set locale

Topic summary

A developer has successfully localized their Shopify storefront using the GraphQL API but is encountering an issue with customer account creation.

The Problem:

  • When customers create accounts, the system cannot set their locale/language preference
  • German customers are receiving notification emails in English instead of their preferred language

Technical Details:

  • The createCustomer mutation doesn’t appear to support a locale parameter
  • The developer mentions that @inContext(language: $locale) doesn’t work in this context
  • They cannot add the locale setting to the mutation query

Current Status:
The issue remains unresolved, with the developer seeking guidance on how to properly set customer locale during account creation to ensure notification emails are sent in the correct language.

Summarized with AI on November 16. AI used: claude-sonnet-4-5-20250929.

Hello,

I’ve localized my entire Shopify storefront using the GraphQL API. It works pretty well but there is one thing left that I can’t seem to localize. If a customer creates an account I can’t set the locale to send their notification emails. So a german customer receives his emails in english. I can’t add the locale in the mutation query and

@inContext(language: $locale)

also doesn’t work.

1 Like