# Locale Describes a locale with information about language, region, and localization settings. ## Type Definition ```graphql type Locale { endonymName: String isoCode: String name: String primary: Boolean rootUrl: String } ``` ## Fields | Field | Type | Description | |-------|------|-------------| | endonymName | String | Returns the endonym name for this locale. | | isoCode | String | Returns the iso code for this locale. | | name | String | Returns the name. | | primary | Boolean | Returns true if this locale is the shops primary locale. | | rootUrl | String | Returns the root URL for this locale. | ## Relationships The `Locale` type is used by the `Customer` type to specify the customer's preferred language locale. It provides localization information that can be referenced when personalizing content or communications for specific regions and languages. ## Example ```graphql { endonymName isoCode name primary rootUrl } ``` ## Implements This type does not implement any interfaces. ## Related Types - [`Customer`](/docs/api/types/customer)