Shopify has introduced the @inContext directive to the Customer Account API starting with API version 2025-04. This directive accepts a language argument that enables developers to request translated values based on the shop's configured language settings. When a supported language and country combination is requested, the API returns localized content; if an unsupported language is requested, the response automatically falls back to the default language.
For developers building multilingual Shopify storefronts, this update streamlines the process of delivering localized customer experiences. Previously, handling language-specific content required additional workarounds or custom logic. The @inContext directive simplifies internationalization by letting you request translated values directly within your GraphQL queries, reducing complexity and improving performance for global merchants.
This is especially valuable for headless commerce implementations where the Customer Account API powers customer-facing features like account dashboards, order history, and profile management across different regions and languages.
GetShopifyToken provides secure, straightforward access token management for Shopify developers implementing these latest API features. Whether you're authenticating Customer Account API requests or integrating multilingual queries, our platform ensures reliable OAuth token handling so you can focus on building great experiences.