Linguini.Bundle 0.1.3

.NET 5.0
There is a newer version of this package available.
See the version list below for details.
dotnet add package Linguini.Bundle --version 0.1.3
NuGet\Install-Package Linguini.Bundle -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.Bundle" Version="0.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Linguini.Bundle --version 0.1.3
#r "nuget: Linguini.Bundle, 0.1.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Linguini.Bundle as a Cake Addin
#addin nuget:?package=Linguini.Bundle&version=0.1.3

// Install Linguini.Bundle as a Cake Tool
#tool nuget:?package=Linguini.Bundle&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 Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Linguini.Bundle:

Repository Stars
OpenRA/OpenRA
Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.
space-wizards/RobustToolbox
Robust multiplayer game engine, used by Space Station 14
Version Downloads Last updated
0.3.2 3,885 11/19/2022
0.3.1 7,801 9/19/2022
0.3.0 370 5/30/2022
0.2.2 8,039 4/25/2022
0.2.1 233 4/25/2022
0.2.0 283 4/23/2022
0.1.4 231 4/23/2022
0.1.3 232,909 2/13/2022
0.1.2 11,385 12/22/2021
0.1.1 229 7/19/2021