TypealizR.Analyzers.CodeFixes
0.10.0-pre0010
Prefix Reserved
This is a prerelease version of TypealizR.Analyzers.CodeFixes.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TypealizR.Analyzers.CodeFixes --version 0.10.0-pre0010
NuGet\Install-Package TypealizR.Analyzers.CodeFixes -Version 0.10.0-pre0010
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.Analyzers.CodeFixes" Version="0.10.0-pre0010"> <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.
paket add TypealizR.Analyzers.CodeFixes --version 0.10.0-pre0010
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TypealizR.Analyzers.CodeFixes, 0.10.0-pre0010"
#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 TypealizR.Analyzers.CodeFixes as a Cake Addin #addin nuget:?package=TypealizR.Analyzers.CodeFixes&version=0.10.0-pre0010&prerelease // Install TypealizR.Analyzers.CodeFixes as a Cake Tool #tool nuget:?package=TypealizR.Analyzers.CodeFixes&version=0.10.0-pre0010&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.Workspaces (>= 4.11.0)
- TypealizR.Analyzers (>= 0.10.0-pre0010)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.10.0-pre0013 | 49 | 10/30/2024 |
0.10.0-pre0012 | 47 | 10/29/2024 |
0.10.0-pre0011 | 67 | 10/26/2024 |
0.10.0-pre0010 | 54 | 10/26/2024 |