5 implementations of IStringLocalizer
Aspire.Dashboard.Components.Tests (2)
Controls\ApplicationNameTests.cs (1)
80private sealed class TestStringLocalizer<T> : IStringLocalizer<T>
tests\Shared\TestStringLocalizer.cs (1)
8public sealed class TestStringLocalizer<T> : IStringLocalizer<T>
Aspire.Dashboard.Playwright.Tests (1)
tests\Shared\TestStringLocalizer.cs (1)
8public sealed class TestStringLocalizer<T> : IStringLocalizer<T>
Aspire.Dashboard.Tests (1)
tests\Shared\TestStringLocalizer.cs (1)
8public sealed class TestStringLocalizer<T> : IStringLocalizer<T>
Microsoft.Extensions.Localization.Abstractions (1)
StringLocalizerOfT.cs (1)
14public class StringLocalizer<TResourceSource> : IStringLocalizer<TResourceSource>
171 references to IStringLocalizer
Aspire.Dashboard (104)
Components\Controls\Chart\ChartBase.cs (1)
39public required IStringLocalizer<ControlsStrings> Loc { get; init; }
Components\Controls\Chart\MetricTable.razor.cs (1)
42public required IStringLocalizer<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\Chart\PlotlyChart.razor.cs (1)
34public required IStringLocalizer<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\ClearSignalsButton.razor.cs (1)
26public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Controls\DashboardRunSelect.razor.cs (1)
43public required IStringLocalizer<LayoutResources> Loc { get; init; }
Components\Controls\GenAIItemTitle.razor.cs (1)
22public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Controls\Grid\AspireFluentDataGrid.cs (1)
21public required IStringLocalizer<ControlsStrings> Loc { get; init; }
Components\Controls\InteractionInputField.razor.cs (2)
28public required IStringLocalizer<DialogsResources> Loc { get; init; } 31public required IStringLocalizer<ControlsStrings> ControlsLoc { get; init; }
Components\Controls\LogViewer.razor.cs (1)
50public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Controls\PropertyValues\ResourceStateValue.razor.cs (1)
28public required IStringLocalizer<Columns> Loc { get; init; }
Components\Controls\PropertyValues\SpanIdButtonValue.razor.cs (1)
32public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Controls\ResourceActions.razor.cs (1)
20public required IStringLocalizer<ControlsStrings> ControlLoc { get; init; }
Components\Controls\ResourceSelect.razor.cs (1)
38public required IStringLocalizer<ControlsStrings> Loc { get; init; }
Components\Controls\SpanActions.razor.cs (1)
21public required IStringLocalizer<ControlsStrings> ControlsLoc { get; init; }
Components\Controls\SpanTypeSelect.razor.cs (1)
31public required IStringLocalizer<Resources.Traces> Loc { get; init; }
Components\Controls\StructuredLogActions.razor.cs (1)
20public required IStringLocalizer<ControlsStrings> ControlsLoc { get; init; }
Components\Controls\TerminalDisconnectedBanner.razor.cs (1)
63public required IStringLocalizer<Resources.TerminalStrings> Loc { get; init; }
Components\Controls\TerminalTitle.razor.cs (2)
38public required IStringLocalizer<Resources.TerminalStrings> Loc { get; init; } 41public required IStringLocalizer<Resources.ControlsStrings> ControlsLoc { get; init; }
Components\Controls\TerminalView.razor.cs (2)
119public required IStringLocalizer<Resources.TerminalStrings> Loc { get; init; } 122public required IStringLocalizer<Resources.ControlsStrings> ControlsLoc { get; init; }
Components\Controls\TerminalWindowButton.razor.cs (1)
82public required IStringLocalizer<Resources.TerminalStrings> Loc { get; init; }
Components\Controls\TextVisualizer.razor.cs (1)
30public required IStringLocalizer<ControlsStrings> Loc { get; init; }
Components\Controls\TraceActions.razor.cs (1)
20public required IStringLocalizer<ControlsStrings> ControlsLoc { get; init; }
Components\Controls\TreeGenAISelector.razor.cs (1)
22public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Controls\UserProfile.razor.cs (1)
23public required IStringLocalizer<Login> Loc { get; init; }
Components\Dialogs\AIAgentsDialog.razor.cs (2)
20public required IStringLocalizer<DialogsLoc> Loc { get; init; } 23public required IStringLocalizer<Resources.ControlsStrings> ControlsStringsLoc { get; init; }
Components\Dialogs\GenAIVisualizerDialog.razor.cs (2)
57public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 60public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Dialogs\HelpDialog.razor.cs (1)
13public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\InteractionsInputDialog.razor.cs (2)
29public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; } 32public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\InteractionsProgressDialog.razor.cs (1)
21public required IStringLocalizer<ControlsStrings> ControlsLoc { get; init; }
Components\Dialogs\ManageDataDialog.razor.cs (2)
57public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 60public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Interactions\InteractionsProvider.cs (2)
79public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 82public required IStringLocalizer<Resources.ControlsStrings> ControlsStringsLoc { get; init; }
Components\Layout\MainLayout.razor.cs (1)
68public required IStringLocalizer<Resources.Layout> Loc { get; init; }
Components\Layout\MobileNavMenu.razor.cs (1)
54public required IStringLocalizer<Resources.Layout> Loc { get; init; }
Components\Layout\NotificationsHeaderButton.razor.cs (1)
21public required IStringLocalizer<Resources.Layout> Loc { get; init; }
Components\Layout\ReconnectModal.razor.cs (1)
15public required IStringLocalizer<ReconnectResources> Loc { get; init; }
Components\Layout\TerminalDock.razor.cs (1)
86public required IStringLocalizer<Resources.TerminalStrings> Loc { get; init; }
Components\Pages\ConsoleLogs.razor.cs (3)
94public required IStringLocalizer<Dashboard.Resources.ConsoleLogs> Loc { get; init; } 97public required IStringLocalizer<Dashboard.Resources.Resources> ResourcesLoc { get; init; } 100public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Pages\Terminals.razor.cs (3)
46public required IStringLocalizer<TerminalStrings> Loc { get; init; } 49public required IStringLocalizer<ControlsStrings> ControlsLoc { get; init; } 52public required IStringLocalizer<Dashboard.Resources.ConsoleLogs> ConsoleLoc { get; init; }
Components\Pages\TerminalWindow.razor.cs (1)
83public required IStringLocalizer<Dashboard.Resources.TerminalStrings> Loc { get; init; }
Components\Pages\TraceDetail.razor.cs (3)
83public required IStringLocalizer<Dashboard.Resources.TraceDetail> Loc { get; init; } 86public required IStringLocalizer<Dashboard.Resources.StructuredLogs> StructuredLogsLoc { get; init; } 89public required IStringLocalizer<ControlsStrings> ControlStringsLoc { get; init; }
Components\ResourcesGridColumns\StateColumnDisplay.razor.cs (1)
21public required IStringLocalizer<Columns> Loc { get; init; }
Components\ResourcesGridColumns\UrlsColumnDisplay.razor.cs (1)
30public required IStringLocalizer<Columns> Loc { get; init; }
Model\CommonMenuItems.cs (1)
16IStringLocalizer<ControlsStrings> loc,
Model\DashboardCommandExecutor.cs (3)
22IStringLocalizer<Dashboard.Resources.Resources> loc, 337private static NotificationAction CreateCancelNotificationAction(IStringLocalizer<Dashboard.Resources.Resources> loc, Func<Task> onCancelAsync) 346private static NotificationAction CreateViewResponseNotificationAction(IStringLocalizer<Dashboard.Resources.Resources> loc, CommandViewModel command, ResourceCommandResponseViewModel response)
Model\DashboardDialogService.cs (1)
18IStringLocalizer<Dialogs> dialogsLoc,
Model\DefaultInstrumentUnitResolver.cs (1)
12public sealed class DefaultInstrumentUnitResolver(IStringLocalizer<ControlsStrings> loc) : IInstrumentUnitResolver
Model\GenAI\GenAIItemViewModel.cs (2)
32public BadgeDetail GetCategoryBadge(IStringLocalizer<Dialogs> loc) 61public BadgeDetail GetTitleBadge(IStringLocalizer<Dialogs> loc)
Model\GenAI\GenAIMarkdownHelper.cs (1)
12public static MarkdownProcessor CreateProcessor(IStringLocalizer<ControlsStrings> loc)
Model\Interaction\InteractionMarkdownHelper.cs (1)
13public static MarkdownProcessor CreateProcessor(IStringLocalizer<ControlsStrings> loc)
Model\Markdown\AspireCodeBlockExtension.cs (2)
14private readonly IStringLocalizer<ControlsStrings> _loc; 16public AspireCodeBlockExtension(IStringLocalizer<ControlsStrings> loc)
Model\Markdown\HighlightedCodeBlockRenderer.cs (2)
21private readonly IStringLocalizer<ControlsStrings> _loc; 23public HighlightedCodeBlockRenderer(IStringLocalizer<ControlsStrings> loc)
Model\Markdown\MarkdownProcessor.cs (1)
17public MarkdownProcessor(IStringLocalizer<ControlsStrings> loc, HashSet<string>? safeUrlSchemes, List<IMarkdownExtension> extensions)
Model\Otlp\TelemetryFilter.cs (2)
28public string GetDisplayText(IStringLocalizer<StructuredFiltering> loc) => $"{ResolveFieldName(Field)} {ConditionToString(Condition, loc)} {Value}"; 76public static string ConditionToString(FilterCondition c, IStringLocalizer<StructuredFiltering>? loc) =>
Model\ResourceGraph\ResourceGraphMapper.cs (1)
15public static ResourceDto MapResource(ResourceViewModel r, IEnumerable<ResourceViewModel> graphResources, IDictionary<string, ResourceViewModel> resourcesByName, IStringLocalizer<Columns> columnsLoc, bool showHiddenResources, IconResolver iconResolver)
Model\ResourceMenuBuilder.cs (6)
33private readonly IStringLocalizer<ControlsStrings> _controlLoc; 34private readonly IStringLocalizer<Resources.Resources> _loc; 35private readonly IStringLocalizer<TerminalStrings> _terminalLoc; 46IStringLocalizer<ControlsStrings> controlLoc, 47IStringLocalizer<Resources.Resources> loc, 48IStringLocalizer<TerminalStrings> terminalLoc,
Model\ResourceStateViewModel.cs (3)
23internal static ResourceStateViewModel GetStateViewModel(ResourceViewModel resource, IStringLocalizer<Columns> loc) 104internal static string GetResourceStateTooltip(ResourceViewModel resource, IStringLocalizer<Columns> loc, IEnumerable<ResourceViewModel>? allResources = null) 153private static string GetStateText(ResourceViewModel resource, IStringLocalizer<Columns> loc)
Model\ResourceViewModel.cs (3)
367private readonly IStringLocalizer<Resources.Resources> _loc; 384public DisplayedResourcePropertyViewModel(ResourcePropertyViewModel propertyViewModel, IStringLocalizer<Resources.Resources> loc, BrowserTimeProvider browserTimeProvider) 459public sealed record KnownProperty(string Key, Func<IStringLocalizer<Resources.Resources>, string> GetDisplayName);
Model\SpanMenuBuilder.cs (2)
26private readonly IStringLocalizer<ControlsStrings> _controlsLoc; 35IStringLocalizer<ControlsStrings> controlsLoc,
Model\SpanType.cs (1)
63public static List<SelectViewModel<SpanType>> CreateKnownSpanTypes(IStringLocalizer<ControlsStrings> loc)
Model\StructuredLogMenuBuilder.cs (4)
25private readonly IStringLocalizer<StructuredLogs> _loc; 26private readonly IStringLocalizer<ControlsStrings> _controlsLoc; 34IStringLocalizer<StructuredLogs> loc, 35IStringLocalizer<ControlsStrings> controlsLoc,
Model\StructureLogsDetailsViewModel.cs (1)
13public static string GetEventName(OtlpLogEntry logEntry, IStringLocalizer<Dashboard.Resources.StructuredLogs> loc)
Model\TraceLinkHelpers.cs (2)
23IStringLocalizer<Dialogs> loc, 40IStringLocalizer<Dialogs> loc,
Model\TraceMenuBuilder.cs (2)
25private readonly IStringLocalizer<ControlsStrings> _controlsLoc; 34IStringLocalizer<ControlsStrings> controlsLoc,
ServiceClient\DashboardClient.cs (2)
69private readonly IStringLocalizer<DashboardResources> _loc; 101IStringLocalizer<DashboardResources> loc,
src\Shared\ConsoleLogs\LogPauseViewModel.cs (1)
27public string GetDisplayText(IStringLocalizer<Aspire.Dashboard.Resources.ConsoleLogs> loc, BrowserTimeProvider timeProvider)
Utils\FilterHelpers.cs (3)
27IStringLocalizer<StructuredFiltering> filterLoc, 28IStringLocalizer<Dialogs> dialogsLoc) 104IStringLocalizer<StructuredFiltering> filterLoc)
Aspire.Dashboard.Components.Tests (66)
Controls\GenAIVisualizerDialogTests.cs (2)
70Services.GetRequiredService<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>() 191var copyButtonLabel = Services.GetRequiredService<IStringLocalizer<ControlsStrings>>()
Controls\LogViewerTests.cs (6)
133var controlsLoc = Services.GetRequiredService<IStringLocalizer<Resources.ControlsStrings>>(); 135var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 205var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>();
Controls\TerminalViewTests.cs (12)
42var loc = Services.GetRequiredService<IStringLocalizer<Resources.TerminalStrings>>(); 43var controlsLoc = Services.GetRequiredService<IStringLocalizer<Resources.ControlsStrings>>(); 80var loc = Services.GetRequiredService<IStringLocalizer<Resources.TerminalStrings>>(); 106var loc = Services.GetRequiredService<IStringLocalizer<Resources.TerminalStrings>>(); 177var loc = Services.GetRequiredService<IStringLocalizer<Resources.TerminalStrings>>(); 684var loc = Services.GetRequiredService<IStringLocalizer<Resources.TerminalStrings>>();
Dialogs\NotificationEntryComponentTests.cs (1)
23Services.AddSingleton<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>(new TestStringLocalizer<Aspire.Dashboard.Resources.Dialogs>());
Layout\MainLayoutTerminalTests.cs (3)
45var label = Services.GetRequiredService<IStringLocalizer<Resources.TerminalStrings>>()[ 114var label = Services.GetRequiredService<IStringLocalizer<Resources.TerminalStrings>>()[ 183var label = Services.GetRequiredService<IStringLocalizer<Resources.TerminalStrings>>()[
Pages\ConsoleLogsTests.cs (22)
79var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 125var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 348var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 486var loc = Services.GetRequiredService<IStringLocalizer<Resources.ControlsStrings>>(); 525var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 574var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 621var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 725var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 822var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 934var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 975var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>();
Pages\LoginTests.cs (2)
53var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>();
Pages\MetricsTests.cs (2)
824var loc = Services.GetRequiredService<IStringLocalizer<Resources.Metrics>>();
Pages\ResourcesTests.cs (4)
712var loc = Services.GetRequiredService<IStringLocalizer<Dashboard.Resources.Resources>>(); 768var loc = Services.GetRequiredService<IStringLocalizer<Dashboard.Resources.ControlsStrings>>();
Pages\StructuredLogsTests.cs (4)
226var controlsLoc = Services.GetRequiredService<IStringLocalizer<Dashboard.Resources.ControlsStrings>>(); 229var loc = Services.GetRequiredService<IStringLocalizer<Dashboard.Resources.StructuredLogs>>();
Pages\TraceDetailsTests.cs (4)
184var loc = Services.GetRequiredService<IStringLocalizer<Dashboard.Resources.TraceDetail>>(); 185var controlsLoc = Services.GetRequiredService<IStringLocalizer<Dashboard.Resources.ControlsStrings>>();
Pages\TracesTests.cs (4)
49var controlsLoc = Services.GetRequiredService<IStringLocalizer<Dashboard.Resources.ControlsStrings>>(); 52var loc = Services.GetRequiredService<IStringLocalizer<Dashboard.Resources.Traces>>();
Microsoft.Extensions.Localization (1)
LocalizationServiceCollectionExtensions.cs (1)
58services.TryAddTransient(typeof(IStringLocalizer<>), typeof(StringLocalizer<>));