ArchPillar.Extensions.Localization.DependencyInjection
1.5.0-preview9
dotnet add package ArchPillar.Extensions.Localization.DependencyInjection --version 1.5.0-preview9
NuGet\Install-Package ArchPillar.Extensions.Localization.DependencyInjection -Version 1.5.0-preview9
<PackageReference Include="ArchPillar.Extensions.Localization.DependencyInjection" Version="1.5.0-preview9" />
<PackageVersion Include="ArchPillar.Extensions.Localization.DependencyInjection" Version="1.5.0-preview9" />
<PackageReference Include="ArchPillar.Extensions.Localization.DependencyInjection" />
paket add ArchPillar.Extensions.Localization.DependencyInjection --version 1.5.0-preview9
#r "nuget: ArchPillar.Extensions.Localization.DependencyInjection, 1.5.0-preview9"
#:package ArchPillar.Extensions.Localization.DependencyInjection@1.5.0-preview9
#addin nuget:?package=ArchPillar.Extensions.Localization.DependencyInjection&version=1.5.0-preview9&prerelease
#tool nuget:?package=ArchPillar.Extensions.Localization.DependencyInjection&version=1.5.0-preview9&prerelease
ArchPillar.Extensions.Localization.DependencyInjection
Optional dependency-injection registration for ArchPillar.Extensions.Localization. The core runtime stays
dependency-free; reference this package when you want DI registration of the native localization views.
services.AddArchPillarLocalization(new LocalizerOptions { SourceCulture = "en" });
// ...
public sealed class Home(ILocalizer<Home> localizer)
{
public string Title => localizer.Translate("home.title", "Home");
}
AddArchPillarLocalization configures the ambient store from your LocalizerOptions and registers
ILocalizer, ILocalizer<T>, and a concrete Localizer over it, so an injected localizer, a non-DI caller,
and an exception text all read the same store.
Using Localized<T> string bundles? Chain AddArchPillarLocalizedBundles() after it — the generator emits
that extension to register every bundle in your assembly, so you inject them instead of constructing them:
services.AddArchPillarLocalization(new LocalizerOptions { SourceCulture = "en" })
.AddArchPillarLocalizedBundles();
Migrating from IStringLocalizer/.resx? Add the
ArchPillar.Extensions.Localization.StringLocalizer
package and call AddArchPillarStringLocalizer instead — it performs this registration and additionally adapts
the localizer to IStringLocalizer/IStringLocalizer<T>, composing over your existing .resx. Drop it once
your code no longer depends on IStringLocalizer.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- ArchPillar.Extensions.Localization (>= 1.5.0-preview9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
-
net8.0
- ArchPillar.Extensions.Localization (>= 1.5.0-preview9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
-
net9.0
- ArchPillar.Extensions.Localization (>= 1.5.0-preview9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.14)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ArchPillar.Extensions.Localization.DependencyInjection:
| Package | Downloads |
|---|---|
|
ArchPillar.Extensions.Localization.StringLocalizer
IStringLocalizer interop for ArchPillar.Extensions.Localization: a migration on-ramp that adapts the localizer to IStringLocalizer/IStringLocalizer<T> and composes over an existing ResourceManager/.resx factory, so an app adopting the library from an IStringLocalizer codebase keeps its existing translations resolving. Reference it during migration; drop it once your code no longer depends on IStringLocalizer. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.0-preview9 | 72 | 8/3/2026 |
| 1.5.0-preview8 | 69 | 7/31/2026 |
| 1.5.0-preview7 | 69 | 7/30/2026 |
| 1.5.0-preview6 | 74 | 7/29/2026 |
| 1.5.0-preview5 | 68 | 7/26/2026 |
| 1.5.0-preview4 | 72 | 7/25/2026 |
| 1.5.0-preview3 | 93 | 6/17/2026 |
| 1.5.0-preview2 | 83 | 6/17/2026 |
| 1.5.0-preview15 | 71 | 8/21/2026 |
| 1.5.0-preview14 | 79 | 8/17/2026 |
| 1.5.0-preview13 | 76 | 8/11/2026 |
| 1.5.0-preview12 | 66 | 8/10/2026 |
| 1.5.0-preview11 | 67 | 8/10/2026 |
| 1.5.0-preview10 | 73 | 8/6/2026 |
| 1.5.0-preview1 | 82 | 6/16/2026 |
| 1.4.4-preview | 81 | 6/15/2026 |
| 1.4.3-preview | 81 | 6/14/2026 |
| 1.4.2-preview | 78 | 6/14/2026 |
| 1.4.1-preview | 74 | 6/14/2026 |
| 1.4.0-preview | 89 | 6/13/2026 |