зеркало из https://github.com/aspnet/Localization.git
[Archived] Localization abstractions and implementations for ASP.NET Core applications. Project moved to https://github.com/aspnet/AspNetCore
a00708da34
[auto-updated: dependencies] |
||
---|---|---|
.github | ||
.vsts-pipelines/builds | ||
build | ||
samples/LocalizationSample | ||
src | ||
test | ||
.appveyor.yml | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
CONTRIBUTING.md | ||
Directory.Build.props | ||
Directory.Build.targets | ||
LICENSE.txt | ||
Localization.sln | ||
NuGet.config | ||
NuGetPackageVerifier.json | ||
README.md | ||
build.cmd | ||
build.sh | ||
korebuild-lock.txt | ||
korebuild.json | ||
run.cmd | ||
run.ps1 | ||
run.sh | ||
version.props |
README.md
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.
Localization 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
Localization Providers
Community projects adapt RequestCultureProvider for determining the culture information of an HttpRequest
.
- My.AspNetCore.Localization.Json - determines the culture information for a request from a JSON file.
- My.AspNetCore.Localization.Session - determines the culture information for a request via values in the session state.
Localization Resources
Community projects adapt IStringLocalizer for fetching the localiztion resources.
- My.Extensions.Localization.Json - fetches the localization resources from JSON file(s).
- OrchardCore.Localization.PortableObject - fetches the localization resources from PO file(s).