StockSharp.Localization 5.0.233

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

StockSharp.Localization

Overview

StockSharp.Localization provides a flexible and extensible localization system for the entire StockSharp framework. The package contains the default English resources and utilities for switching languages at runtime. It works together with language specific packages located in Localization.Langs.

Features

  • JSON based resources – human readable strings.json holds the default English text for all UI elements and messages.
  • Source generator – during build Localization.Generator converts the JSON file into strongly typed properties of the LocalizedStrings class.
  • Runtime language switching – any number of language packs can be added and activated through LocalizedStrings.AddLanguage and LocalizedStrings.ActiveLanguage.
  • Missing translation tracking – the Missing event notifies when a resource key or text does not have a translation.
  • Automatic culture update – setting ActiveLanguage updates Thread.CurrentCulture and Thread.CurrentUICulture.

Installation

Add StockSharp.Localization as a NuGet package to your project. To include additional languages, reference the corresponding package such as StockSharp.Localization.ru or the meta package StockSharp.Localization.All.

The source generator is included automatically and requires no manual configuration.

Usage

Retrieve a localized string via the generated properties:

// get text for the current language
string text = LocalizedStrings.About;

// explicitly translate from one language to another
string russian = "About".Translate(from: LocalizedStrings.EnCode, to: LocalizedStrings.RuCode);

Switch the active language at runtime:

// change UI culture to Russian
LocalizedStrings.ActiveLanguage = LocalizedStrings.RuCode;

Extending Language Support

To add your own language:

  1. Create a strings.json file with translations where keys match those in the base project.
  2. Include the JSON in a new .csproj referencing common_lang.props (see examples in Localization.Langs).
  3. Reference the resulting assembly in your application. LocalizedStrings will automatically pick it up when available.

Languages can also be loaded dynamically using AddLanguage(string langCode, Stream stream) at runtime.

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 (4)

Showing the top 4 NuGet packages that depend on StockSharp.Localization:

Package Downloads
StockSharp.Messages

Trading messages (register order, cancel order, subscribe market data etc.). More info on web site https://stocksharp.com/store/

StockSharp.Logging

Logging components. More info on web site https://stocksharp.com/store/

StockSharp.Licensing.Core

Licensing core components. More info on web site https://stocksharp.com/store/

TradeSystemsCommon.Tools

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.233 0 8/20/2026
5.0.232 540 8/15/2026
5.0.231 356 8/11/2026
5.0.230 202 8/5/2026
5.0.229 380 7/30/2026
5.0.228 323 7/28/2026
5.0.227 148 7/17/2026
5.0.226 151 7/9/2026
5.0.225 159 6/21/2026
5.0.224 217 6/17/2026
5.0.223 139 6/14/2026
5.0.222 196 6/8/2026
5.0.221 151 6/3/2026
5.0.220 155 5/31/2026
5.0.219 184 5/4/2026
5.0.218 256 3/17/2026
5.0.217 230 3/6/2026
5.0.216 213 3/1/2026
5.0.215 380 2/19/2026
5.0.214 540 2/2/2026
Loading failed

Add the strings the Avalonia panels ask for
Updated Ecng.ComponentModel to 1.0.464.