Vorn.Common.Localization 8.6.1

dotnet add package Vorn.Common.Localization --version 8.6.1
                    
NuGet\Install-Package Vorn.Common.Localization -Version 8.6.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vorn.Common.Localization" Version="8.6.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vorn.Common.Localization" Version="8.6.1" />
                    
Directory.Packages.props
<PackageReference Include="Vorn.Common.Localization" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Vorn.Common.Localization --version 8.6.1
                    
#r "nuget: Vorn.Common.Localization, 8.6.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Vorn.Common.Localization@8.6.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Vorn.Common.Localization&version=8.6.1
                    
Install as a Cake Addin
#tool nuget:?package=Vorn.Common.Localization&version=8.6.1
                    
Install as a Cake Tool

Vorn.Common.Localization

This library provides composite localization services for .NET applications.

Features

Composite String Localizer

Combines multiple IStringLocalizer instances with configurable priority order. It searches through the localizers in the specified order and returns the first non-resource-not-found result.

Usage

  1. Configure the composite localizer in your Program.cs or Startup.cs:
using Vorn.Common.Localization;

builder.Services.ConfigureCompositeStringLocalizer(
    typeof(SharedResource),
    typeof(FeatureResource)
);
  1. Inject IStringLocalizer in your components or services:
private readonly IStringLocalizer _localizer;

public MyComponent(IStringLocalizer localizer)
{
    _localizer = localizer;
}

private string GetLocalizedText() => _localizer["HelloWorld"];

The localizer will first try to find the key in SharedResource, then in FeatureResource, and so on.

Configuration

Use ConfigureCompositeStringLocalizer to specify the resource types in priority order. The first type in the list has the highest priority.

Product 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 was computed.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.6.1 145 10/25/2025
8.6.0 140 10/25/2025
8.6.0-rc4 143 10/25/2025
8.6.0-rc3 159 10/24/2025
8.6.0-rc2 181 10/23/2025
8.6.0-rc1 178 10/20/2025
8.5.1 117 10/18/2025
8.5.0 119 10/18/2025
8.4.2 184 10/16/2025
8.4.1 179 10/16/2025
8.4.0 172 10/16/2025
8.3.5 178 10/15/2025
8.3.4 182 10/15/2025
8.3.3 185 10/15/2025
8.3.1 178 10/14/2025
8.3.0 181 10/14/2025
8.3.0-rc4 178 10/14/2025
8.3.0-rc3 178 10/13/2025
8.3.0-rc2 179 10/13/2025
8.3.0-rc1 179 10/13/2025
8.2.0-rc9 182 10/13/2025
8.2.0-rc8 181 10/13/2025
8.2.0-rc10 181 10/13/2025
1.0.0 193 10/5/2025