6 references to GlobalizationHelpers
Aspire.Dashboard (6)
Components\Dialogs\SettingsDialog.razor.cs (2)
29
_languageOptions = [..
GlobalizationHelpers
.LocalizedCultures.OrderBy(c => c.NativeName, StringComparer.InvariantCultureIgnoreCase)];
31
_selectedUiCulture =
GlobalizationHelpers
.TryGetKnownParentCulture(_languageOptions, CultureInfo.CurrentUICulture, out var matchedCulture)
DashboardEndpointsBuilder.cs (3)
50
var newLanguage =
GlobalizationHelpers
.LocalizedCultures.SingleOrDefault(c => string.Equals(c.Name, language, StringComparisons.CultureName));
56
if (!
GlobalizationHelpers
.ExpandedLocalizedCultures.TryGetValue(newLanguage.Name, out var availableCultures))
67
requestCulture = await
GlobalizationHelpers
.ResolveSetCultureToAcceptedCultureAsync(acceptLanguage, availableCultures).ConfigureAwait(false);
DashboardWebApplication.cs (1)
277
var supportedCultureNames =
GlobalizationHelpers
.ExpandedLocalizedCultures