1 write to Culture
Microsoft.AspNetCore.Localization (1)
RequestCulture.cs (1)
55
Culture
= culture;
31 references to Culture
LocalizationSample (2)
Startup.cs (2)
90
await context.Response.WriteAsync($"<tr><th>{SR["Current request culture:"]}</th><td>{requestCulture.
Culture
.DisplayName} ({requestCulture.
Culture
})</td></tr>");
Microsoft.AspNetCore.Localization (7)
CookieRequestCultureProvider.cs (1)
55
$"{_culturePrefix}{requestCulture.
Culture
.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 (2)
100
cultureInfo ??= _options.DefaultRequestCulture.
Culture
;
125
CultureInfo.CurrentCulture = requestCulture.
Culture
;
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 (19)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
38
Assert.Equal("ar-SA", requestCulture.
Culture
.Name);
79
Assert.Equal("ar-SA", requestCulture.
Culture
.Name);
119
Assert.Equal("fr-FR", requestCulture.
Culture
.Name);
164
Assert.Equal("ar-YE", requestCulture.
Culture
.Name);
CookieRequestCultureProviderTest.cs (3)
52
Assert.Equal("ar-SA", requestCulture.
Culture
.Name);
104
Assert.Equal("en-US", requestCulture.
Culture
.Name);
153
Assert.Equal("en-US", requestCulture.
Culture
.Name);
CustomRequestCultureProviderTest.cs (1)
49
Assert.Equal("ar", requestCulture.
Culture
.Name);
QueryStringRequestCultureProviderTest.cs (7)
41
Assert.Equal("ar-SA", requestCulture.
Culture
.Name);
75
Assert.Equal("en-US", requestCulture.
Culture
.Name);
117
Assert.Equal("en-US", requestCulture.
Culture
.Name);
199
Assert.Equal("ar-SA", requestCulture.
Culture
.Name);
241
Assert.Equal("ar-SA", requestCulture.
Culture
.Name);
288
Assert.Equal("ar-SA", requestCulture.
Culture
.Name);
336
Assert.Equal("fr", requestCulture.
Culture
.ToString());
RequestLocalizationMiddlewareTest.cs (1)
53
Assert.Equal(parentCulture, requestCulture.RequestCulture.
Culture
.Name);
RequestLocalizationOptionsTest.cs (3)
28
Assert.Equal(CultureInfo.CurrentCulture, options.DefaultRequestCulture.
Culture
);
44
Assert.Equal(explicitCulture, options.DefaultRequestCulture.
Culture
);
124
Assert.Equal(defaultCulture, options.DefaultRequestCulture.
Culture
.Name);