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)
50var newLanguage = GlobalizationHelpers.LocalizedCultures.SingleOrDefault(c => string.Equals(c.Name, language, StringComparisons.CultureName)); 56if (!GlobalizationHelpers.ExpandedLocalizedCultures.TryGetValue(newLanguage.Name, out var availableCultures)) 67requestCulture = await GlobalizationHelpers.ResolveSetCultureToAcceptedCultureAsync(acceptLanguage, availableCultures).ConfigureAwait(false);
DashboardWebApplication.cs (1)
277var supportedCultureNames = GlobalizationHelpers.ExpandedLocalizedCultures