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>
217 references to IStringLocalizer
Aspire.Dashboard (177)
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)
52public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 55public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; } 336IStringLocalizer<Resources.Dialogs> dialogsLoc, OtlpSpan span, long? selectedLogEntryId,
Components\Dialogs\InteractionsInputDialog.razor.cs (2)
28public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; } 31public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\ManageDataDialog.razor.cs (2)
47public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 50public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Dialogs\McpServerDialog.razor.cs (2)
27public required IStringLocalizer<ControlsStrings> ControlsStringsLoc { get; init; } 30public 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)
73public required IStringLocalizer<Dashboard.Resources.AIAssistant> AIAssistantLoc { get; init; } 75public 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)
843IStringLocalizer<ControlsStrings>
Components_Controls_Chart_ChartFilters_razor.g.cs (1)
972IStringLocalizer<ControlsStrings>
Components_Controls_ClearSignalsButton_razor.g.cs (1)
328IStringLocalizer<ControlsStrings>
Components_Controls_DetailView_razor.g.cs (1)
523IStringLocalizer<ControlsStrings>
Components_Controls_ExceptionDetails_razor.g.cs (2)
351IStringLocalizer<Dashboard.Resources.Dialogs> 369IStringLocalizer<ControlsStrings>
Components_Controls_GridValue_razor.g.cs (2)
734IStringLocalizer<Dialogs> 752IStringLocalizer<ControlsStrings>
Components_Controls_LogLevelSelect_razor.g.cs (1)
645IStringLocalizer<Resources.StructuredLogs>
Components_Controls_LogViewer_razor.g.cs (1)
820IStringLocalizer<ConsoleLogs>
Components_Controls_PauseIncomingDataSwitch_razor.g.cs (1)
317IStringLocalizer<ControlsStrings>
Components_Controls_PauseWarning_razor.g.cs (1)
265IStringLocalizer<ControlsStrings>
Components_Controls_PropertyGrid_razor.g.cs (1)
680IStringLocalizer<ControlsStrings>
Components_Controls_ResourceDetails_razor.g.cs (2)
3825IStringLocalizer<Resources> 3843IStringLocalizer<ControlsStrings>
Components_Controls_ResourceFilters_razor.g.cs (1)
389IStringLocalizer<Dashboard.Resources.Resources>
Components_Controls_ResourceSelectOptionTemplate_razor.g.cs (1)
428IStringLocalizer<ControlsStrings>
Components_Controls_SelectResourceOptions_razor.g.cs (2)
454IStringLocalizer<Resources> 472IStringLocalizer<ControlsStrings>
Components_Controls_SignalsActionsDisplay_razor.g.cs (1)
424IStringLocalizer<ControlsStrings>
Components_Controls_SpanDetails_razor.g.cs (2)
2356IStringLocalizer<Dialogs> 2374IStringLocalizer<ControlsStrings>
Components_Controls_StructuredLogDetails_razor.g.cs (1)
1046IStringLocalizer<ControlsStrings>
Components_Controls_TreeMetricSelector_razor.g.cs (1)
545IStringLocalizer<Metrics>
Components_Dialogs_AssistantModalDialog_razor.g.cs (1)
776IStringLocalizer<AIAssistant>
Components_Dialogs_AssistantSidebarDialog_razor.g.cs (2)
615IStringLocalizer<Dialogs> 633IStringLocalizer<AIAssistant>
Components_Dialogs_ExemplarsDialog_razor.g.cs (1)
469IStringLocalizer<Dialogs>
Components_Dialogs_FilterDialog_razor.g.cs (2)
1272IStringLocalizer<StructuredFiltering> 1290IStringLocalizer<Dialogs>
Components_Dialogs_HelpDialog_razor.g.cs (1)
629IStringLocalizer<Dialogs>
Components_Dialogs_SettingsDialog_razor.g.cs (1)
759IStringLocalizer<Dialogs>
Components_Dialogs_TextVisualizerDialog_razor.g.cs (2)
843IStringLocalizer<ControlsStrings> 861IStringLocalizer<Dialogs>
Components_Layout_AspirePageContentLayout_razor.g.cs (3)
741IStringLocalizer<Dialogs> 759IStringLocalizer<ControlsStrings> 777IStringLocalizer<Layout>
Components_Layout_DesktopNavMenu_razor.g.cs (1)
652IStringLocalizer<Layout>
Components_Layout_ReconnectModal_razor.g.cs (1)
300IStringLocalizer<Layout>
Components_Pages_Error_razor.g.cs (1)
383IStringLocalizer<Dashboard.Resources.Routes>
Components_Pages_Login_razor.g.cs (1)
770IStringLocalizer<Dashboard.Resources.Login>
Components_Pages_Metrics_razor.g.cs (2)
1676IStringLocalizer<ControlsStrings> 1694IStringLocalizer<Dashboard.Resources.Metrics>
Components_Pages_NotFound_razor.g.cs (1)
255IStringLocalizer<Dashboard.Resources.Routes>
Components_Pages_Resources_razor.g.cs (4)
3451IStringLocalizer<Commands> 3469IStringLocalizer<Columns> 3487IStringLocalizer<ControlsStrings> 3505IStringLocalizer<Dashboard.Resources.Resources>
Components_Pages_StructuredLogs_razor.g.cs (5)
2047IStringLocalizer<AIPrompts> 2065IStringLocalizer<Dialogs> 2083IStringLocalizer<StructuredFiltering> 2101IStringLocalizer<ControlsStrings> 2119IStringLocalizer<Dashboard.Resources.StructuredLogs>
Components_Pages_TraceDetail_razor.g.cs (2)
3227IStringLocalizer<AIPrompts> 3245IStringLocalizer<AIAssistant>
Components_Pages_Traces_razor.g.cs (5)
2195IStringLocalizer<AIPrompts> 2213IStringLocalizer<Dialogs> 2231IStringLocalizer<ControlsStrings> 2249IStringLocalizer<StructuredFiltering> 2267IStringLocalizer<Dashboard.Resources.Traces>
Components_ResourcesGridColumns_LogMessageColumnDisplay_razor.g.cs (2)
472IStringLocalizer<ControlsStrings> 490IStringLocalizer<StructuredLogs>
Components_ResourcesGridColumns_ResourceNameDisplay_razor.g.cs (1)
451IStringLocalizer<Columns>
Components_ResourcesGridColumns_SourceColumnDisplay_razor.g.cs (2)
457IStringLocalizer<Resources> 475IStringLocalizer<Columns>
Components_ResourcesGridColumns_UnreadLogErrorsBadge_razor.g.cs (1)
373IStringLocalizer<Columns>
Components_Routes_razor.g.cs (1)
354IStringLocalizer<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) 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)
33public string GetDisplayText(IStringLocalizer<StructuredFiltering> loc) => $"{ResolveFieldName(Field)} {ConditionToString(Condition, loc)} {Value}"; 56public 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)
271public string GetDisplayName(IStringLocalizer<Commands> loc) 282public string? GetDisplayDescription(IStringLocalizer<Commands> loc) 331private readonly IStringLocalizer<Resources.Resources> _loc; 347public DisplayedResourcePropertyViewModel(ResourcePropertyViewModel propertyViewModel, IStringLocalizer<Resources.Resources> loc, BrowserTimeProvider browserTimeProvider) 415public 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 (26)
Controls\GenAIVisualizerDialogTests.cs (4)
41dialogsLoc: Services.GetRequiredService<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>(), 109dialogsLoc: Services.GetRequiredService<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>(), 169dialogsLoc: Services.GetRequiredService<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>(), 270dialogsLoc: Services.GetRequiredService<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>(),
Pages\ConsoleLogsTests.cs (20)
79var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 125var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 311var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 360var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 409var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 456var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 514var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 576var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 643var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>(); 684var loc = Services.GetRequiredService<IStringLocalizer<Resources.ConsoleLogs>>();
Pages\LoginTests.cs (2)
42var 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>());