Culture client

The SDK provides a Cultures client to fetch cultures from Sitecore Content Hub.


The client variable in the following code examples refers to the IMClient instance. When using the Web SDK, the variable name can be chosen freely, but it is also called client at instantiation in the documentation.

Getting the default culture

To get the default culture from the Sitecore Content Hub:

CultureInfo defaultCulture = await MClient.Cultures.GetDefaultCultureAsync();

Getting all registered cultures

To get all registered cultures from the Sitecore Content Hub:

IList<CultureInfo> cultures = await MClient.Cultures.GetAllCulturesAsync();

Can we improve this article ? Provide feedback