Projekte
Auf GitHub ansehen
damienbod/AspNetCoreLocalization
damienbod/AspNetCoreLocalization has 252 GitHub stars and 103 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-23 22:30 UTC. Last push 2025-04-15.
Gemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
Über uns
Localization.SqlLocalizer & ASP.NET Core MVC Localization Examples
DatenREADME.md
Original| Build | Localization.SqlLocalizer | |
|---|---|---|
| .net core |
========================
Documentation: http://localizationsqllocalizer.readthedocs.io/en/latest/
Basic Usage ASP.NET Core
Add the NuGet package to the project.csproj file
"dependencies": {
"Localization.SqlLocalizer": "3.1.0",
Add the DbContext and use the AddSqlLocalization extension method to add the SQL Localization package.
public void ConfigureServices(IServiceCollection services)
{
// init database for localization
var sqlConnectionString = Configuration["DbStringLocalizer:ConnectionString"];
services.AddDbContext<LocalizationModelContext>(options =>
options.UseSqlite(
sqlConnectionString,
b => b.MigrationsAssembly("ImportExportLocalization")
),
ServiceLifetime.Singleton,
ServiceLifetime.Singleton
);
// Requires that LocalizationModelContext is defined
services.AddSqlLocalization(options => options.UseTypeFullNames = true);
Create your database
dotnet ef migrations add Localization --context localizationModelContext
dotnet ef database update Localization --context localizationModelContext
========================
ASP.NET Core MVC Localization Example
Ähnliche Projekte entdecken
Wird geladen…