Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/goenning/i18n-extension
- Owner: goenning
- License: mit
- Created: 2015-01-19T22:26:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-31T16:43:15.000Z (almost 10 years ago)
- Last Synced: 2024-11-02T19:41:37.555Z (2 months ago)
- Language: C#
- Size: 152 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.