---
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
metadata:
  effectiveApiVersion: 2025-04
  affectedApi:
    - displayName: Customer Account API
      handle: customer-account-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2025-03-07T14:16:42-05:00'
  postedAt: '2025-04-01T12:00:00-04:00'
  updatedAt: '2025-03-28T16:42:15-04:00'
  effectiveAt: '2025-04-01T12:00:00-04:00'
---

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
					}
				}
			}
```
