TypealizR 0.12.0-pre0001
Prefix Reserved
This is a prerelease version of TypealizR.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TypealizR --version 0.12.0-pre0001
NuGet\Install-Package TypealizR -Version 0.12.0-pre0001
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="TypealizR" Version="0.12.0-pre0001"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TypealizR" Version="0.12.0-pre0001" />
<PackageReference Include="TypealizR"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TypealizR --version 0.12.0-pre0001
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TypealizR, 0.12.0-pre0001"
#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.
#:package TypealizR@0.12.0-pre0001
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TypealizR&version=0.12.0-pre0001&prerelease
#tool nuget:?package=TypealizR&version=0.12.0-pre0001&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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>
❌ 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.
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.CSharp (>= 4.11.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TypealizR:
Package | Downloads |
---|---|
TypealizR.Analyzers
Package Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on TypealizR:
Repository | Stars |
---|---|
LiamMorrow/LiftLog
A cross platform app for tracking your lifts in the gym
|
Version | Downloads | Last Updated |
---|---|---|
0.14.1 | 212 | 7/7/2025 |
0.14.0 | 394 | 6/20/2025 |
0.14.0-pre0004 | 292 | 6/9/2025 |
0.14.0-pre0003 | 231 | 6/8/2025 |
0.14.0-pre0002 | 227 | 6/8/2025 |
0.14.0-pre0001 | 141 | 6/7/2025 |
0.13.1-pre0002 | 262 | 5/25/2025 |
0.13.1-pre0001 | 181 | 5/25/2025 |
0.13.0-pre0001 | 112 | 5/3/2025 |
0.12.0 | 1,418 | 4/15/2025 |
0.12.0-pre0002 | 169 | 4/6/2025 |
0.12.0-pre0001 | 382 | 4/3/2025 |
0.11.1-pre0004 | 495 | 3/24/2025 |
0.11.1-pre0003 | 428 | 3/24/2025 |
0.11.1-pre0002 | 365 | 3/24/2025 |
0.11.1-pre0001 | 295 | 3/23/2025 |
0.11.0 | 1,518 | 3/23/2025 |
0.11.0-pre0001 | 297 | 3/23/2025 |
0.10.0-pre0013 | 126 | 10/30/2024 |
0.10.0-pre0012 | 129 | 10/29/2024 |
0.10.0-pre0011 | 401 | 10/26/2024 |
0.10.0-pre0010 | 108 | 10/26/2024 |
0.9.9 | 6,812 | 5/15/2024 |
0.9.8 | 150 | 5/15/2024 |
0.9.7 | 619 | 5/15/2024 |
0.9.6 | 147 | 5/14/2024 |
0.9.5 | 1,889 | 11/6/2023 |
0.9.4 | 1,321 | 9/19/2023 |
0.9.3 | 821 | 5/13/2023 |
0.9.2 | 785 | 2/5/2023 |
0.9.2-pre0008 | 914 | 2/5/2023 |
0.8.4 | 396 | 1/20/2023 |
0.8.2 | 342 | 12/31/2022 |
0.8.1 | 336 | 12/30/2022 |
0.8.0 | 305 | 12/30/2022 |
0.8.0-pre0005 | 323 | 12/30/2022 |
0.7.1 | 357 | 12/27/2022 |