Skip to content

weinre/ExpressLocalizationSample

 
 

Repository files navigation

ExpressLocalization Sample - Asp.Net Core 2.2

Fully localized project, based on the basic Asp.Net Core 2.2 template from Visual Studio, localized using LazZiya.ExpressLocalization.

DotNetCore version

This project is based on dotnetcore2.2, a newer project based on dotnetcore3.0 is available here: ExpressLocalization Sample for DotNetCore3.0

Features :

  • Custom (route value) RequestCultureProvider
  • Custom IHtmlStringLocalizer
  • Custom LocalizeTagHelper
  • Validating localized input fields e.g. (12,34 and 12.34)
  • Localization of:
    • Razor Views (All views locailzed with LocalizeTagHelper)
    • DataAnnotations
    • Model binding and model validation error messages
    • IdentityErrorDescriber messages
    • Client side validation error messages

Available Cultures

some cultures needs fixing/adding few translations

  • Arabic
  • Chinese
  • Czech
  • Dutch
  • English
  • French
  • German
  • Hindi
  • Hungarian
  • Italian
  • Japanese
  • Korean
  • Persian
  • Polish
  • Portuguese
  • Portuguese Brazil (by @ismaelgasparin)
  • Russian
  • Spanish
  • Swedish
  • Turkish
  • Vietnamese

Project site:

http://ziyad.info/en/articles/33-Express_Localization

Step by step tutorial to build similar project

http://ziyad.info/en/articles/36-Develop_Multi_Cultural_Web_Application_Using_ExpressLocalization

TagHelpers

Some parts of this project is using LazZiya.TagHelpers like:

  • LanguageNav dropdown
  • Client side validation scripts
  • AlertTagHelper for bootstrap 4 alerts
  • Localization of razor views done with LocalizeTagHelper.

Contributers

Contributer Role
@LazZiya Owner
@ismaelgasparin Portuguese language

License:

MIT

About

Sample localization project based on original template from Asp.NetCore 2.2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 69.0%
  • HTML 30.1%
  • Other 0.9%