Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

TypealizR

> 编程语言
Open source

Statically typed i18n support for the .NET - ecosystem

99 stars0 likes0 views
WebsiteGitHub

About

Statically typed i18n support for the .NET - ecosystem

)

TypealizR

The typed internationalizeR

Statically typed i18n support for the .NET - ecosystem

resource-first

✔️ DO this:

csharp

@inject IStringLocalizer localize;
@inject AppUser user;

@localize.Title()

@localize.Welcome_back__userName(user.GivenName)

❌ DON´T do that:

csharp

@inject IStringLocalizer localize;
@inject AppUser user;

@localize["Title"]

@localize["Welcome back, {0}", user.GivenName]

See resource-first for more details

code-first

✔️ DO this:

csharp
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:

csharp
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.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#csharpdotneti18nresx

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言