RequestLocalizationOptions.FallBackToParentUICultures Property

Definition

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

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

Property Value

Examples

If this property is true and the application is configured to support the UI culture "fr", but not the UI culture "fr-FR", and a configured IRequestCultureProvider determines a request's UI culture is "fr-FR", then the request's UI 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 ony the culture name.

Applies to