1 write to UICulture
Microsoft.AspNetCore.Localization (1)
RequestCulture.cs (1)
56
UICulture
= uiCulture;
24 references to UICulture
LocalizationSample (2)
Startup.cs (2)
91
await context.Response.WriteAsync($"<tr><th>{SR["Current request UI culture:"]}</th><td>{requestCulture.
UICulture
.DisplayName} ({requestCulture.
UICulture
})</td></tr>");
Microsoft.AspNetCore.Localization (8)
CookieRequestCultureProvider.cs (1)
56
$"{_uiCulturePrefix}{requestCulture.
UICulture
.Name}");
RequestCulture.cs (4)
14
/// Creates a new <see cref="RequestCulture"/> object with its <see cref="Culture"/> and <see cref="
UICulture
"/>
24
/// Creates a new <see cref="RequestCulture"/> object with its <see cref="Culture"/> and <see cref="
UICulture
"/>
34
/// Creates a new <see cref="RequestCulture"/> object with its <see cref="Culture"/> and <see cref="
UICulture
"/>
45
/// Creates a new <see cref="RequestCulture"/> object with its <see cref="Culture"/> and <see cref="
UICulture
"/>
RequestLocalizationMiddleware.cs (3)
101
uiCultureInfo ??= _options.DefaultRequestCulture.
UICulture
;
117
headers.ContentLanguage = requestCulture.
UICulture
.Name;
126
CultureInfo.CurrentUICulture = requestCulture.
UICulture
;
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
68
$"{requestCulture.Culture.Name},{requestCulture.
UICulture
.Name}");
120
$"{requestCulture.Culture.Name},{requestCulture.
UICulture
.Name}");
190
$"{requestCulture.Culture.Name},{requestCulture.
UICulture
.Name}");
Microsoft.AspNetCore.Localization.Tests (11)
AcceptLanguageHeaderRequestCultureProviderTest.cs (1)
165
Assert.Equal("ar-YE", requestCulture.
UICulture
.Name);
QueryStringRequestCultureProviderTest.cs (7)
42
Assert.Equal("ar-YE", requestCulture.
UICulture
.Name);
76
Assert.Equal("en-US", requestCulture.
UICulture
.Name);
158
Assert.Equal("en-US", requestCulture.
UICulture
.Name);
200
Assert.Equal("ar-SA", requestCulture.
UICulture
.Name);
242
Assert.Equal("ar-SA", requestCulture.
UICulture
.Name);
289
Assert.Equal("ar-YE", requestCulture.
UICulture
.Name);
337
Assert.Equal("fr", requestCulture.
UICulture
.ToString());
RequestLocalizationMiddlewareTest.cs (1)
54
Assert.Equal(parentCulture, requestCulture.RequestCulture.
UICulture
.Name);
RequestLocalizationOptionsTest.cs (2)
29
Assert.Equal(CultureInfo.CurrentUICulture, options.DefaultRequestCulture.
UICulture
);
45
Assert.Equal(explicitCulture, options.DefaultRequestCulture.
UICulture
);