Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/goenning/i18n-extension

better internationalization usage with dotnet resource files
https://github.com/goenning/i18n-extension

Last synced: 13 days ago
JSON representation

better internationalization usage with dotnet resource files

Awesome Lists containing this project

README

        

i18n-extension
===========

## Step 1

Create your resource files (.resx) as usual.

## Step 2

Tell us which resource files you want to use.

I18nConfig.SetResources(
typeof(MyResources),
typeof(OthersResources),
);

## Step 3

Call extension method `.i18n()` on your strings or enum. The content will be translated according to the resource files. See tests for examples on usage and strategy for failed lookups.

"Click here".i18n();
Gender.Male.i18n();
"FIRST_NAME".i18n();

## NuGet

This is not a NuGet package, you will need to download and compile or copy the classes from this project to yours.