Spoleto.Core.Common.LocalizableString 3.6.8.1846

dotnet add package Spoleto.Core.Common.LocalizableString --version 3.6.8.1846
NuGet\Install-Package Spoleto.Core.Common.LocalizableString -Version 3.6.8.1846
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="Spoleto.Core.Common.LocalizableString" Version="3.6.8.1846" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spoleto.Core.Common.LocalizableString --version 3.6.8.1846
#r "nuget: Spoleto.Core.Common.LocalizableString, 3.6.8.1846"
#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.
// Install Spoleto.Core.Common.LocalizableString as a Cake Addin
#addin nuget:?package=Spoleto.Core.Common.LocalizableString&version=3.6.8.1846

// Install Spoleto.Core.Common.LocalizableString as a Cake Tool
#tool nuget:?package=Spoleto.Core.Common.LocalizableString&version=3.6.8.1846

Core.Common.LocalizableString

Functionality to store multilingual values in String.
The main object is LocalizableString.
This object has corresponding JSON converters based on System.Text.Json.
Also there are available extensions to convert String, Dictionary to LocalizableString.

This library helps make your application multilingual!

The example:

var rawString = "\u0010ru\u0010текст на русском\u0011\u0010en\u0010text in english\u0011\u0010il\u0010טקסט בעברית\u0011";
var multiString = new LocalizableString(rawString);
// OR
var multiString = (LocalizableString) rawString;

var ruString = multiString.GetCurrentString("ru"); // gets Russian translation
var enString = multiString.GetCurrentString("en"); // gets English translation

More examples

You can find more examples in the unit tests:

https://github.com/spoleto-software/Core.Common.LocalizableString/tree/main/src/Core.Common.LocalizableString.Tests

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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. 
.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 was computed. 
.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 (1)

Showing the top 1 NuGet packages that depend on Spoleto.Core.Common.LocalizableString:

Package Downloads
Spoleto.CIS.Service.Client

The client for SPOLETO RESTful service

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.6.8.1846 1,490 6/8/2023
3.6.8.1829 124 6/8/2023
2.11.22.1201 2,388 11/22/2022
2.11.15.1106 1,282 11/15/2022
2.11.15.927 853 11/15/2022
2.11.14.1608 304 11/14/2022
2.10.6.1727 368 10/6/2022
2.10.6.1723 372 10/6/2022
2.10.6.1719 370 10/6/2022
2.10.5.2247 350 10/5/2022
2.10.5.1335 350 10/5/2022
2.10.4.1413 428 10/4/2022
2.9.15.2215 5,328 9/15/2022
2.7.21.948 487 7/21/2022
2.7.19.1122 5,291 7/19/2022
2.7.14.821 4,149 7/14/2022
2.7.14 397 7/14/2022
2.7.13 415 7/13/2022