Culture client

The Culture client can be used to fetch culture-related information from Sitecore Content Hub.


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:


await client.cultures.getDefaultCultureAsync();

Getting all registered cultures

To get all registered cultures from Sitecore Content Hub:


await client.cultures.getAllCulturesAsync();

Do you have some feedback for us?

If you have suggestions for improving this article,