KamiSama.Modules.Localization.Core 10.0.11.9

dotnet add package KamiSama.Modules.Localization.Core --version 10.0.11.9
                    
NuGet\Install-Package KamiSama.Modules.Localization.Core -Version 10.0.11.9
                    
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="KamiSama.Modules.Localization.Core" Version="10.0.11.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KamiSama.Modules.Localization.Core" Version="10.0.11.9" />
                    
Directory.Packages.props
<PackageReference Include="KamiSama.Modules.Localization.Core" />
                    
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 KamiSama.Modules.Localization.Core --version 10.0.11.9
                    
#r "nuget: KamiSama.Modules.Localization.Core, 10.0.11.9"
                    
#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 KamiSama.Modules.Localization.Core@10.0.11.9
                    
#: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=KamiSama.Modules.Localization.Core&version=10.0.11.9
                    
Install as a Cake Addin
#tool nuget:?package=KamiSama.Modules.Localization.Core&version=10.0.11.9
                    
Install as a Cake Tool

KamiSama.Modules.Localization.Core

Back to package index

Version: 10.0.0

Description

ASP.NET Core localization registration and scoped features for configured culture discovery, current-culture lookup, and culture-selection cookies. Use it to bind localization settings and compose request localization through KamiSama.Modules.

How to use

dotnet add package KamiSama.Modules.Localization.Core --version 10.0.0

Version 10.0.0 in the install command is the current workspace/root documentation version. This package version was not published at the time of review; when installing from NuGet, replace it with a version that is actually available.

Register IHttpContextAccessor before adding the localization module, bind the module section, and build through the extended builder:

using KamiSama.Modules;
using KamiSama.Modules.Localization;

var webBuilder = WebApplication.CreateBuilder(args);
webBuilder.Services.AddHttpContextAccessor();

var builder = webBuilder.Extend()
    .AddLocalizationModule(webBuilder.Configuration.GetSection("Localization"));

var app = await builder.BuildAsync(CancellationToken.None);

The effective request provider precedence is Accept-Language header, then query string, then cookie because each provider is inserted at the front. SetCulture.SetAsync validates configured metadata and appends a one-year response cookie; it does not change the current request, so the cookie participates on a later request and still loses to header or query values. The three feature methods complete synchronously and ignore cancellation. ListAvailableCultures.ListAsync exposes the mutable configured array directly, and options also accept mutable replacement arrays. GetCurrentCulture falls back only when the current UI culture is neutral and synthesizes metadata when no configured entry matches.

Namespaces

Types

Product Compatible and additional computed target framework versions.
.NET 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. 
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
10.0.11.9 97 8/24/2026
10.0.11.8 91 8/22/2026
10.0.11.7 100 8/21/2026
10.0.11.6 97 8/19/2026
10.0.11.5 92 8/18/2026
10.0.11.4 96 8/18/2026
10.0.11.3 87 8/18/2026
10.0.11.2 91 8/18/2026
10.0.11.1 96 8/15/2026
10.0.11 93 8/11/2026
10.0.10.2 95 8/4/2026