Request

Retrieves the list of languages added to the environment.

Security
Bearer
Query
environmentIdstring

The identifier of the environment.

curl -i -X GET \
  'https://xmapps-api.sitecorecloud.io/api/v1/languages?environmentId=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Success

Bodyapplication/json
Array [
idstring or null

The identifier of the language. Example value: af58419145c9420187405409f4cf8bdd

Example:"af58419145c9420187405409f4cf8bdd"
isostring or null

The ISO code of the language. Example value: en

Example:"en"
regionalIsoCodestring or null

The regional ISO code of the language, for example, US for the USA, or DK for Denmark. Example value: en-US

Example:"en-US"
fallbackLanguageIsostring or null

The ISO code of the fallback language Example value: en

Example:"en"
namestring or null

The ISO language code (e.g., "en" for English, "es" for Spanish). Example value: en-US

Example:"en-US"
displayNamestring or null

The human-readable name of the language as it appears in the user interface, for example, "English" or "Español." Example value: English (United States) : English (United States)

Example:"English (United States) : English (United States)"
nativeNamestring or null

The language name in its original script or characters. For instance, "English" would be displayed as "English" itself, but "日本語" would appear as "日本語." Example value: English (United States)

Example:"English (United States)"
englishNamestring or null

The language name in English, regardless of the language being described. For example, "Deutsch" would be displayed as "German." Example value: English (United States)

Example:"English (United States)"
baseIsoCultureCodestring or null

Base ISO culture code. If this is a custom language, this ISO culture code will represent the language code used as the base of this language. For example, if the custom language uses the same writing system, calendar, and date format as American English, the value would be 'en-US'. Example value: en-US

Example:"en-US"
fallbackRegionDisplayNamestring or null

If this is a custom language, the Fallback Region Display Name respresents the region name that should be displayed. Example value: North America

Example:"North America"
permissionsobject(Permissions)

The access rights of the current user to the site.

]
Response
[ { "id": "af58419145c9420187405409f4cf8bdd", "iso": "en", "regionalIsoCode": "en-US", "fallbackLanguageIso": "en", "name": "en-US", "displayName": "English (United States) : English (United States)", "nativeName": "English (United States)", "englishName": "English (United States)", "baseIsoCultureCode": "en-US", "fallbackRegionDisplayName": "North America", "permissions": { … } } ]