meta info
- Title: Express Localization
- Keywords: localization, asp.net-core, express-localization
- Description: All dirty localizaiton setup in simple steps.
- Author: Ziya Mollamahmut
- Date: 08-Aug-2020
- Image: https://github.com/LazZiya/Docs/raw/master/LazZiya.ExpressLocalization/v4.0/images/lazziya-express-localization-logo.png
- Image-alt: LazZiya.ExpressLocalization Logo
- Version: v4.0
This library is not maintained. Please upgrade to XLocalizer for a newer and easier localization experience.
Less is more, do full localization in fewer steps...
Install from nuget :
Install-Package LazZiya.ExpressLocalization
A nuget package to simplify the localization setup of any Asp.Net Core web app to fewer steps.
ExpressLocalization does all below localization settings easily:
- Defines global route template by adding
{culture}
pattern to all routes, so urls will be likehttp://www.example.com/en-US/
. - Registers
RouteSegmentRequestCultureProvider
, so culture selection can be based on route value. - Defines
SharedCultureLocalizer
for localizing all razor pages depending on a shared resource. - Localization of all DataAnnotations error messages.
- Localization of ModelBinding error messages.
- Localizing IdentityDescriber errors messages.
- Registers client side validation libraries for validating localized input fields like decimal numbers.
- Configures app cookie to add
{culture}
value to the redirect paths when redirect events are invoked.
Some options requires installing additional nuget packages like :