RequestLocalizationOptions.SetDefaultCulture(String) Method

Definition

Set the default culture which is used by the application when a supported culture could not be determined by one of the configured IRequestCultureProviders.

C#
public Microsoft.AspNetCore.Builder.RequestLocalizationOptions SetDefaultCulture (string defaultCulture);

Parameters

defaultCulture
String

The default culture to be set.

Returns

The RequestLocalizationOptions.

Applies to

Product Versions
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0