graphql response in multiple languages ?

Topic summary

Request to control the language of GraphQL error messages (localization), asking how to “force” errors to return in a specific language. The goal is to have user-facing error text localized rather than always in English.

Example payload shows a mutation response with customerUserErrors containing: code “TAKEN”, field [“customer”, “email”], and message “Email has already been taken” (English). The user wants this message returned in another language.

Key context: In GraphQL, user errors often include fields like code (error type), field (input path causing the error), and message (human-readable text). The question seeks guidance on whether configuration exists (e.g., settings or parameters) to control the language of these messages.

Status: No answers or resolution provided yet. The code snippet is central to understanding the issue.

Summarized with AI on December 16. AI used: gpt-5.

Hello,

how to force graphql error message language?

exemple:

{
    "data": {
        "customerUpdate": {
            "customer": null,
            "customerUserErrors": [
                {
                    "code": "TAKEN",
                    "field": [
                        "customer",
                        "email"
                    ],
                    "message": "Email has already been taken"
                }
            ]
        }
    }
}