LocalizationProvider.Abstractions 9.0.0

dotnet add package LocalizationProvider.Abstractions --version 9.0.0
                    
NuGet\Install-Package LocalizationProvider.Abstractions -Version 9.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LocalizationProvider.Abstractions" Version="9.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LocalizationProvider.Abstractions" Version="9.0.0" />
                    
Directory.Packages.props
<PackageReference Include="LocalizationProvider.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LocalizationProvider.Abstractions --version 9.0.0
                    
#r "nuget: LocalizationProvider.Abstractions, 9.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LocalizationProvider.Abstractions@9.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LocalizationProvider.Abstractions&version=9.0.0
                    
Install as a Cake Addin
#tool nuget:?package=LocalizationProvider.Abstractions&version=9.0.0
                    
Install as a Cake Tool

Quality Gate Status

Supporting LocalizationProvider

If you find this library useful, cup of coffee would be awesome! You can support further development of the library via Paypal.

Localization Provider v9.0 - What's Up?

Version 9.0 modernizes the platform to .NET 10 and focuses on Admin UI productivity - most notably automatic machine translations (including translating many resources in one batch), per-resource notes for translators, and a round of performance work across resource synchronization and caching.

Tracking issue: https://github.com/valdisiljuconoks/LocalizationProvider/issues/345

What's new?

Platform

  • .NET 10 target framework (Optimizely/Episerver integration updated to CMS 13)
  • Nullable reference types enabled across the abstractions and core libraries
  • Admin UI host integration rebuilt on Razor Pages with minimal-API service endpoints

Translations & Admin UI

  • Automatic translations through a pluggable translator-provider model - ships with Azure AI / Cognitive Services. Translate a single resource straight from the edit dialog with one click.
  • Batch translations (#373) - select multiple resources, pick the source and target language, optionally limit to only the empty translations, and review every proposed translation in a read-only preview before anything is saved to the database.
  • Per-resource notes (#148) - attach a translator-facing comment/hint to a resource key for extra context. Declare them in code with the [Notes] attribute or edit them inline in the Admin UI (shown in the resource list and in the translation edit dialog), and they round-trip through CSV import/export.
  • Bulk delete (#317) - select and remove multiple resources at once.
  • Polished Admin UI dialogs - styled, in-app confirmation dialogs replacing native browser prompts.

Performance

  • Resource synchronization reworked for large resource sets (SQL Server now syncs via a temp-table + bulk-copy path)
  • Caching refactored - CachedTranslations, targeted cache invalidation (no full flush when filling the cache), and removal of hot-path allocations and ToLower() calls
  • Memoized expression-based resource keys and cached query/command handler chains
  • BenchmarkDotNet hot-path baseline added to guard against regressions

Fixes

  • Case-insensitive language-code lookup (#368)
  • Various bug fixes and dependency upgrades

Localization Provider v8.0!

I'm pleased to announce that Localization Provider v8.0 is finally out. Again - took a bit longer than expected 😃

What's new?

  • .NET8 set as default target
  • Added provider model for translations - starting with Azure AI for automatic translations
  • ConfigurationContext now supports config configuration as well (you can change some settings after you have added and configured default settings for localization provider). This is very useful in unit test scenarios when you need to adjust some settings for specific test.
  • Various bug fixes
  • Some performance improvements (resource key comparison, pagination in Admin UI)
  • Security improvements (by default upgrading insecure connections)
  • Dependencies upgrade

More info in this blog post.

What is the LocalizationProvider project?

LocalizationProvider project is ASP.NET Mvc web application localization provider on steroids.

Giving you the main following features:

  • Database-driven localization provider for Asp.Net Mvc applications projects
  • Easy resource registrations via code
  • Supports hierarchical resource organization (with help of child classes)
  • Administration UI for editors to change or add new translations for required languages

Getting Started (.NET)

Bare Minimum to Start With

Below are code fragments that are essential to get started with a localization provider.

Install required packages:

> dotnet add package LocalizationProvider.AspNetCore
> dotnet add package LocalizationProvider.AdminUI.AspNetCore
> dotnet add package LocalizationProvider.Storage.SqlServer

Following service configuration (usually in Startup.cs) is required to get the localization provider working:

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        // add your authorization provider (asp.net identity, identity server, whichever..)

        services
            .AddControllersWithViews()
            .AddMvcLocalization();

        services.AddRazorPages();
        services.AddRouting();

        services.AddDbLocalizationProvider(_ =>
        {
            _.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"));
            ...
        });

        services.AddDbLocalizationProviderAdminUI(_ =>
        {
            ...
        });
    }

    ...
}

And following setup of the application is required as a minimum (also usually located in Startup.cs):

public class Startup
{
    ...

    public void Configure(IApplicationBuilder app, IHostingEnvironment env)
    {
        app.UseRouting();
        app.UseAuthentication();
        app.UseAuthorization();

        app.UseDbLocalizationProvider();
        app.UseDbLocalizationProviderAdminUI();
        app.UseDbLocalizationClientsideProvider(); //assuming that you like also Javascript

        app.UseEndpoints(endpoints =>
        {
            endpoints.MapControllers();
            endpoints.MapRazorPages();
            endpoints.MapDbLocalizationAdminUI();
            endpoints.MapDbLocalizationClientsideProvider();
        });
    }
}

Also, you can refer to sample app in GitHub for some more hints if needed.

More Detailed Help

Getting Started - Optimizely CMS/Commerce

Supported DbLocalizationProvider Storage Providers

Working with DbLocalizationProvider Stuff

Integrating with Optimizely

  • For more information about Optimizely integration - read here

Other Versions

Localization Provider v7.x Released

Please read more in this blog post!

More Info

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (21)

Showing the top 5 NuGet packages that depend on LocalizationProvider.Abstractions:

Package Downloads
LocalizationProvider

Database driven localization provider

LocalizationProvider.Storage.SqlServer

SqlServer storage implementation for DbLocalizationProvider package

LocalizationProvider.AspNetCore

Database driven localization provider. Asp.Net Core support package

LocalizationProvider.AdminUI.AspNetCore

Database driven localization provider. Admin UI for Asp.Net Core apps.

LocalizationProvider.AdminUI.Models

Abstractions for database driven localization provider AdminUI.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.0.0 0 6/3/2026
8.2.6 78,343 8/1/2025
8.2.5 12,055 7/4/2025
8.2.4 90,062 12/28/2024
8.2.3 30,366 11/27/2024
8.2.2 8,577 11/15/2024
8.2.1 8,238 11/3/2024
8.2.0 32,235 9/23/2024
8.1.6 19,928 9/2/2024
8.1.5 25,962 8/27/2024
8.1.4 12,416 8/15/2024
8.1.3 6,450 8/13/2024
8.1.2 2,385 8/7/2024
8.1.1 1,245 8/4/2024
8.1.0 20,667 6/5/2024
8.0.3 18,499 5/5/2024
8.0.2 14,876 3/28/2024
8.0.1 6,661 3/5/2024
8.0.0 33,138 2/17/2024
7.5.2 81,139 12/23/2023
Loading failed