Locale
Describes a locale with information about language, region, and localization settings.
Type Definition
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
{
endonymName
isoCode
name
primary
rootUrl
}Implements
This type does not implement any interfaces.