DynamicLocalization.Core 2.1.2

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

DynamicLocalization.Core

Core library for DynamicLocalization - platform-independent localization services.

This package contains:

  • ICultureService - Core culture service interface
  • CultureService - Culture service implementation
  • ILocalizationProvider - Localization provider interface
  • JsonLocalizationProvider - JSON file provider
  • ResxLocalizationProvider - RESX resource provider
  • LocalizedString - Observable localized string wrapper

Installation

dotnet add package DynamicLocalization.Core

Manual Instantiation (No DI)

using DynamicLocalization.Core;
using DynamicLocalization.Core.Providers;

var cultureService = new CultureService();

var jsonProvider = new JsonLocalizationProvider();
jsonProvider.Initialize(new JsonLocalizationProviderOptions
{
    BasePath = "Localization",
    UseEmbeddedResources = true,
    Assembly = typeof(App).Assembly
});

cultureService.RegisterProvider(jsonProvider);
LocalizationService.Initialize(cultureService);

// Get localized string
string greeting = cultureService["Greeting"];

// Switch culture
cultureService.SetCulture("zh-CN");

With DI (Microsoft.Extensions.DependencyInjection)

For DI integration, install the separate package:

dotnet add package DynamicLocalization.DependencyInjection

See DynamicLocalization.DependencyInjection for usage.

Supported Platforms

  • .NET Standard 2.0+
  • .NET 6.0+
  • .NET 7.0+
  • .NET 8.0+
  • .NET 9.0+
  • Unity 2021.3+ (via .NET Standard 2.1)

GitHub

https://github.com/StarryXYJ/Avalonia.DynamicLocalization

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on DynamicLocalization.Core:

Package Downloads
AutoSettingUI.Core

Core library for AutoSettingUI - A declarative settings UI framework for .NET

DynamicLocalization.Avalonia

A lightweight, extensible, and pluggable Avalonia internationalization library with hot-reload support and multiple data sources.

DynamicLocalization.WPF

A lightweight, extensible, and pluggable WPF internationalization library with hot-reload support and multiple data sources.

GalNet.Avalonia

GalNet Avalonia player controls, rendering, palettes and host composition.

DynamicLocalization.DependencyInjection

Microsoft.Extensions.DependencyInjection integration for DynamicLocalization. Provides AddJsonLocalization, AddCultureService, and InitializeLocalization extension methods.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.2 313 10/10/2026
2.1.0 214 7/4/2026
2.0.2 170 4/3/2026
2.0.1 162 4/3/2026
2.0.0 486 3/28/2026
1.1.0 160 3/27/2026