Culture client

Current version: 3.3

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 docs.

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();

Do you have some feedback for us?

If you have suggestions for improving this article,