availableLocales
query
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Query the list of available languages for customers in the store. You can use this API to query all available languages for the store, including both currently active and inactive languages.
Arguments
Returns elements following the specified cursor. The
first argument must also be specified when using this argument.Returns elements preceding the specified cursor. The
last argument must also be specified when using this argument.Returns the first n elements in the list.
Returns the last n elements in the list.
Whether to reverse the order of the list.
● true: reverse
● false: do not reverse
Default value: false
Return
A list of cursor and node information for the current page data.
The information used for pagination.
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Query all available languages of the store
Code
query AvailableLocales {
availableLocales {
edges {
node {
isoCode
name
}
}
}
}
Response
{
"data": {
"availableLocales": {
"edges": [
{
"node": {
"name": "English",
"isoCode": "en"
}
},
{
"node": {
"name": "Chinese (Simplified)",
"isoCode": "zh-hans-cn"
}
},
{
"node": {
"isoCode": "zh-hant-tw",
"name": "Chinese (Traditional)"
}
},
{
"node": {
"isoCode": "de",
"name": "German"
}
},
{
"node": {
"name": "Japanese",
"isoCode": "ja"
}
},
{
"node": {
"isoCode": "fr",
"name": "French"
}
},
{
"node": {
"isoCode": "th",
"name": "Thai"
}
},
{
"node": {
"isoCode": "es",
"name": "Spanish"
}
},
{
"node": {
"isoCode": "ru",
"name": "Russian"
}
},
{
"node": {
"isoCode": "pt",
"name": "Portuguese (Brazil)"
}
},
{
"node": {
"isoCode": "it",
"name": "Italian"
}
},
{
"node": {
"isoCode": "nl",
"name": "Dutch"
}
},
{
"node": {
"isoCode": "pl",
"name": "Polish"
}
},
{
"node": {
"isoCode": "ko",
"name": "Korean"
}
},
{
"node": {
"isoCode": "id",
"name": "Indonesian"
}
},
{
"node": {
"isoCode": "ar",
"name": "Arabic"
}
},
{
"node": {
"isoCode": "el",
"name": "Greek"
}
},
{
"node": {
"isoCode": "bg",
"name": "Bulgarian"
}
},
{
"node": {
"isoCode": "ro",
"name": "Romanian"
}
},
{
"node": {
"isoCode": "hu",
"name": "Hungarian"
}
},
{
"node": {
"isoCode": "lt",
"name": "Lithuanian"
}
},
{
"node": {
"isoCode": "vi",
"name": "Vietnamese"
}
},
{
"node": {
"isoCode": "ms",
"name": "Malay"
}
},
{
"node": {
"isoCode": "sv",
"name": "Swedish"
}
},
{
"node": {
"isoCode": "nb",
"name": "Norwegian (Bokmål)"
}
},
{
"node": {
"isoCode": "cs",
"name": "Czech"
}
},
{
"node": {
"isoCode": "fi",
"name": "Finnish"
}
},
{
"node": {
"isoCode": "da",
"name": "Danish"
}
},
{
"node": {
"isoCode": "lv",
"name": "Latvian"
}
},
{
"node": {
"name": "Estonian",
"isoCode": "et"
}
},
{
"node": {
"isoCode": "hr",
"name": "Croatian"
}
},
{
"node": {
"isoCode": "hi",
"name": "Hindi"
}
},
{
"node": {
"isoCode": "tr",
"name": "Turkish"
}
},
{
"node": {
"isoCode": "sk",
"name": "Slovak"
}
},
{
"node": {
"isoCode": "sl",
"name": "Slovenian"
}
},
{
"node": {
"isoCode": "pt-pt",
"name": "Portuguese (Portugal)"
}
}
]
}
},
"extensions": {
"cost": {
"actualQueryCost": 6,
"requestedQueryCost": 6,
"throttleStatus": {
"currentlyAvailable": 4994,
"maximumAvailable": 5000,
"restoreRate": 5000
}
}
}
}
Was this article helpful to you?