Skip to content

LazZiya/ExpressLocalizationSampleCore3

Repository files navigation

UPDATE Nov. 2020 :

Do you want even more exciting localization experience? If yes, please check XLocalizer, a localization nuget with online translation support and auto resource creating.

ExpressLocalization sample - Asp.Net Core 3.0

Fully localized Asp.Net Core 3.0 project, based on the basic template from Visual Studio. Localized using LazZiya.ExpressLocalization and LazZiya.TagHelpers.Localization.

DotNetCore Version

This project uses dotnetcore3.0. additionally you can find dotnetcore2.2 compatible version here: ExpressLocalization Sample for Asp.Net Core 2.2

Visual Studio Version

In order to work with this project you need to install the latest preview version of visual studio with DorNetCore3.0 preview https://visualstudio.microsoft.com/vs/preview/

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

Resource texts may need fixing/adding translations

  • Arabic
  • Chinese
  • Czech
  • Dutch
  • English
  • French
  • German
  • Hindi
  • Hungarian
  • Italian
  • Japanese
  • Korean
  • Persian
  • Polish
  • Portuguese
  • Portuguese Brazil
  • 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.

License:

MIT