1 write to UICulture
Microsoft.AspNetCore.Localization (1)
RequestCulture.cs (1)
56UICulture = uiCulture;
24 references to UICulture
LocalizationSample (2)
Startup.cs (2)
91await 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)
101uiCultureInfo ??= _options.DefaultRequestCulture.UICulture; 117headers.ContentLanguage = requestCulture.UICulture.Name; 126CultureInfo.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)
165Assert.Equal("ar-YE", requestCulture.UICulture.Name);
QueryStringRequestCultureProviderTest.cs (7)
42Assert.Equal("ar-YE", requestCulture.UICulture.Name); 76Assert.Equal("en-US", requestCulture.UICulture.Name); 158Assert.Equal("en-US", requestCulture.UICulture.Name); 200Assert.Equal("ar-SA", requestCulture.UICulture.Name); 242Assert.Equal("ar-SA", requestCulture.UICulture.Name); 289Assert.Equal("ar-YE", requestCulture.UICulture.Name); 337Assert.Equal("fr", requestCulture.UICulture.ToString());
RequestLocalizationMiddlewareTest.cs (1)
54Assert.Equal(parentCulture, requestCulture.RequestCulture.UICulture.Name);
RequestLocalizationOptionsTest.cs (2)
29Assert.Equal(CultureInfo.CurrentUICulture, options.DefaultRequestCulture.UICulture); 45Assert.Equal(explicitCulture, options.DefaultRequestCulture.UICulture);