5 implementations of
Aspire.Dashboard.Components.Tests (2)
Controls\ApplicationNameTests.cs (1)
82public LocalizedString this[string name] => new LocalizedString(name, $"Localized:{name}");
tests\Shared\TestStringLocalizer.cs (1)
10public LocalizedString this[string name] => new LocalizedString(name, $"Localized:{name}");
Aspire.Dashboard.Tests (1)
tests\Shared\TestStringLocalizer.cs (1)
10public LocalizedString this[string name] => new LocalizedString(name, $"Localized:{name}");
Microsoft.Extensions.Localization (1)
ResourceManagerStringLocalizer.cs (1)
99public virtual LocalizedString this[string name]
Microsoft.Extensions.Localization.Abstractions (1)
StringLocalizerOfT.cs (1)
30public virtual LocalizedString this[string name]
207 references to
Aspire.Dashboard (169)
Components\Controls\ApplicationName.razor.cs (1)
83applicationName = string.Format(CultureInfo.InvariantCulture, Loc[ResourceName], DashboardClient.ApplicationName);
Components\Controls\Chart\MetricTable.razor.cs (5)
110Title = DialogsLoc[nameof(Dashboard.Resources.Dialogs.ExemplarsDialogTitle)], 111PrimaryAction = DialogsLoc[nameof(Dashboard.Resources.Dialogs.DialogCloseButtonText)], 319ValueDirectionChange.Up => (new Icons.Filled.Size16.ArrowCircleUp().WithColor(Color.Success), Loc[nameof(ControlsStrings.MetricTableValueIncreased)]), 320ValueDirectionChange.Down => (new Icons.Filled.Size16.ArrowCircleDown().WithColor(Color.Warning), Loc[nameof(ControlsStrings.MetricTableValueDecreased)]), 321ValueDirectionChange.Constant => (new Icons.Filled.Size16.ArrowCircleRight().WithColor(Color.Info), Loc[nameof(ControlsStrings.MetricTableValueNoChange)]),
Components\Controls\Chart\PlotlyChart.razor.cs (5)
53{Loc[nameof(ControlsStrings.PlotlyChartValue)]}: {formattedValue}<br /> 54{Loc[nameof(ControlsStrings.PlotlyChartTime)]}: {FormatHelpers.FormatTime(TimeProvider, TimeProvider.ToLocal(xValue))} 150Name = Loc[nameof(ControlsStrings.PlotlyChartExemplars)], 167title = $"{Loc[nameof(ControlsStrings.PlotlyChartTrace)]}: {OtlpHelpers.ToShortenedId(exemplar.TraceId)}"; 172title = Loc[nameof(ControlsStrings.PlotlyChartExemplar)];
Components\Controls\ClearSignalsButton.razor.cs (3)
46Text = ControlsStringsLoc[name: nameof(ControlsStrings.ClearAllResources)], 56? ControlsStringsLoc[nameof(ControlsStrings.ClearPendingSelectedResource)] 57: string.Format(CultureInfo.InvariantCulture, ControlsStringsLoc[name: nameof(ControlsStrings.ClearSelectedResource)], SelectedResource.Name),
Components\Controls\DashboardRunSelect.razor.cs (4)
20private string RunSelectTitle => Loc[nameof(LayoutResources.DashboardRunSelectTitle)]; 23? Loc[nameof(LayoutResources.DashboardRunSelectCurrent)] 68SecondaryActionAriaLabel = Loc[run.IsPinned 106return Loc[nameof(LayoutResources.DashboardRunSelectCurrent)];
Components\Controls\Grid\AspireFluentDataGrid.cs (2)
42contentBuilder.AddComponentParameter(7, nameof(AspireProgressRing.AriaLabel), Loc[nameof(ControlsStrings.Loading)].Value); 45contentBuilder.AddContent(9, Loc[nameof(ControlsStrings.Loading)]);
Components\Controls\UserProfile.razor.cs (1)
58_name = Loc[nameof(Login.AuthorizedUser)];
Components\Dialogs\AIAgentsDialog.razor.cs (2)
36? string.Format(CultureInfo.CurrentCulture, Loc[nameof(DialogsLoc.AIAgentsDialogAppHostDescription)], AppHostLearnMoreUrl, InstallCliUrl) 37: string.Format(CultureInfo.CurrentCulture, Loc[nameof(DialogsLoc.AIAgentsDialogStandaloneDescription)], GetDashboardUrl(), StandaloneLearnMoreUrl, InstallCliUrl);
Components\Dialogs\InteractionsInputDialog.razor.cs (4)
250? Loc[nameof(Resources.Dialogs.InteractionFilePlaceholderMultiple)] 251: Loc[nameof(Resources.Dialogs.InteractionFilePlaceholder)]; 263fileReferences.Add(new FileReferenceViewModel { Name = file.Name, ErrorMessage = string.Format(CultureInfo.CurrentCulture, Loc[nameof(Resources.Dialogs.InteractionFileExceedsMaxSize)], FormatHelpers.FormatFileSize(maxFileSize)) }); 275fileReferences.Add(new FileReferenceViewModel { Name = file.Name, ErrorMessage = Loc[nameof(Resources.Dialogs.InteractionFileUploadFailed)] });
Components\Dialogs\ManageDataDialog.razor.cs (9)
342private string GetHeaderSelectionLabel() => Loc[nameof(Resources.Dialogs.ManageDataAllDataCheckboxLabel)]; 366AspireDataType.ResourceDetails => Loc[nameof(Resources.Dialogs.ManageDataResource)], 367AspireDataType.ConsoleLogs => Loc[nameof(Resources.Dialogs.ManageDataConsoleLogs)], 368AspireDataType.StructuredLogs => Loc[nameof(Resources.Dialogs.ManageDataStructuredLogs)], 369AspireDataType.Traces => Loc[nameof(Resources.Dialogs.ManageDataTraces)], 370AspireDataType.Metrics => Loc[nameof(Resources.Dialogs.ManageDataMetrics)], 581_errorMessage = $"{Loc[nameof(Resources.Dialogs.ManageDataRemoveErrorMessage)]}: {ex.Message}"; 617_errorMessage = $"{Loc[nameof(Resources.Dialogs.ManageDataImportErrorMessage)]}: {ex.Message}"; 648_errorMessage = $"{Loc[nameof(Resources.Dialogs.ManageDataExportErrorMessage)]}: {ex.Message}";
Components\Interactions\InteractionsProvider.cs (3)
576return Loc[nameof(Resources.Dialogs.InteractionButtonClose)]; 579return Loc[nameof(Resources.Dialogs.InteractionButtonOk)]; 591: Loc[nameof(Resources.Dialogs.InteractionButtonCancel)];
Components\Layout\MainLayout.razor.cs (12)
185unsecuredEndpointsMessage.AppendLine(Loc[nameof(Resources.Layout.MessageUnsecuredEndpointTelemetryBody)]); 189unsecuredEndpointsMessage.AppendLine(Loc[nameof(Resources.Layout.MessageUnsecuredEndpointApiBody)]); 203Title = Loc[nameof(Resources.Layout.MessageUnsecuredEndpointTitle)], 205LinkText = Loc[nameof(Resources.Layout.MessageUnsecuredEndpointLink)], 328Title = Loc[nameof(Resources.Layout.MainLayoutAspireDashboardHelpLink)], 329PrimaryAction = Loc[nameof(Resources.Layout.MainLayoutSettingsDialogClose)], 386Title = Loc[nameof(Resources.Layout.MainLayoutLaunchAIAgents)], 387PrimaryAction = Loc[nameof(Resources.Layout.MainLayoutSettingsDialogClose)], 411Title = Loc[nameof(Resources.Layout.MainLayoutSettingsDialogTitle)], 412PrimaryAction = Loc[nameof(Resources.Layout.MainLayoutSettingsDialogClose)].Value, 436Title = Loc[nameof(Resources.Layout.MainLayoutNotificationCenterTitle)], 437PrimaryAction = Loc[nameof(Resources.Layout.MainLayoutSettingsDialogClose)].Value,
Components\Layout\MobileNavMenu.razor.cs (10)
144Loc[nameof(Resources.Layout.NavMenuResourcesTab)], 152Loc[nameof(Resources.Layout.NavMenuConsoleLogsTab)], 161StructuredLogsLoc[nameof(Resources.StructuredLogs.StructuredLogsHeader)], 169Loc[nameof(Resources.Layout.NavMenuTracesTab)], 177Loc[nameof(Resources.Layout.NavMenuMetricsTab)], 185Loc[nameof(Resources.Layout.MainLayoutAspireRepoLink)], 194Loc[nameof(Resources.Layout.MainLayoutAspireDashboardHelpLink)], 202Loc[nameof(Resources.Layout.MainLayoutLaunchAIAgents)], 209Loc[nameof(Resources.Layout.MainLayoutLaunchNotifications)], 215Loc[nameof(Resources.Layout.MainLayoutLaunchSettings)],
Components\Pages\ConsoleLogs.razor.cs (20)
213_allResource = new() { Id = null, Name = ControlsStringsLoc[nameof(ControlsStrings.LabelAll)] }; 214PageViewModel = new ConsoleLogsViewModel { SelectedResource = _allResource, Status = Loc[nameof(Dashboard.Resources.ConsoleLogs.ConsoleLogsLoadingResources)] }; 422viewModel.Status = Loc[statusName]; 618? Loc[nameof(Dashboard.Resources.ConsoleLogs.ConsoleLogsNoLogsFound)] 619: Loc[nameof(Dashboard.Resources.ConsoleLogs.ConsoleLogsNotCapturedForRun)]; 649Text = Loc[nameof(Dashboard.Resources.ConsoleLogs.ConsoleLogsViewConsoleOption)], 657Text = Loc[nameof(Dashboard.Resources.ConsoleLogs.ConsoleLogsViewTerminalOption)], 684Text = Loc[nameof(Dashboard.Resources.ConsoleLogs.TerminalToolbarDecreaseFontSize)], 692Text = Loc[nameof(Dashboard.Resources.ConsoleLogs.TerminalToolbarIncreaseFontSize)], 713Text = Loc[nameof(Dashboard.Resources.ConsoleLogs.TerminalToolbarGridSize)], 726Text = Loc[nameof(Dashboard.Resources.ConsoleLogs.DownloadLogs)], 760Text = _showTimestamp ? Loc[nameof(Dashboard.Resources.ConsoleLogs.ConsoleLogsTimestampHide)] : Loc[nameof(Dashboard.Resources.ConsoleLogs.ConsoleLogsTimestampShow)], 767Text = Loc[nameof(Dashboard.Resources.ConsoleLogs.ConsoleLogsTimestampShowUtc)], 775Text = _noWrapLogs ? Loc[nameof(Dashboard.Resources.ConsoleLogs.ConsoleLogsWrapLogs)] : Loc[nameof(Dashboard.Resources.ConsoleLogs.ConsoleLogsNoWrapLogs)], 1061_resources = GetConsoleLogResourceSelectViewModels(_resourceByName, _allResource, Loc[nameof(Dashboard.Resources.ConsoleLogs.ConsoleLogsUnknownState)], _showHiddenResources, out var optionToSelect); 1256Loc[nameof(Dashboard.Resources.ConsoleLogs.PauseInProgressText)], 1334viewModel.Status ??= Loc[nameof(Dashboard.Resources.ConsoleLogs.ConsoleLogsLogsNotYetAvailable)]; 1401? p with { Label = Loc[nameof(Dashboard.Resources.ConsoleLogs.TerminalToolbarGridSizeAuto)] }
Components\Pages\TraceDetail.razor.cs (2)
130Text = ControlStringsLoc[nameof(ControlsStrings.ExpandAllSpansText)], 138Text = ControlStringsLoc[nameof(ControlsStrings.CollapseAllSpansText)],
Model\CommonMenuItems.cs (2)
29Text = loc[nameof(ControlsStrings.ShowHiddenResources)], 38Text = loc[nameof(ControlsStrings.HideHiddenResources)],
Model\DashboardCommandExecutor.cs (11)
99var messageBarStartingTitle = string.Format(CultureInfo.InvariantCulture, loc[nameof(Dashboard.Resources.Resources.ResourceCommandStarting)], command.GetDisplayName()); 103var cancelingTitle = string.Format(CultureInfo.InvariantCulture, loc[nameof(Dashboard.Resources.Resources.ResourceCommandCanceling)], command.GetDisplayName()); 129toastOptions.QuickAction1.Label = loc[nameof(Dashboard.Resources.Resources.ResourceCommandCancel)]; 159var successTitle = string.Format(CultureInfo.InvariantCulture, loc[nameof(Dashboard.Resources.Resources.ResourceCommandSuccess)], command.GetDisplayName()); 166toastOptions.QuickAction1.Label = loc[nameof(Dashboard.Resources.Resources.ResourceCommandViewResponse)]; 185var canceledTitle = string.Format(CultureInfo.InvariantCulture, loc[nameof(Dashboard.Resources.Resources.ResourceCommandCanceled)], command.GetDisplayName()); 202var failedTitle = string.Format(CultureInfo.InvariantCulture, loc[nameof(Dashboard.Resources.Resources.ResourceCommandFailed)], command.GetDisplayName()); 206toastOptions.QuickAction1.Label = loc[nameof(Dashboard.Resources.Resources.ResourceCommandToastViewLogs)]; 216toastOptions.QuickAction2.Label = loc[nameof(Dashboard.Resources.Resources.ResourceCommandViewResponse)]; 332Text = loc[nameof(Dashboard.Resources.Resources.ResourceCommandCancel)], 341Text = loc[nameof(Dashboard.Resources.Resources.ResourceCommandViewResponse)],
Model\DashboardDialogService.cs (1)
20private string CloseButtonText => dialogsLoc[nameof(Dialogs.DialogCloseButtonText)];
Model\DefaultInstrumentUnitResolver.cs (3)
38return UntitleCase(loc[nameof(ControlsStrings.PlotlyChartCount)], titleCase); 42return UntitleCase(loc[nameof(ControlsStrings.PlotlyChartLength)], titleCase); 46return UntitleCase(loc[nameof(ControlsStrings.PlotlyChartValue)], titleCase);
Model\GenAI\GenAIItemViewModel.cs (11)
36return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryStatus)], "output", s_errorIcon); 42return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryToolCalls)], "output", s_toolCallsIcon); 46return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryOutput)], "output", s_messageIcon); 51return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryToolCalls)], "tool-calls", s_toolCallsIcon); 55return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryToolResponse)], "tool-response", s_messageIcon); 58return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryMessage)], "message", s_messageIcon); 65GenAIItemType.SystemMessage => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleSystem)], "system", s_systemIcon), 66GenAIItemType.UserMessage => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleUser)], "user", s_personIcon), 67GenAIItemType.AssistantMessage or GenAIItemType.OutputMessage => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleAssistant)], "assistant", s_personIcon), 68GenAIItemType.ToolMessage => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleTool)], "tool", s_toolIcon), 69GenAIItemType.Error => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleError)], "error", s_cloudErrorIcon),
Model\KnownPropertyLookup.cs (7)
21new(new(KnownProperties.Resource.DisplayName, loc => loc[nameof(ResourcesDetailsDisplayNameProperty)]), KnownResourcePropertySortOrder.DisplayName), 22new(new(KnownProperties.Resource.State, loc => loc[nameof(ResourcesDetailsStateProperty)]), KnownResourcePropertySortOrder.State), 23new(new(KnownProperties.Resource.HealthState, loc => loc[nameof(ResourcesDetailsHealthStateProperty)]), KnownResourcePropertySortOrder.HealthState), 24new(new(KnownProperties.Resource.StartTime, loc => loc[nameof(ResourcesDetailsStartTimeProperty)]), KnownResourcePropertySortOrder.StartTime), 25new(new(KnownProperties.Resource.StopTime, loc => loc[nameof(ResourcesDetailsStopTimeProperty)]), KnownResourcePropertySortOrder.StopTime), 26new(new(KnownProperties.Resource.ExitCode, loc => loc[nameof(ResourcesDetailsExitCodeProperty)]), KnownResourcePropertySortOrder.ExitCode), 27new(new(KnownProperties.Resource.ConnectionString, loc => loc[nameof(ResourcesDetailsConnectionStringProperty)]), KnownResourcePropertySortOrder.ConnectionString)
Model\LegacyResourcePropertyMetadata.cs (1)
44return (sortOrder, new(propertyName, loc => loc[displayNameResourceName]));
Model\Markdown\HighlightedCodeBlockRenderer.cs (2)
81var copyToClipboard = _loc[nameof(ControlsStrings.GridValueCopyToClipboard)]; 82var attributes = FluentUIExtensions.GetClipboardCopyAdditionalAttributes(rawCode, copyToClipboard, _loc[nameof(ControlsStrings.GridValueCopied)]);
Model\ResourceMenuBuilder.cs (12)
77Text = _controlLoc[nameof(ControlsStrings.ActionViewDetailsText)], 87Text = _loc[nameof(Resources.Resources.ResourceActionConsoleLogsText)], 99Text = _controlLoc[nameof(ControlsStrings.ViewJson)], 120Text = _controlLoc[nameof(ControlsStrings.ExportEnv)], 172Text = _loc[nameof(Resources.Resources.ResourceActionUrlsText)], 217Text = _loc[nameof(Resources.Resources.ResourceActionStructuredLogsText)], 218Tooltip = _loc[nameof(Resources.Resources.ResourceActionStructuredLogsText)], 230Text = _loc[nameof(Resources.Resources.ResourceActionTracesText)], 231Tooltip = _loc[nameof(Resources.Resources.ResourceActionTracesText)], 244Text = _loc[nameof(Resources.Resources.ResourceActionMetricsText)], 245Tooltip = _loc[nameof(Resources.Resources.ResourceActionMetricsText)], 292Text = _loc[nameof(Resources.Resources.ResourceActionCommandsText)],
Model\ResourceStateViewModel.cs (5)
126return loc[nameof(Columns.RunningAndUnhealthyResourceStateToolTip)]; 131return loc[nameof(Columns.StateColumnResourceContainerRuntimeUnhealthy)]; 142return loc[nameof(Columns.StateColumnResourceWaiting)]; 146return loc[nameof(Columns.StateColumnResourceNotStarted)]; 157{ State: null or "" } => loc[Columns.UnknownStateLabel],
Model\SpanMenuBuilder.cs (4)
65Text = _controlsLoc[nameof(ControlsStrings.ActionViewDetailsText)], 73Text = _controlsLoc[nameof(ControlsStrings.ActionStructuredLogsText)], 86Text = _controlsLoc[nameof(ControlsStrings.GenAIDetailsTitle)], 94Text = _controlsLoc[nameof(ControlsStrings.ViewJson)],
Model\SpanType.cs (8)
67new() { Id = null, Name = loc[nameof(ControlsStrings.LabelAll)] }, 68new() { Id = Http, Name = loc[nameof(ControlsStrings.SpanTypeHttp)] }, 69new() { Id = Database, Name = loc[nameof(ControlsStrings.SpanTypeDatabase)] }, 70new() { Id = Messaging, Name = loc[nameof(ControlsStrings.SpanTypeMessaging)] }, 71new() { Id = Rpc, Name = loc[nameof(ControlsStrings.SpanTypeRpc)] }, 72new() { Id = GenAI, Name = loc[nameof(ControlsStrings.SpanTypeGenAI)] }, 73new() { Id = Cloud, Name = loc[nameof(ControlsStrings.SpanTypeCloud)] }, 74new() { Id = Other, Name = loc[nameof(ControlsStrings.LabelOther)] },
Model\StructuredLogMenuBuilder.cs (4)
88Text = _controlsLoc[nameof(ControlsStrings.ActionViewDetailsText)], 96Text = _loc[nameof(StructuredLogs.ActionLogMessageText)], 100var header = _loc[nameof(StructuredLogs.StructuredLogsMessageColumnHeader)]; 112Text = _controlsLoc[nameof(ControlsStrings.ViewJson)],
Model\StructureLogsDetailsViewModel.cs (1)
20return loc[nameof(Dashboard.Resources.StructuredLogs.StructuredLogsEntryDetails)];
Model\TraceLinkHelpers.cs (2)
28string.Format(CultureInfo.InvariantCulture, loc[nameof(Dialogs.OpenSpanDialogMessage)], OtlpHelpers.ToShortenedId(spanId)), 55PrimaryAction = loc[nameof(Dialogs.OpenSpanDialogCancelButtonText)],
Model\TraceMenuBuilder.cs (3)
83Text = _controlsLoc[nameof(ControlsStrings.ActionViewDetailsText)], 95Text = _controlsLoc[nameof(ControlsStrings.ActionStructuredLogsText)], 106Text = _controlsLoc[nameof(ControlsStrings.ViewJson)],
ServiceClient\DashboardClient.cs (2)
1079var errorMessage = _loc[nameof(DashboardResources.ResourceCommandAppHostDisconnected)]; 1095StatusCode.Unavailable => _loc[nameof(DashboardResources.ResourceCommandAppHostDisconnected)],
src\Shared\ConsoleLogs\LogPauseViewModel.cs (2)
34loc[nameof(Aspire.Dashboard.Resources.ConsoleLogs.ConsoleLogsPauseActive)], 39loc[nameof(Aspire.Dashboard.Resources.ConsoleLogs.ConsoleLogsPauseDetails)],
Utils\FilterHelpers.cs (5)
52Text = dialogsLoc[nameof(Dialogs.FilterDialogDisableAll)], 69Text = dialogsLoc[nameof(Dialogs.FilterDialogEnableAll)], 85Text = dialogsLoc[nameof(Dialogs.SettingsRemoveAllButtonText)], 106var title = entry is not null ? filterLoc[nameof(StructuredFiltering.DialogTitleEditFilter)] : filterLoc[nameof(StructuredFiltering.DialogTitleAddFilter)];
Aspire.Dashboard.Components.Tests (23)
Controls\LogViewerTests.cs (2)
81Assert.Equal(loc[nameof(Resources.ConsoleLogs.ConsoleLogsHeader)].Value, scrollContainer.GetAttribute("aria-label")); 153Assert.Contains(loc[nameof(Resources.ConsoleLogs.ConsoleLogsNoLogsMatchFilter)].Value, message.TextContent);
Pages\ConsoleLogsTests.cs (14)
130cut.WaitForState(() => instance.PageViewModel.Status == loc[nameof(Resources.ConsoleLogs.ConsoleLogsWatchingLogs)]); 136cut.WaitForState(() => instance.PageViewModel.Status == loc[nameof(Resources.ConsoleLogs.ConsoleLogsFinishedWatchingLogs)]); 163cut.WaitForState(() => instance.PageViewModel.Status == loc[nameof(Resources.ConsoleLogs.ConsoleLogsWatchingLogs)]); 353cut.WaitForState(() => instance.PageViewModel.Status == loc[nameof(Resources.ConsoleLogs.ConsoleLogsWatchingLogs)]); 489Assert.Equal(loc[nameof(Resources.ControlsStrings.FilterPlaceholder)].Value, search.Instance.Label); 530cut.WaitForState(() => instance.PageViewModel.Status == loc[nameof(Resources.ConsoleLogs.ConsoleLogsWatchingLogs)]); 538cut.WaitForState(() => instance.PageViewModel.Status == loc[nameof(Resources.ConsoleLogs.ConsoleLogsErrorWatchingLogs)]); 579cut.WaitForState(() => instance.PageViewModel.Status == loc[nameof(Resources.ConsoleLogs.ConsoleLogsWatchingLogs)]); 589cut.WaitForState(() => instance.PageViewModel.Status == loc[nameof(Resources.ConsoleLogs.ConsoleLogsWatchingLogs)]); 626cut.WaitForState(() => instance.PageViewModel.Status == loc[nameof(Resources.ConsoleLogs.ConsoleLogsWatchingLogs)]); 732cut.WaitForState(() => instance.PageViewModel.Status == loc[nameof(Resources.ConsoleLogs.ConsoleLogsWatchingLogs)]); 1009loc[nameof(Resources.ConsoleLogs.PauseInProgressText)], 1031loc[Resources.ConsoleLogs.ConsoleLogsPauseActive], 1060loc[Resources.ConsoleLogs.ConsoleLogsPauseDetails],
Pages\MetricsTests.cs (1)
596loc[nameof(Resources.Metrics.PauseInProgressText)],
Pages\ResourcesTests.cs (2)
451Assert.Equal(loc[nameof(Dashboard.Resources.Resources.ResourcesHeader)].Value, scrollContainer.GetAttribute("aria-label")); 506Assert.Equal(loc[nameof(Dashboard.Resources.ControlsStrings.PageToolbarLandmark)].Value, filterGroup.GetAttribute("aria-label"));
Pages\StructuredLogsTests.cs (1)
227Assert.Equal(loc[nameof(Dashboard.Resources.StructuredLogs.StructuredLogsHeader)].Value, scrollContainer.GetAttribute("aria-label"));
Pages\TraceDetailsTests.cs (2)
191Assert.Equal(loc[nameof(Dashboard.Resources.TraceDetail.TraceDetailTraceStartHeader)].Value, scrollContainer.GetAttribute("aria-label")); 195Assert.Equal(controlsLoc[nameof(Dashboard.Resources.ControlsStrings.PageToolbarLandmark)].Value, filterGroup.GetAttribute("aria-label"));
Pages\TracesTests.cs (1)
49Assert.Equal(loc[nameof(Dashboard.Resources.Traces.TracesHeader)].Value, scrollContainer.GetAttribute("aria-label"));
Microsoft.AspNetCore.Components.Endpoints (5)
Forms\DataAnnotationsLocalizer.cs (5)
33var localizedTemplate = localizer[literal]; 90var explicitMatch = localizer[attribute.ErrorMessage]; 104var memberMatch = localizer[$"{typeName}_{memberName}_{attributeName}_Error"]; 111var typeMatch = localizer[$"{typeName}_{attributeName}_Error"]; 117var globalMatch = localizer[$"{attributeName}_Error"];
Microsoft.AspNetCore.Mvc.DataAnnotations (5)
DataAnnotationsMetadataProvider.cs (5)
110displayMetadata.Description = () => localizer[displayAttribute.Description]; 132displayMetadata.DisplayName = () => localizer[displayAttribute.Name]; 144displayMetadata.DisplayName = () => localizer[displayNameAttribute.DisplayName]; 260displayMetadata.Placeholder = () => localizer[displayAttribute.Prompt]; 400name = stringLocalizer[name];
Microsoft.AspNetCore.Mvc.Localization (3)
HtmlLocalizer.cs (3)
34return ToHtmlString(_localizer[name]); 45return ToHtmlString(_localizer[name], arguments); 54return _localizer[name];
Microsoft.Extensions.Localization.Abstractions (2)
StringLocalizerExtensions.cs (1)
28return stringLocalizer[name];
StringLocalizerOfT.cs (1)
36return _localizer[name];