![]() |
VOOZH | about |
dotnet add package StockSharp.Localization --version 5.0.224
NuGet\Install-Package StockSharp.Localization -Version 5.0.224
<PackageReference Include="StockSharp.Localization" Version="5.0.224" />
<PackageVersion Include="StockSharp.Localization" Version="5.0.224" />Directory.Packages.props
<PackageReference Include="StockSharp.Localization" />Project file
paket add StockSharp.Localization --version 5.0.224
#r "nuget: StockSharp.Localization, 5.0.224"
#:package StockSharp.Localization@5.0.224
#addin nuget:?package=StockSharp.Localization&version=5.0.224Install as a Cake Addin
#tool nuget:?package=StockSharp.Localization&version=5.0.224Install as a Cake Tool
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.
strings.json holds the default English text for all UI elements and messages.Localization.Generator converts the JSON file into strongly typed properties of the LocalizedStrings class.LocalizedStrings.AddLanguage and LocalizedStrings.ActiveLanguage.Missing event notifies when a resource key or text does not have a translation.ActiveLanguage updates Thread.CurrentCulture and Thread.CurrentUICulture.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.
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;
To add your own language:
strings.json file with translations where keys match those in the base project..csproj referencing common_lang.props (see examples in Localization.Langs).LocalizedStrings will automatically pick it up when available.Languages can also be loaded dynamically using AddLanguage(string langCode, Stream stream) at runtime.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
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 |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.224 | 71 | 6/17/2026 |
| 5.0.223 | 101 | 6/14/2026 |
| 5.0.222 | 164 | 6/8/2026 |
| 5.0.221 | 117 | 6/3/2026 |
| 5.0.220 | 121 | 5/31/2026 |
| 5.0.219 | 161 | 5/4/2026 |
| 5.0.218 | 229 | 3/17/2026 |
| 5.0.217 | 210 | 3/6/2026 |
| 5.0.216 | 187 | 3/1/2026 |
| 5.0.215 | 351 | 2/19/2026 |
| 5.0.214 | 518 | 2/2/2026 |
| 5.0.213 | 613 | 11/20/2025 |
| 5.0.212 | 6,864 | 9/11/2025 |
| 5.0.211 | 2,103 | 8/30/2025 |
| 5.0.210 | 2,402 | 8/10/2025 |
| 5.0.209 | 2,823 | 7/20/2025 |
| 5.0.208 | 1,101 | 7/14/2025 |
| 5.0.207 | 1,794 | 7/8/2025 |
| 5.0.206 | 932 | 7/4/2025 |
| 5.0.205 | 947 | 6/30/2025 |