5 implementations of IStringLocalizer
Aspire.Dashboard (1)
Model\Assistant\InvariantStringLocalizer.cs (1)
13
public sealed class InvariantStringLocalizer<T> :
IStringLocalizer
<T>
Aspire.Dashboard.Components.Tests (2)
Controls\ApplicationNameTests.cs (1)
74
private sealed class TestStringLocalizer<T> :
IStringLocalizer
<T>
tests\Shared\TestStringLocalizer.cs (1)
8
public sealed class TestStringLocalizer<T> :
IStringLocalizer
<T>
Aspire.Dashboard.Tests (1)
tests\Shared\TestStringLocalizer.cs (1)
8
public sealed class TestStringLocalizer<T> :
IStringLocalizer
<T>
Microsoft.Extensions.Localization.Abstractions (1)
StringLocalizerOfT.cs (1)
14
public class StringLocalizer<TResourceSource> :
IStringLocalizer
<TResourceSource>
212 references to IStringLocalizer
Aspire.Dashboard (176)
Components\Controls\AssistantChat.razor.cs (2)
34
public required
IStringLocalizer
<AIAssistant> Loc { get; init; }
37
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Controls\Chart\ChartBase.cs (1)
35
public required
IStringLocalizer
<ControlsStrings> Loc { get; init; }
Components\Controls\Chart\MetricTable.razor.cs (1)
41
public required
IStringLocalizer
<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\Chart\PlotlyChart.razor.cs (1)
34
public required
IStringLocalizer
<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\ClearSignalsButton.razor.cs (1)
21
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Controls\ExplainErrorsButton.razor.cs (1)
17
public required
IStringLocalizer
<AIAssistant> Loc { get; init; }
Components\Controls\GenAIItemTitle.razor.cs (1)
19
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Controls\PropertyValues\ResourceStateValue.razor.cs (1)
28
public required
IStringLocalizer
<Columns> Loc { get; init; }
Components\Controls\PropertyValues\SpanIdButtonValue.razor.cs (1)
30
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Controls\ResourceActions.razor.cs (2)
24
public required
IStringLocalizer
<Resources.Resources> Loc { get; init; }
27
public required
IStringLocalizer
<ControlsStrings> ControlLoc { get; init; }
Components\Controls\ResourceSelect.razor.cs (1)
38
public required
IStringLocalizer
<ControlsStrings> Loc { get; init; }
Components\Controls\SpanActions.razor.cs (1)
21
public required
IStringLocalizer
<ControlsStrings> ControlsLoc { get; init; }
Components\Controls\SpanTypeSelect.razor.cs (1)
31
public required
IStringLocalizer
<Resources.Traces> Loc { get; init; }
Components\Controls\StructuredLogActions.razor.cs (1)
20
public required
IStringLocalizer
<ControlsStrings> ControlsLoc { get; init; }
Components\Controls\TraceActions.razor.cs (1)
20
public required
IStringLocalizer
<ControlsStrings> ControlsLoc { get; init; }
Components\Controls\TreeGenAISelector.razor.cs (1)
22
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Controls\UserProfile.razor.cs (1)
21
public required
IStringLocalizer
<Login> Loc { get; init; }
Components\Dialogs\GenAIVisualizerDialog.razor.cs (2)
52
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
55
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Dialogs\InteractionsInputDialog.razor.cs (2)
28
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
31
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\ManageDataDialog.razor.cs (2)
51
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
54
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Dialogs\McpServerDialog.razor.cs (2)
27
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
30
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Interactions\InteractionsProvider.cs (2)
78
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
81
public required
IStringLocalizer
<Resources.ControlsStrings> ControlsStringsLoc { get; init; }
Components\Layout\MainLayout.razor.cs (2)
48
public required
IStringLocalizer
<Resources.Layout> Loc { get; init; }
51
public required
IStringLocalizer
<Resources.AIAssistant> AIAssistantLoc { get; init; }
Components\Layout\MobileNavMenu.razor.cs (2)
23
public required
IStringLocalizer
<Resources.Layout> Loc { get; init; }
26
public required
IStringLocalizer
<Resources.AIAssistant> AIAssistantLoc { get; init; }
Components\Pages\ConsoleLogs.razor.cs (5)
90
public required
IStringLocalizer
<Dashboard.Resources.ConsoleLogs> Loc { get; init; }
93
public required
IStringLocalizer
<Dashboard.Resources.Resources> ResourcesLoc { get; init; }
96
public required
IStringLocalizer
<Dashboard.Resources.AIAssistant> AIAssistantLoc { get; init; }
99
public required
IStringLocalizer
<Dashboard.Resources.AIPrompts> AIPromptsLoc { get; init; }
102
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Pages\Resources.razor.cs (2)
73
public required
IStringLocalizer
<Dashboard.Resources.AIAssistant> AIAssistantLoc { get; init; }
75
public required
IStringLocalizer
<Dashboard.Resources.AIPrompts> AIPromptsLoc { get; init; }
Components\Pages\TraceDetail.razor.cs (3)
85
public required
IStringLocalizer
<Dashboard.Resources.TraceDetail> Loc { get; init; }
88
public required
IStringLocalizer
<Dashboard.Resources.StructuredLogs> StructuredLogsLoc { get; init; }
91
public required
IStringLocalizer
<ControlsStrings> ControlStringsLoc { get; init; }
Components\ResourcesGridColumns\StateColumnDisplay.razor.cs (1)
21
public required
IStringLocalizer
<Columns> Loc { get; init; }
Components\ResourcesGridColumns\UrlsColumnDisplay.razor.cs (1)
26
public required
IStringLocalizer
<Columns> Loc { get; init; }
Components_Controls_Chart_ChartContainer_razor.g.cs (1)
877
IStringLocalizer
<ControlsStrings>
Components_Controls_Chart_ChartFilters_razor.g.cs (1)
981
IStringLocalizer
<ControlsStrings>
Components_Controls_ClearSignalsButton_razor.g.cs (1)
328
IStringLocalizer
<ControlsStrings>
Components_Controls_DetailView_razor.g.cs (1)
523
IStringLocalizer
<ControlsStrings>
Components_Controls_ExceptionDetails_razor.g.cs (1)
353
IStringLocalizer
<ControlsStrings>
Components_Controls_GridValue_razor.g.cs (2)
734
IStringLocalizer
<Dialogs>
752
IStringLocalizer
<ControlsStrings>
Components_Controls_LogLevelSelect_razor.g.cs (1)
645
IStringLocalizer
<Resources.StructuredLogs>
Components_Controls_LogViewer_razor.g.cs (1)
820
IStringLocalizer
<ConsoleLogs>
Components_Controls_PauseIncomingDataSwitch_razor.g.cs (1)
317
IStringLocalizer
<ControlsStrings>
Components_Controls_PauseWarning_razor.g.cs (1)
265
IStringLocalizer
<ControlsStrings>
Components_Controls_PropertyGrid_razor.g.cs (1)
680
IStringLocalizer
<ControlsStrings>
Components_Controls_ResourceDetails_razor.g.cs (2)
3834
IStringLocalizer
<Resources>
3852
IStringLocalizer
<ControlsStrings>
Components_Controls_ResourceFilters_razor.g.cs (1)
389
IStringLocalizer
<Dashboard.Resources.Resources>
Components_Controls_ResourceSelectOptionTemplate_razor.g.cs (1)
428
IStringLocalizer
<ControlsStrings>
Components_Controls_SelectResourceOptions_razor.g.cs (2)
454
IStringLocalizer
<Resources>
472
IStringLocalizer
<ControlsStrings>
Components_Controls_SignalsActionsDisplay_razor.g.cs (1)
424
IStringLocalizer
<ControlsStrings>
Components_Controls_SpanDetails_razor.g.cs (2)
2356
IStringLocalizer
<Dialogs>
2374
IStringLocalizer
<ControlsStrings>
Components_Controls_StructuredLogDetails_razor.g.cs (1)
1156
IStringLocalizer
<ControlsStrings>
Components_Controls_TreeMetricSelector_razor.g.cs (1)
545
IStringLocalizer
<Metrics>
Components_Dialogs_AssistantModalDialog_razor.g.cs (1)
776
IStringLocalizer
<AIAssistant>
Components_Dialogs_AssistantSidebarDialog_razor.g.cs (2)
615
IStringLocalizer
<Dialogs>
633
IStringLocalizer
<AIAssistant>
Components_Dialogs_ExemplarsDialog_razor.g.cs (1)
469
IStringLocalizer
<Dialogs>
Components_Dialogs_FilterDialog_razor.g.cs (2)
1272
IStringLocalizer
<StructuredFiltering>
1290
IStringLocalizer
<Dialogs>
Components_Dialogs_HelpDialog_razor.g.cs (1)
629
IStringLocalizer
<Dialogs>
Components_Dialogs_SettingsDialog_razor.g.cs (1)
771
IStringLocalizer
<Dialogs>
Components_Dialogs_TextVisualizerDialog_razor.g.cs (2)
960
IStringLocalizer
<ControlsStrings>
978
IStringLocalizer
<Dialogs>
Components_Layout_AspirePageContentLayout_razor.g.cs (2)
741
IStringLocalizer
<ControlsStrings>
759
IStringLocalizer
<Layout>
Components_Layout_DesktopNavMenu_razor.g.cs (1)
652
IStringLocalizer
<Layout>
Components_Layout_MainLayout_razor.g.cs (1)
1439
IStringLocalizer
<Dialogs>
Components_Layout_ReconnectModal_razor.g.cs (1)
300
IStringLocalizer
<Layout>
Components_Pages_Error_razor.g.cs (1)
383
IStringLocalizer
<Dashboard.Resources.Routes>
Components_Pages_Login_razor.g.cs (1)
770
IStringLocalizer
<Dashboard.Resources.Login>
Components_Pages_Metrics_razor.g.cs (2)
1676
IStringLocalizer
<ControlsStrings>
1694
IStringLocalizer
<Dashboard.Resources.Metrics>
Components_Pages_NotFound_razor.g.cs (1)
255
IStringLocalizer
<Dashboard.Resources.Routes>
Components_Pages_Resources_razor.g.cs (3)
3467
IStringLocalizer
<Columns>
3485
IStringLocalizer
<ControlsStrings>
3503
IStringLocalizer
<Dashboard.Resources.Resources>
Components_Pages_StructuredLogs_razor.g.cs (5)
2047
IStringLocalizer
<AIPrompts>
2065
IStringLocalizer
<Dialogs>
2083
IStringLocalizer
<StructuredFiltering>
2101
IStringLocalizer
<ControlsStrings>
2119
IStringLocalizer
<Dashboard.Resources.StructuredLogs>
Components_Pages_TraceDetail_razor.g.cs (2)
3244
IStringLocalizer
<AIPrompts>
3262
IStringLocalizer
<AIAssistant>
Components_Pages_Traces_razor.g.cs (5)
2195
IStringLocalizer
<Dialogs>
2213
IStringLocalizer
<AIPrompts>
2231
IStringLocalizer
<ControlsStrings>
2249
IStringLocalizer
<StructuredFiltering>
2267
IStringLocalizer
<Dashboard.Resources.Traces>
Components_ResourcesGridColumns_LogMessageColumnDisplay_razor.g.cs (2)
472
IStringLocalizer
<ControlsStrings>
490
IStringLocalizer
<StructuredLogs>
Components_ResourcesGridColumns_ResourceNameDisplay_razor.g.cs (1)
451
IStringLocalizer
<Columns>
Components_ResourcesGridColumns_SourceColumnDisplay_razor.g.cs (2)
457
IStringLocalizer
<Resources>
475
IStringLocalizer
<Columns>
Components_ResourcesGridColumns_UnreadLogErrorsBadge_razor.g.cs (1)
373
IStringLocalizer
<Columns>
Components_Routes_razor.g.cs (1)
354
IStringLocalizer
<Resources.Routes>
Model\Assistant\AIHelpers.cs (1)
38
private static readonly
IStringLocalizer
<Columns> s_columnsLoc = new InvariantStringLocalizer<Columns>();
Model\Assistant\AssistantChatDataContext.cs (2)
22
private readonly
IStringLocalizer
<AIAssistant> _loc;
36
IStringLocalizer
<AIAssistant> loc,
Model\Assistant\AssistantChatViewModel.cs (3)
109
private readonly
IStringLocalizer
<AIAssistant> _loc;
130
IStringLocalizer
<AIAssistant> loc,
131
IStringLocalizer
<ControlsStrings> controlLoc,
Model\Assistant\Prompts\IceBreakersBuilder.cs (2)
14
private readonly
IStringLocalizer
<AIPrompts> _loc;
17
public IceBreakersBuilder(
IStringLocalizer
<AIPrompts> loc)
Model\CommonMenuItems.cs (1)
16
IStringLocalizer
<ControlsStrings> loc,
Model\DashboardCommandExecutor.cs (1)
18
IStringLocalizer
<Dashboard.Resources.Resources> loc,
Model\DashboardDialogService.cs (1)
16
IStringLocalizer
<Dialogs> dialogsLoc,
Model\DefaultInstrumentUnitResolver.cs (1)
12
public sealed class DefaultInstrumentUnitResolver(
IStringLocalizer
<ControlsStrings> loc) : IInstrumentUnitResolver
Model\GenAI\GenAIItemViewModel.cs (2)
32
public BadgeDetail GetCategoryBadge(
IStringLocalizer
<Dialogs> loc)
61
public BadgeDetail GetTitleBadge(
IStringLocalizer
<Dialogs> loc)
Model\GenAI\GenAIMarkdownHelper.cs (1)
12
public static MarkdownProcessor CreateProcessor(
IStringLocalizer
<ControlsStrings> loc)
Model\Interaction\InteractionMarkdownHelper.cs (1)
13
public static MarkdownProcessor CreateProcessor(
IStringLocalizer
<ControlsStrings> loc)
Model\Markdown\AspireCodeBlockExtension.cs (2)
14
private readonly
IStringLocalizer
<ControlsStrings> _loc;
16
public AspireCodeBlockExtension(
IStringLocalizer
<ControlsStrings> loc)
Model\Markdown\HighlightedCodeBlockRenderer.cs (2)
21
private readonly
IStringLocalizer
<ControlsStrings> _loc;
23
public HighlightedCodeBlockRenderer(
IStringLocalizer
<ControlsStrings> loc)
Model\Markdown\MarkdownProcessor.cs (1)
17
public MarkdownProcessor(
IStringLocalizer
<ControlsStrings> loc, HashSet<string>? safeUrlSchemes, List<IMarkdownExtension> extensions)
Model\Otlp\TelemetryFilter.cs (2)
33
public string GetDisplayText(
IStringLocalizer
<StructuredFiltering> loc) => $"{ResolveFieldName(Field)} {ConditionToString(Condition, loc)} {Value}";
56
public static string ConditionToString(FilterCondition c,
IStringLocalizer
<StructuredFiltering>? loc) =>
Model\ResourceGraph\ResourceGraphMapper.cs (1)
16
public static ResourceDto MapResource(ResourceViewModel r, IDictionary<string, ResourceViewModel> resourcesByName,
IStringLocalizer
<Columns> columnsLoc, bool showHiddenResources, IconResolver iconResolver)
Model\ResourceMenuBuilder.cs (8)
38
private readonly
IStringLocalizer
<ControlsStrings> _controlLoc;
39
private readonly
IStringLocalizer
<Resources.Resources> _loc;
40
private readonly
IStringLocalizer
<Resources.AIAssistant> _aiAssistantLoc;
41
private readonly
IStringLocalizer
<Resources.AIPrompts> _aiPromptsLoc;
52
IStringLocalizer
<ControlsStrings> controlLoc,
53
IStringLocalizer
<Resources.Resources> loc,
54
IStringLocalizer
<Resources.AIAssistant> aiAssistantLoc,
55
IStringLocalizer
<Resources.AIPrompts> aiPromptsLoc,
Model\ResourceStateViewModel.cs (3)
23
internal static ResourceStateViewModel GetStateViewModel(ResourceViewModel resource,
IStringLocalizer
<Columns> loc)
104
internal static string GetResourceStateTooltip(ResourceViewModel resource,
IStringLocalizer
<Columns> loc)
142
private static string GetStateText(ResourceViewModel resource,
IStringLocalizer
<Columns> loc)
Model\ResourceViewModel.cs (3)
313
private readonly
IStringLocalizer
<Resources.Resources> _loc;
329
public DisplayedResourcePropertyViewModel(ResourcePropertyViewModel propertyViewModel,
IStringLocalizer
<Resources.Resources> loc, BrowserTimeProvider browserTimeProvider)
397
public sealed record KnownProperty(string Key, Func<
IStringLocalizer
<Resources.Resources>, string> GetDisplayName);
Model\SpanMenuBuilder.cs (6)
31
private readonly
IStringLocalizer
<ControlsStrings> _controlsLoc;
32
private readonly
IStringLocalizer
<AIAssistant> _aiAssistantLoc;
33
private readonly
IStringLocalizer
<AIPrompts> _aiPromptsLoc;
44
IStringLocalizer
<ControlsStrings> controlsLoc,
45
IStringLocalizer
<AIAssistant> aiAssistantLoc,
46
IStringLocalizer
<AIPrompts> aiPromptsLoc,
Model\SpanType.cs (1)
64
public static List<SelectViewModel<SpanType>> CreateKnownSpanTypes(
IStringLocalizer
<ControlsStrings> loc)
Model\StructuredLogMenuBuilder.cs (8)
28
private readonly
IStringLocalizer
<StructuredLogs> _loc;
29
private readonly
IStringLocalizer
<ControlsStrings> _controlsLoc;
30
private readonly
IStringLocalizer
<AIAssistant> _aiAssistantLoc;
31
private readonly
IStringLocalizer
<AIPrompts> _aiPromptsLoc;
39
IStringLocalizer
<StructuredLogs> loc,
40
IStringLocalizer
<ControlsStrings> controlsLoc,
41
IStringLocalizer
<AIAssistant> aiAssistantLoc,
42
IStringLocalizer
<AIPrompts> aiPromptsLoc,
Model\StructureLogsDetailsViewModel.cs (1)
13
public static string GetEventName(OtlpLogEntry logEntry,
IStringLocalizer
<Dashboard.Resources.StructuredLogs> loc)
Model\TraceLinkHelpers.cs (2)
23
IStringLocalizer
<Dialogs> loc,
40
IStringLocalizer
<Dialogs> loc,
Model\TraceMenuBuilder.cs (6)
29
private readonly
IStringLocalizer
<ControlsStrings> _controlsLoc;
30
private readonly
IStringLocalizer
<AIAssistant> _aiAssistantLoc;
31
private readonly
IStringLocalizer
<AIPrompts> _aiPromptsLoc;
42
IStringLocalizer
<ControlsStrings> controlsLoc,
43
IStringLocalizer
<AIAssistant> aiAssistantLoc,
44
IStringLocalizer
<AIPrompts> aiPromptsLoc,
src\Shared\ConsoleLogs\LogPauseViewModel.cs (1)
27
public string GetDisplayText(
IStringLocalizer
<Aspire.Dashboard.Resources.ConsoleLogs> loc, BrowserTimeProvider timeProvider)
Utils\DashboardUIHelpers.cs (1)
41
public static (ColumnResizeLabels resizeLabels, ColumnSortLabels sortLabels) CreateGridLabels(
IStringLocalizer
<ControlsStrings> loc)
Utils\FilterHelpers.cs (2)
26
IStringLocalizer
<StructuredFiltering> filterLoc,
27
IStringLocalizer
<Dialogs> dialogsLoc,
Aspire.Dashboard.Components.Tests (22)
Pages\ConsoleLogsTests.cs (20)
78
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
124
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
358
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
406
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
455
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
502
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
560
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
622
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
689
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
730
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
Pages\LoginTests.cs (2)
42
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
LocalizationSample (1)
Startup.cs (1)
17
public void Configure(IApplicationBuilder app,
IStringLocalizer
<Startup> SR)
LocalizationWebsite (7)
StartupBuilderAPIs.cs (1)
20
IStringLocalizer
<Customer> customerStringLocalizer)
StartupGetAllStrings.cs (1)
21
IStringLocalizer
<Customer> customerStringLocalizer)
StartupResourcesAtRootFolder.cs (2)
23
IStringLocalizer
<StartupResourcesAtRootFolder> startupStringLocalizer,
24
IStringLocalizer
<Customer> customerStringLocalizer)
StartupResourcesInFolder.cs (3)
23
IStringLocalizer
<StartupResourcesInFolder> startupStringLocalizer,
24
IStringLocalizer
<Customer> custromerStringLocalizer,
27
IStringLocalizer
<StartupCustomCulturePreserved> customCultureLocalizer)
Microsoft.AspNetCore.Mvc.Localization.Test (2)
MvcLocalizationMvcBuilderExtensionsTest.cs (1)
53
sd => sd.ServiceType == typeof(
IStringLocalizer
<>));
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (1)
53
sd => sd.ServiceType == typeof(
IStringLocalizer
<>));
Microsoft.Extensions.Localization (1)
LocalizationServiceCollectionExtensions.cs (1)
58
services.TryAddTransient(typeof(
IStringLocalizer
<>), typeof(StringLocalizer<>));
Microsoft.Extensions.Localization.Tests (3)
LocalizationServiceCollectionExtensionsTest.cs (2)
24
AssertContainsSingle(collection, typeof(
IStringLocalizer
<>), typeof(StringLocalizer<>));
39
AssertContainsSingle(collection, typeof(
IStringLocalizer
<>), typeof(StringLocalizer<>));
StringLocalizerOfTTest.cs (1)
127
IStringLocalizer
<BaseType> localizer = new StringLocalizer<DerivedType>(Mock.Of<IStringLocalizerFactory>());