--- title: "@inContext directive added to the Customer Account API - Shopify developer changelog" description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/exposed-incontext-directive-with-the-customer-account-api md: https://shopify.dev/changelog/exposed-incontext-directive-with-the-customer-account-api.md --- [Back to Developer changelog](https://shopify.dev/changelog) April 1, 2025 Tags: * Customer Account API * 2025-04 # `@inContext` directive added to the Customer Account API As of API version 2025-04, we've added the `@inContext` directive in the [Customer Account API](https://shopify.dev/docs/api/customer). The `@inContext` directive accepts an argument: `language`. * If the requested language is active for the given country, as configured within the shop's [Language settings](https://help.shopify.com/en/manual/international/languages/manage-languages), then the query will return translated values. * If an unsupported language or country is requested using `@inContext`, then the response will fall back to the default language. The following operation shows an example usage of this directive: ``` mutation customerAddressUpdate @inContext(language: FR){ customerAddressUpdate(address: {phoneNumber: "invalid123"}, addressId: "gid://shopify/CustomerAddress/123456" ) { userErrors { code field message } } } ``` Response: ``` { "data": { "customerAddressUpdate": { "userErrors": [ { "code": "PHONE_NUMBER_NOT_VALID", "field": null, "message": "Le numéro de téléphone n'est pas valide." } ] } }, "extensions": { "context": { "country": "CA", "language": "FR" }, "cost": { "requestedQueryCost": 10, "actualQueryCost": 10 } } } ```