GKit.UI.Localization 1.0.0

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

GKit.UI.Localization

Culture-aware strings for the GKit UI components. Optional: without it the components render the neutral English defaults from GKit.UI.Abstractions.

Ships English (neutral) and Italian.

Usage

builder.Services.AddGKitUiCore();
builder.Services.AddGKitUiLocalization();
builder.Services.AddGKitMudBlazorUi();   // or AddGKitRadzenUi()

Culture comes from CultureInfo.CurrentUICulture, so standard request localization is all that is needed:

app.UseRequestLocalization(new RequestLocalizationOptions()
  .SetDefaultCulture("it-IT")
  .AddSupportedUICultures("en", "it"));

AddGKitUiLocalization() and AddGKitUiCore() may be called in either order.

Scope

This package covers GKit's own strings - grid toolbars, row actions, dialog titles, confirmations, outcome notifications, empty states. The component libraries localize their own internals separately:

Library Its own strings
MudBlazor needs the separate MudBlazor.Translations package
Radzen built in - ships de, es, fr, it, ja satellite assemblies, no extra package

Both respond to the same CurrentUICulture, so one culture setting drives everything.

Italian is opt-in

GKit's components were originally written with Italian strings hard-coded. They are now English by default, per .NET's neutral-resource convention. An app that wants the original wording must reference this package and run under it-IT.

Overriding individual strings

ResourceUiStrings derives from DefaultUiStrings and every member is virtual, so overriding a handful of strings needs no resource files:

public sealed class MyStrings : ResourceUiStrings
{
  public override string OpenRegistry => "Apri scheda cliente";
}

services.Replace(ServiceDescriptor.Scoped<IGKitUiStrings, MyStrings>());

Anything not found in the resources falls back to the neutral English value rather than throwing.

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
1.0.0 63 9/23/2026