-
-
Notifications
You must be signed in to change notification settings - Fork 8
Home
Ziya Mollamahmut edited this page Aug 17, 2020
·
10 revisions
Due to several major breaking changes in the planned v5, the next version has been moved to a new project! ExpressLocalization will continue to get support and hotfixes. To continue with the next vesion please see:
New project repository: XLocalizer
New project docs: DOCS.Ziyad.info
Sample repository: XLocalizer.Samples
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 :