Share via


RequestLocalizationOptions.FallBackToParentCultures Property

Definition

Gets or sets a value indicating whether to set a request culture to an parent culture in the case the culture determined by the configured IRequestCultureProviders is not in the SupportedCultures list but a parent culture is. Defaults to true;

public:
 property bool FallBackToParentCultures { bool get(); void set(bool value); };
public bool FallBackToParentCultures { get; set; }
member this.FallBackToParentCultures : bool with get, set
Public Property FallBackToParentCultures As Boolean

Property Value

Examples

If this property is true and the application is configured to support the culture "fr", but not the culture "fr-FR", and a configured IRequestCultureProvider determines a request's culture is "fr-FR", then the request's culture will be set to the culture "fr", as it is a parent of "fr-FR".

Remarks

Note that the parent culture check is done using only the culture name.

Applies to