Vorn.Common.Localization 8.3.0-rc3

This is a prerelease version of Vorn.Common.Localization.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Vorn.Common.Localization --version 8.3.0-rc3
                    
NuGet\Install-Package Vorn.Common.Localization -Version 8.3.0-rc3
                    
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.3.0-rc3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vorn.Common.Localization" Version="8.3.0-rc3" />
                    
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.3.0-rc3
                    
#r "nuget: Vorn.Common.Localization, 8.3.0-rc3"
                    
#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.3.0-rc3
                    
#: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.3.0-rc3&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Vorn.Common.Localization&version=8.3.0-rc3&prerelease
                    
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 135 10/25/2025
8.6.0 134 10/25/2025
8.6.0-rc4 134 10/25/2025
8.6.0-rc3 152 10/24/2025
8.6.0-rc2 173 10/23/2025
8.6.0-rc1 169 10/20/2025
8.5.1 111 10/18/2025
8.5.0 111 10/18/2025
8.4.2 173 10/16/2025
8.4.1 170 10/16/2025
8.4.0 168 10/16/2025
8.3.5 167 10/15/2025
8.3.4 171 10/15/2025
8.3.3 175 10/15/2025
8.3.1 171 10/14/2025
8.3.0 173 10/14/2025
8.3.0-rc4 170 10/14/2025
8.3.0-rc3 173 10/13/2025
8.3.0-rc2 172 10/13/2025
8.3.0-rc1 173 10/13/2025
8.2.0-rc9 172 10/13/2025
8.2.0-rc8 172 10/13/2025
8.2.0-rc10 173 10/13/2025
1.0.0 184 10/5/2025