3 implementations of IStringLocalizer
Aspire.Dashboard.Components.Tests (1)
Controls\ApplicationNameTests.cs (1)
88
private sealed class TestStringLocalizer<T> :
IStringLocalizer
<T>
Aspire.Dashboard.Tests (1)
Model\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>
82 references to IStringLocalizer
Aspire.Dashboard (46)
Components\Controls\Chart\ChartBase.cs (2)
35
public required
IStringLocalizer
<ControlsStrings> Loc { get; init; }
38
public required
IStringLocalizer
<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\ClearSignalsButton.razor.cs (1)
22
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Controls\ResourceActions.razor.cs (3)
22
public required
IStringLocalizer
<Resources.Resources> Loc { get; init; }
25
public required
IStringLocalizer
<Resources.ControlsStrings> ControlLoc { get; init; }
28
public required
IStringLocalizer
<Commands> CommandsLoc { get; init; }
Components\Controls\SpanActions.razor.cs (1)
22
public required
IStringLocalizer
<Resources.ControlsStrings> ControlsLoc { get; init; }
Components\Controls\StructuredLogActions.razor.cs (3)
22
public required
IStringLocalizer
<Resources.StructuredLogs> Loc { get; init; }
25
public required
IStringLocalizer
<Resources.ControlsStrings> ControlsLoc { get; init; }
28
public required
IStringLocalizer
<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\TraceActions.razor.cs (1)
22
public required
IStringLocalizer
<Resources.ControlsStrings> ControlsLoc { get; init; }
Components\Controls\UserProfile.razor.cs (1)
21
public required
IStringLocalizer
<Login> Loc { get; init; }
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
282
IStringLocalizer
<Resources.Dialogs> dialogsLoc, string valueDescription, string value, bool containsSecret)
Components\Interactions\InteractionsProvider.cs (1)
48
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Layout\MainLayout.razor.cs (2)
45
public required
IStringLocalizer
<Resources.Layout> Loc { get; init; }
48
public required
IStringLocalizer
<Resources.Dialogs> DialogsLoc { get; init; }
Components\Layout\MobileNavMenu.razor.cs (1)
23
public required
IStringLocalizer
<Resources.Layout> Loc { get; init; }
Components\Pages\ConsoleLogs.razor.cs (4)
63
public required
IStringLocalizer
<Dashboard.Resources.ConsoleLogs> Loc { get; init; }
66
public required
IStringLocalizer
<Dashboard.Resources.Resources> ResourcesLoc { get; init; }
69
public required
IStringLocalizer
<Commands> CommandsLoc { get; init; }
72
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { 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; }
Model\CommonMenuItems.cs (1)
16
IStringLocalizer
<ControlsStrings> loc,
Model\DashboardCommandExecutor.cs (2)
19
IStringLocalizer
<Dashboard.Resources.Resources> loc,
20
IStringLocalizer
<Commands> commandsLoc,
Model\DefaultInstrumentUnitResolver.cs (1)
12
public sealed class DefaultInstrumentUnitResolver(
IStringLocalizer
<ControlsStrings> loc) : IInstrumentUnitResolver
Model\MetricsHelpers.cs (1)
23
IStringLocalizer
<Dialogs> loc,
Model\Otlp\TelemetryFilter.cs (2)
22
public string GetDisplayText(
IStringLocalizer
<StructuredFiltering> loc) => $"{ResolveFieldName(Field)} {ConditionToString(Condition, loc)} {Value}";
44
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)
Model\ResourceMenuItems.cs (3)
29
IStringLocalizer
<ControlsStrings> controlLoc,
30
IStringLocalizer
<Resources.Resources> loc,
31
IStringLocalizer
<Commands> commandsLoc,
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 (5)
211
public string GetDisplayName(
IStringLocalizer
<Commands> loc)
222
public string GetDisplayDescription(
IStringLocalizer
<Commands> loc)
271
private readonly
IStringLocalizer
<Resources.Resources> _loc;
287
public DisplayedResourcePropertyViewModel(ResourcePropertyViewModel propertyViewModel,
IStringLocalizer
<Resources.Resources> loc, BrowserTimeProvider browserTimeProvider)
355
public sealed record KnownProperty(string Key, Func<
IStringLocalizer
<Resources.Resources>, string> GetDisplayName);
src\Shared\ConsoleLogs\LogPauseViewModel.cs (1)
24
public string GetDisplayText(
IStringLocalizer
<Aspire.Dashboard.Resources.ConsoleLogs> loc, BrowserTimeProvider timeProvider)
Utils\DashboardUIHelpers.cs (1)
32
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)
84
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
130
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
209
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
257
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
306
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
353
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
411
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
473
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
540
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
581
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
Pages\LoginTests.cs (2)
45
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>());