ASP.NET Core 1.0 MVC Localization Examples

3 years after

Localization.SqlLocalizer NuGet Status


NuGet | Issues | Code

Release History

Version 1.0.3

  • Adding interfaces to support csv, json, import export of data

Version 1.0.2

  • Updated to dotnet 1.0.0

Version 1.0.1

  • Added Unique constraint for key, culture
  • Fixed type full name cache bug

Version 1.0.0

  • Initial release
  • Runtime localization updates
  • Cache support, reset cache
  • ASP.NET DI support
  • Supports any Entity Framework Core database

Basic Usage ASP.NET Core

Add the NuGet package to the project.json file

"dependencies": {
        "Localization.SqlLocalizer": "",

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 =>
            b => b.MigrationsAssembly("Angular2LocalizationAspNetCore")

    // 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 1.0 MVC Localization Example

Top Contributors



-   releaseLocalizationS zip tar
-   releaseLocalizationS zip tar