Localization.SqlLocalizer 2.0.5

SQL Localizer for ASP.NET Core, dotnet

Install-Package Localization.SqlLocalizer -Version 2.0.5
dotnet add package Localization.SqlLocalizer --version 2.0.5
<PackageReference Include="Localization.SqlLocalizer" Version="2.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Localization.SqlLocalizer --version 2.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Build status | NuGet Status |

========================

Documentation:
http://localizationsqllocalizer.readthedocs.io/en/latest/

Issues:
https://github.com/damienbod/AspNetCoreLocalization/issues

Code:
https://github.com/damienbod/AspNetCoreLocalization/tree/master/src/Localization.SqlLocalizer

<strong>Basic Usage ASP.NET Core</strong>

Add the NuGet package to the project.json file

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

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

<ul>
<li><a href="http://damienbod.com/2015/10/21/asp-net-5-mvc-6-localization/">ASP.NET Core MVC Localization</a></li>
<li><a href="http://damienbod.com/2015/10/24/using-dataannotations-and-localization-in-asp-net-5-mvc-6/">Using DataAnnotations and Localization in ASP.NET Core MVC </a></li>
<li><a href="http://damienbod.com/2016/01/29/asp-net-core-1-0-using-sql-localization/">ASP.NET Core using SQL Localization</a></li>
</ul>

Build status | NuGet Status |

========================

Documentation:
http://localizationsqllocalizer.readthedocs.io/en/latest/

Issues:
https://github.com/damienbod/AspNetCoreLocalization/issues

Code:
https://github.com/damienbod/AspNetCoreLocalization/tree/master/src/Localization.SqlLocalizer

<strong>Basic Usage ASP.NET Core</strong>

Add the NuGet package to the project.json file

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

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

<ul>
<li><a href="http://damienbod.com/2015/10/21/asp-net-5-mvc-6-localization/">ASP.NET Core MVC Localization</a></li>
<li><a href="http://damienbod.com/2015/10/24/using-dataannotations-and-localization-in-asp-net-5-mvc-6/">Using DataAnnotations and Localization in ASP.NET Core MVC </a></li>
<li><a href="http://damienbod.com/2016/01/29/asp-net-core-1-0-using-sql-localization/">ASP.NET Core using SQL Localization</a></li>
</ul>

Release Notes

Release Notes: Version 2.0.4
fixed multi threading issues

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.5 612 5/3/2019
2.0.4 176 4/2/2019
2.0.3 1,596 9/2/2018
2.0.2 4,066 8/31/2017
2.0.1 467 8/25/2017
2.0.0 342 8/19/2017
1.0.10 1,135 5/14/2017
1.0.9 549 3/10/2017
1.0.8 474 3/3/2017
1.0.7 4,918 2/5/2017
1.0.6 1,025 12/5/2016
1.0.5 607 11/27/2016
1.0.4 500 11/22/2016
1.0.3 798 7/15/2016
1.0.2 516 6/28/2016
1.0.1 477 5/26/2016
1.0.0 489 5/26/2016