Culture client
The Culture client can be used to fetch culture-related information from Sitecore Content Hub.
Note
The client variable in the following code examples refers to the ContentHubClient instance. When using the JavaScript SDK, the variable name can be chosen freely, but is also called client at instantiation in the documentation.
Getting the default culture
To get the default culture from Sitecore Content Hub:
RequestResponse
await client.cultures.getDefaultCultureAsync();
Getting all registered cultures
To get all registered cultures from Sitecore Content Hub:
RequestResponse
await client.cultures.getAllCulturesAsync();