TypealizR.CLI 0.10.0-pre0013

Prefix Reserved
This is a prerelease version of TypealizR.CLI.
dotnet tool install --global TypealizR.CLI --version 0.10.0-pre0013                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local TypealizR.CLI --version 0.10.0-pre0013                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=TypealizR.CLI&version=0.10.0-pre0013&prerelease                
nuke :add-package TypealizR.CLI --version 0.10.0-pre0013                

build Coverage Status CodeQL Publish

Quality Gate Status Lines of Code Duplicated Lines (%) Code Smells Maintainability Rating Security Rating Bugs Vulnerabilities Reliability Rating Technical Debt

Samples STS Samples LTS

NuGet Nuget NuGet (preview)

TypealizR

The typed internationalizeR

Statically typed i18n support for the .NET - ecosystem

resource-first

✔️ DO this:


@inject IStringLocalizer<HomePage> localize;
@inject AppUser user;

<h1>@localize.Title()<h1>
<h2>@localize.Welcome_back__userName(user.GivenName)<h2>

demo_typealize_translation_initial

DON´T do that:


@inject IStringLocalizer<HomePage> localize;
@inject AppUser user;

<h1>@localize["Title"]<h1>
<h2>@localize["Welcome back, {0}", user.GivenName]<h2>

See resource-first for more details

code-first

✔️ DO this:

void Demo(ILocalizables i18n)
{
    Console.WriteLine(i18n.Hello("Earth")); // Hello Earth
    Console.WriteLine(i18n.Farewell("Arthur")); // So long, 'Arthur'. And thx for all the fish!
    Console.WriteLine(i18n.WhatIsTheMeaningOfLifeTheUniverseAndEverything); // 42
    Console.WriteLine(i18n.Greet(right: "Zaphod", left: "Arthur")); // Arthur greets Zaphod, and Zaphod replies: "Hi!".
}

DON´T do that:

void Demo(IStringLocalizer i18n)
{
    Console.WriteLine(i18n["Hello", "Earth"]); // Hello Earth
    Console.WriteLine(i18n["Farewell", "Arthur"]); // So long, 'Arthur'. And thx for all the fish!
    Console.WriteLine(i18n["WhatIsTheMeaningOfLifeTheUniverseAndEverything"]; // 42
    Console.WriteLine(i18n["Greet", "Arthur", "Zaphod")); // Arthur greets Zaphod, and Zaphod replies: "Hi!".
}

See code-first for more details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.10.0-pre0013 86 10/30/2024
0.10.0-pre0012 96 10/29/2024
0.10.0-pre0011 91 10/26/2024
0.10.0-pre0010 99 10/26/2024
0.10.0-pre0007 92 10/25/2024
0.10.0-pre0006 101 10/25/2024
0.10.0-pre0004 92 10/25/2024
0.10.0-pre0003 96 10/24/2024
0.9.9 141 5/15/2024
0.9.8 125 5/15/2024
0.9.7 103 5/15/2024
0.9.7-pre0003 100 5/14/2024
0.9.7-pre0002 96 5/14/2024
0.9.7-pre0001 101 5/14/2024
0.9.6 112 5/14/2024
0.9.5 280 11/6/2023
0.9.4 207 9/19/2023
0.9.3 166 5/13/2023
0.9.2 282 2/5/2023
0.9.2-pre0008 273 2/5/2023