Showing results for 
Search instead for 
Did you mean: 

Magento GraphQL localization issue

Magento GraphQL localization issue



I have a Magento 2 website and I'm currently building an external app that uses the Magento GraphQL and REST APIs.


In my Magento site, I have a unique store with two store views,one for english and one for french. I also have a working french language pack installed. When i'm using the GraphQL's createCustomer mutation in order to create a new customer account, it works well but the welcome email sent to the customer is always in english, even tough I specify the french store code in my request. It's like the GraphQL API doesn't seem to care about the store view's locale setting.


I don't think it's an issue with the language pack since when I create an account on my french website using the Magento frontend, evything works well.


I've also noticed that GraphQL always returns its error messages in english no matter the locale of the store view used for the request. Maybe both issues are linked.


Here's my GraphQL request:

Headers: Store fr (fr being my french store view code)

mutation {
    input: {
      firstname: "Test"
      lastname: "Test"
      email: ""
      password: "b0bl0bl@w"
      is_subscribed: true
  ) {
    customer {

Has anyone had this issue or know if GraphQL even supports localization at this point?


Thank you