5 implementations of IStringLocalizer
Aspire.Dashboard (1)
Model\Assistant\InvariantStringLocalizer.cs (1)
13public sealed class InvariantStringLocalizer<T> : IStringLocalizer<T>
Aspire.Dashboard.Components.Tests (2)
Controls\ApplicationNameTests.cs (1)
74private sealed class TestStringLocalizer<T> : IStringLocalizer<T>
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>
210 references to IStringLocalizer
Aspire.Dashboard (172)
Components\Controls\AssistantChat.razor.cs (2)
34public required IStringLocalizer<AIAssistant> Loc { get; init; } 37public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Controls\Chart\ChartBase.cs (2)
35public required IStringLocalizer<ControlsStrings> Loc { get; init; } 38public required IStringLocalizer<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\ClearSignalsButton.razor.cs (1)
21public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Controls\ExplainErrorsButton.razor.cs (1)
17public required IStringLocalizer<AIAssistant> Loc { get; init; }
Components\Controls\GenAIItemTitle.razor.cs (1)
19public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Controls\PropertyValues\ResourceStateValue.razor.cs (1)
28public required IStringLocalizer<Columns> Loc { get; init; }
Components\Controls\PropertyValues\SpanIdButtonValue.razor.cs (1)
31public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Controls\ResourceActions.razor.cs (5)
23public required IStringLocalizer<Resources.Resources> Loc { get; init; } 26public required IStringLocalizer<Resources.ControlsStrings> ControlLoc { get; init; } 29public required IStringLocalizer<Commands> CommandsLoc { get; init; } 32public required IStringLocalizer<Resources.AIAssistant> AIAssistantLoc { get; init; } 35public required IStringLocalizer<Resources.AIPrompts> AIPromptsLoc { get; init; }
Components\Controls\ResourceSelect.razor.cs (1)
38public required IStringLocalizer<ControlsStrings> Loc { get; init; }
Components\Controls\SpanActions.razor.cs (3)
28public required IStringLocalizer<Resources.ControlsStrings> ControlsLoc { get; init; } 31public required IStringLocalizer<Resources.AIAssistant> AIAssistantLoc { get; init; } 34public required IStringLocalizer<Resources.AIPrompts> AIPromptsLoc { get; init; }
Components\Controls\SpanTypeSelect.razor.cs (1)
31public required IStringLocalizer<Resources.Traces> Loc { get; init; }
Components\Controls\StructuredLogActions.razor.cs (5)
27public required IStringLocalizer<Resources.StructuredLogs> Loc { get; init; } 30public required IStringLocalizer<Resources.ControlsStrings> ControlsLoc { get; init; } 33public required IStringLocalizer<Resources.Dialogs> DialogsLoc { get; init; } 36public required IStringLocalizer<Resources.AIAssistant> AIAssistantLoc { get; init; } 39public required IStringLocalizer<Resources.AIPrompts> AIPromptsLoc { get; init; }
Components\Controls\TraceActions.razor.cs (3)
27public required IStringLocalizer<Resources.ControlsStrings> ControlsLoc { get; init; } 30public required IStringLocalizer<Resources.AIAssistant> AIAssistantLoc { get; init; } 33public required IStringLocalizer<Resources.AIPrompts> AIPromptsLoc { get; init; }
Components\Controls\TreeGenAISelector.razor.cs (1)
22public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Controls\UserProfile.razor.cs (1)
21public required IStringLocalizer<Login> Loc { get; init; }
Components\Dialogs\GenAIVisualizerDialog.razor.cs (3)
46public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 49public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; } 222IStringLocalizer<Resources.Dialogs> dialogsLoc, OtlpSpan span, long? selectedLogEntryId,
Components\Dialogs\InteractionsInputDialog.razor.cs (2)
25public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; } 28public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
91IStringLocalizer<Resources.Dialogs> dialogsLoc, string valueDescription, string value, bool containsSecret)
Components\Interactions\InteractionsProvider.cs (2)
77public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 80public required IStringLocalizer<Resources.ControlsStrings> ControlsStringsLoc { get; init; }
Components\Layout\MainLayout.razor.cs (3)
46public required IStringLocalizer<Resources.Layout> Loc { get; init; } 49public required IStringLocalizer<Resources.Dialogs> DialogsLoc { get; init; } 52public required IStringLocalizer<Resources.AIAssistant> AIAssistantLoc { get; init; }
Components\Layout\MobileNavMenu.razor.cs (2)
23public required IStringLocalizer<Resources.Layout> Loc { get; init; } 26public required IStringLocalizer<Resources.AIAssistant> AIAssistantLoc { get; init; }
Components\Pages\ConsoleLogs.razor.cs (6)
90public required IStringLocalizer<Dashboard.Resources.ConsoleLogs> Loc { get; init; } 93public required IStringLocalizer<Dashboard.Resources.Resources> ResourcesLoc { get; init; } 96public required IStringLocalizer<Dashboard.Resources.AIAssistant> AIAssistantLoc { get; init; } 99public required IStringLocalizer<Dashboard.Resources.AIPrompts> AIPromptsLoc { get; init; } 102public required IStringLocalizer<Commands> CommandsLoc { get; init; } 105public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Pages\Resources.razor.cs (2)
69public required IStringLocalizer<Dashboard.Resources.AIAssistant> AIAssistantLoc { get; init; } 71public required IStringLocalizer<Dashboard.Resources.AIPrompts> AIPromptsLoc { get; init; }
Components\Pages\TraceDetail.razor.cs (4)
85public required IStringLocalizer<Dashboard.Resources.TraceDetail> Loc { get; init; } 88public required IStringLocalizer<Dashboard.Resources.StructuredLogs> StructuredLogsLoc { get; init; } 91public required IStringLocalizer<ControlsStrings> ControlStringsLoc { get; init; } 94public required IStringLocalizer<Aspire.Dashboard.Resources.Dialogs> DialogsLoc { get; init; }
Components\ResourcesGridColumns\StateColumnDisplay.razor.cs (1)
21public required IStringLocalizer<Columns> Loc { get; init; }
Components\ResourcesGridColumns\UrlsColumnDisplay.razor.cs (1)
26public required IStringLocalizer<Columns> Loc { get; init; }
Components_Controls_Chart_ChartContainer_razor.g.cs (1)
813IStringLocalizer<ControlsStrings>
Components_Controls_Chart_ChartFilters_razor.g.cs (1)
942IStringLocalizer<ControlsStrings>
Components_Controls_ClearSignalsButton_razor.g.cs (1)
292IStringLocalizer<ControlsStrings>
Components_Controls_DetailView_razor.g.cs (1)
487IStringLocalizer<ControlsStrings>
Components_Controls_ExceptionDetails_razor.g.cs (2)
315IStringLocalizer<Dashboard.Resources.Dialogs> 333IStringLocalizer<ControlsStrings>
Components_Controls_GridValue_razor.g.cs (2)
704IStringLocalizer<Dialogs> 722IStringLocalizer<ControlsStrings>
Components_Controls_LogLevelSelect_razor.g.cs (1)
615IStringLocalizer<Resources.StructuredLogs>
Components_Controls_LogViewer_razor.g.cs (1)
802IStringLocalizer<ConsoleLogs>
Components_Controls_PauseIncomingDataSwitch_razor.g.cs (1)
281IStringLocalizer<ControlsStrings>
Components_Controls_PauseWarning_razor.g.cs (1)
229IStringLocalizer<ControlsStrings>
Components_Controls_PropertyGrid_razor.g.cs (1)
644IStringLocalizer<ControlsStrings>
Components_Controls_ResourceDetails_razor.g.cs (2)
4002IStringLocalizer<Resources> 4020IStringLocalizer<ControlsStrings>
Components_Controls_ResourceFilters_razor.g.cs (1)
353IStringLocalizer<Dashboard.Resources.Resources>
Components_Controls_ResourceSelectOptionTemplate_razor.g.cs (1)
413IStringLocalizer<ControlsStrings>
Components_Controls_SelectResourceOptions_razor.g.cs (2)
418IStringLocalizer<Resources> 436IStringLocalizer<ControlsStrings>
Components_Controls_SignalsActionsDisplay_razor.g.cs (1)
388IStringLocalizer<ControlsStrings>
Components_Controls_SpanDetails_razor.g.cs (2)
2338IStringLocalizer<Dialogs> 2356IStringLocalizer<ControlsStrings>
Components_Controls_StructuredLogDetails_razor.g.cs (1)
1016IStringLocalizer<ControlsStrings>
Components_Controls_TreeMetricSelector_razor.g.cs (1)
509IStringLocalizer<Metrics>
Components_Dialogs_AssistantModalDialog_razor.g.cs (1)
740IStringLocalizer<AIAssistant>
Components_Dialogs_AssistantSidebarDialog_razor.g.cs (2)
603IStringLocalizer<Dialogs> 621IStringLocalizer<AIAssistant>
Components_Dialogs_ExemplarsDialog_razor.g.cs (1)
457IStringLocalizer<Dialogs>
Components_Dialogs_FilterDialog_razor.g.cs (2)
1243IStringLocalizer<StructuredFiltering> 1261IStringLocalizer<Dialogs>
Components_Dialogs_HelpDialog_razor.g.cs (1)
593IStringLocalizer<Dialogs>
Components_Dialogs_SettingsDialog_razor.g.cs (1)
733IStringLocalizer<Dialogs>
Components_Dialogs_TextVisualizerDialog_razor.g.cs (2)
794IStringLocalizer<ControlsStrings> 812IStringLocalizer<Dialogs>
Components_Layout_AspirePageContentLayout_razor.g.cs (3)
705IStringLocalizer<Dialogs> 723IStringLocalizer<ControlsStrings> 741IStringLocalizer<Layout>
Components_Layout_DesktopNavMenu_razor.g.cs (1)
622IStringLocalizer<Layout>
Components_Layout_ReconnectModal_razor.g.cs (1)
264IStringLocalizer<Layout>
Components_Pages_Error_razor.g.cs (1)
353IStringLocalizer<Dashboard.Resources.Routes>
Components_Pages_Login_razor.g.cs (1)
740IStringLocalizer<Dashboard.Resources.Login>
Components_Pages_Metrics_razor.g.cs (2)
1649IStringLocalizer<ControlsStrings> 1667IStringLocalizer<Dashboard.Resources.Metrics>
Components_Pages_NotFound_razor.g.cs (1)
219IStringLocalizer<Dashboard.Resources.Routes>
Components_Pages_Resources_razor.g.cs (4)
3174IStringLocalizer<Commands> 3192IStringLocalizer<Columns> 3210IStringLocalizer<ControlsStrings> 3228IStringLocalizer<Dashboard.Resources.Resources>
Components_Pages_StructuredLogs_razor.g.cs (5)
2012IStringLocalizer<AIPrompts> 2030IStringLocalizer<Dialogs> 2048IStringLocalizer<StructuredFiltering> 2066IStringLocalizer<ControlsStrings> 2084IStringLocalizer<Dashboard.Resources.StructuredLogs>
Components_Pages_TraceDetail_razor.g.cs (2)
3215IStringLocalizer<AIPrompts> 3233IStringLocalizer<AIAssistant>
Components_Pages_Traces_razor.g.cs (5)
2177IStringLocalizer<AIPrompts> 2195IStringLocalizer<Dialogs> 2213IStringLocalizer<ControlsStrings> 2231IStringLocalizer<StructuredFiltering> 2249IStringLocalizer<Dashboard.Resources.Traces>
Components_ResourcesGridColumns_LogMessageColumnDisplay_razor.g.cs (2)
450IStringLocalizer<ControlsStrings> 468IStringLocalizer<StructuredLogs>
Components_ResourcesGridColumns_ResourceNameDisplay_razor.g.cs (1)
421IStringLocalizer<Columns>
Components_ResourcesGridColumns_SourceColumnDisplay_razor.g.cs (2)
427IStringLocalizer<Resources> 445IStringLocalizer<Columns>
Components_ResourcesGridColumns_UnreadLogErrorsBadge_razor.g.cs (1)
337IStringLocalizer<Columns>
Components_Routes_razor.g.cs (1)
318IStringLocalizer<Resources.Routes>
Model\Assistant\AIHelpers.cs (1)
32private static readonly IStringLocalizer<Columns> s_columnsLoc = new InvariantStringLocalizer<Columns>();
Model\Assistant\AssistantChatDataContext.cs (2)
28private readonly IStringLocalizer<AIAssistant> _loc; 41IStringLocalizer<AIAssistant> loc)
Model\Assistant\AssistantChatViewModel.cs (3)
107private readonly IStringLocalizer<AIAssistant> _loc; 127IStringLocalizer<AIAssistant> loc, 128IStringLocalizer<ControlsStrings> controlLoc,
Model\Assistant\Prompts\IceBreakersBuilder.cs (2)
14private readonly IStringLocalizer<AIPrompts> _loc; 17public IceBreakersBuilder(IStringLocalizer<AIPrompts> loc)
Model\CommonMenuItems.cs (1)
16IStringLocalizer<ControlsStrings> loc,
Model\DashboardCommandExecutor.cs (2)
19IStringLocalizer<Dashboard.Resources.Resources> loc, 20IStringLocalizer<Commands> commandsLoc,
Model\DefaultInstrumentUnitResolver.cs (1)
12public sealed class DefaultInstrumentUnitResolver(IStringLocalizer<ControlsStrings> loc) : IInstrumentUnitResolver
Model\GenAI\GenAIItemViewModel.cs (2)
32public BadgeDetail GetCategoryBadge(IStringLocalizer<Dialogs> loc) 57public 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)
33public string GetDisplayText(IStringLocalizer<StructuredFiltering> loc) => $"{ResolveFieldName(Field)} {ConditionToString(Condition, loc)} {Value}"; 55public static string ConditionToString(FilterCondition c, IStringLocalizer<StructuredFiltering>? loc) =>
Model\ResourceGraph\ResourceGraphMapper.cs (1)
16public static ResourceDto MapResource(ResourceViewModel r, IDictionary<string, ResourceViewModel> resourcesByName, IStringLocalizer<Columns> columnsLoc, bool showHiddenResources, IconResolver iconResolver)
Model\ResourceMenuItems.cs (9)
36IStringLocalizer<ControlsStrings> controlLoc, 37IStringLocalizer<Resources.Resources> loc, 38IStringLocalizer<Resources.AIAssistant> aiAssistantLoc, 39IStringLocalizer<Resources.AIPrompts> aiPromptsLoc, 40IStringLocalizer<Commands> commandsLoc, 96private static void AddUrlMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, IStringLocalizer<Resources.Resources> loc) 153private static void AddTelemetryMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, NavigationManager navigationManager, TelemetryRepository telemetryRepository, Func<ResourceViewModel, string> getResourceName, IStringLocalizer<Resources.Resources> loc) 205private static void AddCommandMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, IStringLocalizer<Resources.Resources> loc, IStringLocalizer<Commands> commandsLoc, EventCallback<CommandViewModel> commandSelected, Func<ResourceViewModel, CommandViewModel, bool> isCommandExecuting, IconResolver iconResolver)
Model\ResourceStateViewModel.cs (3)
23internal static ResourceStateViewModel GetStateViewModel(ResourceViewModel resource, IStringLocalizer<Columns> loc) 104internal static string GetResourceStateTooltip(ResourceViewModel resource, IStringLocalizer<Columns> loc) 142private static string GetStateText(ResourceViewModel resource, IStringLocalizer<Columns> loc)
Model\ResourceViewModel.cs (5)
263public string GetDisplayName(IStringLocalizer<Commands> loc) 274public string? GetDisplayDescription(IStringLocalizer<Commands> loc) 323private readonly IStringLocalizer<Resources.Resources> _loc; 339public DisplayedResourcePropertyViewModel(ResourcePropertyViewModel propertyViewModel, IStringLocalizer<Resources.Resources> loc, BrowserTimeProvider browserTimeProvider) 407public sealed record KnownProperty(string Key, Func<IStringLocalizer<Resources.Resources>, string> GetDisplayName);
Model\SpanType.cs (1)
64public static List<SelectViewModel<SpanType>> CreateKnownSpanTypes(IStringLocalizer<ControlsStrings> loc)
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,
src\Shared\ConsoleLogs\LogPauseViewModel.cs (1)
25public string GetDisplayText(IStringLocalizer<Aspire.Dashboard.Resources.ConsoleLogs> loc, BrowserTimeProvider timeProvider)
Utils\DashboardUIHelpers.cs (1)
39public static (ColumnResizeLabels resizeLabels, ColumnSortLabels sortLabels) CreateGridLabels(IStringLocalizer<ControlsStrings> loc)
Utils\FilterHelpers.cs (2)
26IStringLocalizer<StructuredFiltering> filterLoc, 27IStringLocalizer<Dialogs> dialogsLoc,
Aspire.Dashboard.Components.Tests (24)
Controls\GenAIVisualizerDialogTests.cs (2)
41dialogsLoc: Services.GetRequiredService<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>(), 109dialogsLoc: Services.GetRequiredService<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>(),
Pages\ConsoleLogsTests.cs (20)
86var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 132var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 318var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 366var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 415var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 462var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 520var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 582var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 649var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 690var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>();
Pages\LoginTests.cs (2)
46var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>();
LocalizationSample (1)
Startup.cs (1)
17public void Configure(IApplicationBuilder app, IStringLocalizer<Startup> SR)
LocalizationWebsite (7)
StartupBuilderAPIs.cs (1)
20IStringLocalizer<Customer> customerStringLocalizer)
StartupGetAllStrings.cs (1)
21IStringLocalizer<Customer> customerStringLocalizer)
StartupResourcesAtRootFolder.cs (2)
23IStringLocalizer<StartupResourcesAtRootFolder> startupStringLocalizer, 24IStringLocalizer<Customer> customerStringLocalizer)
StartupResourcesInFolder.cs (3)
23IStringLocalizer<StartupResourcesInFolder> startupStringLocalizer, 24IStringLocalizer<Customer> custromerStringLocalizer, 27IStringLocalizer<StartupCustomCulturePreserved> customCultureLocalizer)
Microsoft.AspNetCore.Mvc.Localization.Test (2)
MvcLocalizationMvcBuilderExtensionsTest.cs (1)
53sd => sd.ServiceType == typeof(IStringLocalizer<>));
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (1)
53sd => sd.ServiceType == typeof(IStringLocalizer<>));
Microsoft.Extensions.Localization (1)
LocalizationServiceCollectionExtensions.cs (1)
58services.TryAddTransient(typeof(IStringLocalizer<>), typeof(StringLocalizer<>));
Microsoft.Extensions.Localization.Tests (3)
LocalizationServiceCollectionExtensionsTest.cs (2)
24AssertContainsSingle(collection, typeof(IStringLocalizer<>), typeof(StringLocalizer<>)); 39AssertContainsSingle(collection, typeof(IStringLocalizer<>), typeof(StringLocalizer<>));
StringLocalizerOfTTest.cs (1)
127IStringLocalizer<BaseType> localizer = new StringLocalizer<DerivedType>(Mock.Of<IStringLocalizerFactory>());