cartLinesAdd mutation always returning context language 'EN' using @inContext

Topic summary

A developer reports that the cartLinesAdd mutation consistently returns cart data in English (the store’s default language) despite using the @inContext directive to specify a different language.

Key Details:

  • The @inContext directive appears to be ignored by this specific mutation
  • The standard cart query correctly respects the language context and returns translated content
  • A screenshot demonstrates the issue with the mutation configuration

Current Status:

  • At least two developers have encountered this identical problem
  • The issue remains unresolved with no solutions or workarounds provided yet
  • One user cross-referenced another community post describing the same behavior
Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

Hi,

I’m having an issue when using @inContext on this mutation, it always returns the cart object in English (which is the default language of the store).
Screenshot attached for reference.

Btw, the cart query works properly as it returns the correct language when using @inContext.

Any help will be really appreciated.

Thanks!

3 Likes

Having the same issue, also posted it before finding this issue.

1 Like