Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Commit 2e8ae96

Browse files
committed
Changed property name based on feedback
1 parent 1c5362b commit 2e8ae96

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Microsoft.AspNet.Localization/RequestLocalizationMiddleware.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public async Task Invoke(HttpContext context)
7878
cultureInfo = GetCultureInfo(
7979
cultures,
8080
_options.SupportedCultures,
81-
_options.FallbackToAncestorCulture,
81+
_options.FallBackToParentCultures,
8282
currentDepth: 0);
8383
}
8484

@@ -87,7 +87,7 @@ public async Task Invoke(HttpContext context)
8787
uiCultureInfo = GetCultureInfo(
8888
uiCultures,
8989
_options.SupportedUICultures,
90-
_options.FallbackToAncestorUICulture,
90+
_options.FallBackToParentUICultures,
9191
currentDepth: 0);
9292
}
9393

src/Microsoft.AspNet.Localization/RequestLocalizationOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public RequestCulture DefaultRequestCulture
6161
/// culture "fr-FR", and a configured <see cref="IRequestCultureProvider"/> determines a request's culture is
6262
/// "fr-FR", then the request's culture will be set to the culture "fr", as it is an ancestor of "fr-FR".
6363
/// </example>
64-
public bool FallbackToAncestorCulture { get; set; } = true;
64+
public bool FallBackToParentCultures { get; set; } = true;
6565

6666
/// <summary>
6767
/// Gets or sets a value indicating whether to set a request UI culture to an ancestor culture in the case the
@@ -75,7 +75,7 @@ public RequestCulture DefaultRequestCulture
7575
/// culture is "fr-FR", then the request's UI culture will be set to the culture "fr", as it is an ancestor of
7676
/// "fr-FR".
7777
/// </example>
78-
public bool FallbackToAncestorUICulture { get; set; } = true;
78+
public bool FallBackToParentUICultures { get; set; } = true;
7979

8080
/// <summary>
8181
/// The cultures supported by the application. The <see cref="RequestLocalizationMiddleware"/> will only set

0 commit comments

Comments
 (0)