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>
213 references to IStringLocalizer
Aspire.Dashboard (175)
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)
47public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 50public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; } 271IStringLocalizer<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\McpServerDialog.razor.cs (2)
24public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; } 27public 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)
48public required IStringLocalizer<Resources.Layout> Loc { get; init; } 51public required IStringLocalizer<Resources.Dialogs> DialogsLoc { get; init; } 54public 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)
819IStringLocalizer<ControlsStrings>
Components_Controls_Chart_ChartFilters_razor.g.cs (1)
948IStringLocalizer<ControlsStrings>
Components_Controls_ClearSignalsButton_razor.g.cs (1)
298IStringLocalizer<ControlsStrings>
Components_Controls_DetailView_razor.g.cs (1)
493IStringLocalizer<ControlsStrings>
Components_Controls_ExceptionDetails_razor.g.cs (2)
321IStringLocalizer<Dashboard.Resources.Dialogs> 339IStringLocalizer<ControlsStrings>
Components_Controls_GridValue_razor.g.cs (2)
710IStringLocalizer<Dialogs> 728IStringLocalizer<ControlsStrings>
Components_Controls_LogLevelSelect_razor.g.cs (1)
621IStringLocalizer<Resources.StructuredLogs>
Components_Controls_LogViewer_razor.g.cs (1)
808IStringLocalizer<ConsoleLogs>
Components_Controls_PauseIncomingDataSwitch_razor.g.cs (1)
287IStringLocalizer<ControlsStrings>
Components_Controls_PauseWarning_razor.g.cs (1)
235IStringLocalizer<ControlsStrings>
Components_Controls_PropertyGrid_razor.g.cs (1)
650IStringLocalizer<ControlsStrings>
Components_Controls_ResourceDetails_razor.g.cs (2)
4008IStringLocalizer<Resources> 4026IStringLocalizer<ControlsStrings>
Components_Controls_ResourceFilters_razor.g.cs (1)
359IStringLocalizer<Dashboard.Resources.Resources>
Components_Controls_ResourceSelectOptionTemplate_razor.g.cs (1)
410IStringLocalizer<ControlsStrings>
Components_Controls_SelectResourceOptions_razor.g.cs (2)
424IStringLocalizer<Resources> 442IStringLocalizer<ControlsStrings>
Components_Controls_SignalsActionsDisplay_razor.g.cs (1)
394IStringLocalizer<ControlsStrings>
Components_Controls_SpanDetails_razor.g.cs (2)
2344IStringLocalizer<Dialogs> 2362IStringLocalizer<ControlsStrings>
Components_Controls_StructuredLogDetails_razor.g.cs (1)
1022IStringLocalizer<ControlsStrings>
Components_Controls_TreeMetricSelector_razor.g.cs (1)
515IStringLocalizer<Metrics>
Components_Dialogs_AssistantModalDialog_razor.g.cs (1)
746IStringLocalizer<AIAssistant>
Components_Dialogs_AssistantSidebarDialog_razor.g.cs (2)
609IStringLocalizer<Dialogs> 627IStringLocalizer<AIAssistant>
Components_Dialogs_ExemplarsDialog_razor.g.cs (1)
463IStringLocalizer<Dialogs>
Components_Dialogs_FilterDialog_razor.g.cs (2)
1254IStringLocalizer<StructuredFiltering> 1272IStringLocalizer<Dialogs>
Components_Dialogs_HelpDialog_razor.g.cs (1)
599IStringLocalizer<Dialogs>
Components_Dialogs_SettingsDialog_razor.g.cs (1)
739IStringLocalizer<Dialogs>
Components_Dialogs_TextVisualizerDialog_razor.g.cs (2)
800IStringLocalizer<ControlsStrings> 818IStringLocalizer<Dialogs>
Components_Layout_AspirePageContentLayout_razor.g.cs (3)
711IStringLocalizer<Dialogs> 729IStringLocalizer<ControlsStrings> 747IStringLocalizer<Layout>
Components_Layout_DesktopNavMenu_razor.g.cs (1)
628IStringLocalizer<Layout>
Components_Layout_ReconnectModal_razor.g.cs (1)
270IStringLocalizer<Layout>
Components_Pages_Error_razor.g.cs (1)
359IStringLocalizer<Dashboard.Resources.Routes>
Components_Pages_Login_razor.g.cs (1)
746IStringLocalizer<Dashboard.Resources.Login>
Components_Pages_Metrics_razor.g.cs (2)
1664IStringLocalizer<ControlsStrings> 1682IStringLocalizer<Dashboard.Resources.Metrics>
Components_Pages_NotFound_razor.g.cs (1)
225IStringLocalizer<Dashboard.Resources.Routes>
Components_Pages_Resources_razor.g.cs (4)
3180IStringLocalizer<Commands> 3198IStringLocalizer<Columns> 3216IStringLocalizer<ControlsStrings> 3234IStringLocalizer<Dashboard.Resources.Resources>
Components_Pages_StructuredLogs_razor.g.cs (5)
2018IStringLocalizer<AIPrompts> 2036IStringLocalizer<Dialogs> 2054IStringLocalizer<StructuredFiltering> 2072IStringLocalizer<ControlsStrings> 2090IStringLocalizer<Dashboard.Resources.StructuredLogs>
Components_Pages_TraceDetail_razor.g.cs (2)
3221IStringLocalizer<AIPrompts> 3239IStringLocalizer<AIAssistant>
Components_Pages_Traces_razor.g.cs (5)
2183IStringLocalizer<AIPrompts> 2201IStringLocalizer<Dialogs> 2219IStringLocalizer<ControlsStrings> 2237IStringLocalizer<StructuredFiltering> 2255IStringLocalizer<Dashboard.Resources.Traces>
Components_ResourcesGridColumns_LogMessageColumnDisplay_razor.g.cs (2)
456IStringLocalizer<ControlsStrings> 474IStringLocalizer<StructuredLogs>
Components_ResourcesGridColumns_ResourceNameDisplay_razor.g.cs (1)
427IStringLocalizer<Columns>
Components_ResourcesGridColumns_SourceColumnDisplay_razor.g.cs (2)
433IStringLocalizer<Resources> 451IStringLocalizer<Columns>
Components_ResourcesGridColumns_UnreadLogErrorsBadge_razor.g.cs (1)
343IStringLocalizer<Columns>
Components_Routes_razor.g.cs (1)
324IStringLocalizer<Resources.Routes>
Model\Assistant\AIHelpers.cs (2)
39private static readonly IStringLocalizer<Columns> s_columnsLoc = new InvariantStringLocalizer<Columns>(); 40private static readonly IStringLocalizer<Commands> s_commandsLoc = new InvariantStringLocalizer<Commands>();
Model\Assistant\AssistantChatDataContext.cs (2)
23private readonly IStringLocalizer<AIAssistant> _loc; 37IStringLocalizer<AIAssistant> loc,
Model\Assistant\AssistantChatViewModel.cs (3)
109private readonly IStringLocalizer<AIAssistant> _loc; 130IStringLocalizer<AIAssistant> loc, 131IStringLocalizer<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)
39dialogsLoc: Services.GetRequiredService<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>(), 107dialogsLoc: 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>());