зеркало из https://github.com/aspnet/Localization.git
2.6 KiB
2.6 KiB
Localization
Package | aspnet-core | NuGet |
---|---|---|
Microsoft.Extensions.Localization | ||
Microsoft.AspNetCore.Localization |
Localization abstractions and implementations for ASP.NET Core applications.
This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the Home repo.
Samples
Here are a few samples that demonstrate different localization features including: localized views, localized strings in data annotations, creating custom localization resources ... etc.
- Localization.StarterWeb - comprehensive localization sample demonstrates almost all of the localization features
- Localization.EntityFramework - localization sample that uses an EntityFramework based localization provider for resources
- Localization.CustomResourceManager - localization sample that uses a custom
ResourceManagerStringLocalizer
Providers
Community projects adapt RequestCultureProvider for determining the culture information of an HttpRequest
.
- My.AspNetCore.Localization.Session - determines the culture information for a request via values in the session state.