GraphQL Queries returning other languages randomly

Topic summary

A developer is experiencing intermittent language localization issues with GraphQL queries in their Shopify custom storefront. Despite properly configuring translations and specifying @inContext(language: ZH_TW) in queries, responses randomly return English instead of Traditional Chinese.

Key Issues:

  • The problem occurs inconsistently across different geographic IP addresses (Hong Kong, India, Singapore)
  • Same queries can produce different language results even when using VPN from identical origins
  • Most requests work correctly, but failures happen randomly for specific regions

Current Status:
Shopify Developer Support responded, requesting the user file an official report through Partner Support if they have specific examples from the past 7 days. They should include:

  • Date, time, and timezone of each occurrence
  • API call URLs
  • x-request-id from responses
  • Additional interaction logs

The issue remains unresolved and appears to be under investigation.

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

Hi,

Im not sure if anyone else has faced this problem, but when we make GrahQL query, the responses sometimes do not return the correct language we specified.

We have the translations properly set up on shopify, and are retrieving the results correctly most of the time.

Most of the time all queries return ZH_TW correctly. There are times when a request from HK IP address returns english, there are times when India IP address returns english, there are times when SG IP address returns english.

We can even get different results from using VPN on the exact same queries when the issues occur. (Some requests from different origin return English even though we specified ZH_TW.)

The weird thing is it works most of the time, but there are random times when it will fail, for specific regions, that are also random. We are not sure if there is a bug on your side.

This is a sample of the request:

query @inContext(language: ZH_TW) {
products(first: 1, query:“id:xxx”) {

Thanks

Hi ms01,

Thanks for your post. If you’d like to make a more private official report and have one or more specific examples from within the past 7 days, please reach out [to Partner Support using the email option], select the ‘App Development & API’ topic, and include as much info as possible such as:

  • the date, time, and timezone when each example happened

  • the URL that each API call connected to

  • the x-request-id from the response and any additional logs of the interaction (no access tokens please)

Hope you have a great day