Linguini.Shared 0.1.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Linguini.Shared --version 0.1.3
NuGet\Install-Package Linguini.Shared -Version 0.1.3
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="Linguini.Shared" Version="0.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Linguini.Shared --version 0.1.3
#r "nuget: Linguini.Shared, 0.1.3"
#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 Linguini.Shared as a Cake Addin
#addin nuget:?package=Linguini.Shared&version=0.1.3

// Install Linguini.Shared as a Cake Tool
#tool nuget:?package=Linguini.Shared&version=0.1.3

.NET

Linguini

Linguini is a C# implementation of Project Fluent, a localization system for natural-sounding translations with features like:

Asymmetric Localization

Natural-sounding translations with genders and grammatical cases only when necessary. Expressiveness is not limited by the grammar of the source language.

Progressive Enhancement

Translations are isolated; locale-specific logic doesn't leak to other locales. Authors can iteratively improve translations without impact on other languages.

Modular

Linguini is highly modular. You only can use the parts you need. Need just parsing? Get Linguni.Syntax. Need only Plural Rules data? Get PluralRules.Generator and connect to XML CLDR Plural rules data.

Performant

Linguini uses a zero-copy parser to parse the resources. While at the moment there are no benchmarks, it is used by RobustToolbox as as a localization framework.

How to get?

To install the Fluent Bundle type in your console:

dotnet add package Linguini.Bundle

You can also follow other NuGet installation instructions.

How to use?

For a 2 minute tour of Linguini add this to your C# code:

var bundler = LinguiniBuilder.Builder()
    .CultureInfo(new CultureInfo("en"))
    .AddResource("hello-user =  Hello, { $username }!")
    .SetUseIsolating(false)
    .UncheckedBuild();

var props = new Dictionary<string, IFluentType>()
{
    {"username", (FluentString)"Test"}
};

var message = bundler.GetAttrMessage("hello-user", props);
Assert.AreEqual("Hello, Test!", message);

For more details see Fluent syntax guide.

Licenses

Linguini Bundle and associated projects are licensed under Apache and MIT licenses. Consult the LICENSE-MIT and LICENSE-APACHE for more detail.

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 was computed.  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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Linguini.Shared:

Package Downloads
Linguini.Bundle

Linguini Bundle is the C# implementation of Project Fluent, a localization system developed by Mozilla It provides easy to use and extend system for describing translations.

Linguini.Syntax

Linguini Syntax provides a module for parsing input using zero-copy Fluent parser.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.8.0 361 1/23/2024
0.7.0 789 11/19/2023
0.6.0 13,945 9/13/2023
0.5.0 16,576 6/11/2023
0.4.0 9,983 2/6/2023
0.3.0 24,817 5/30/2022
0.2.1 9,224 4/25/2022
0.2.0 976 4/23/2022
0.1.4 595 4/23/2022
0.1.3 826,253 2/13/2022
0.1.2 11,679 12/22/2021
0.1.1 484 7/19/2021