LocalizationProvider.AdminUI.AspNetCore.Xliff 8.2.2

dotnet add package LocalizationProvider.AdminUI.AspNetCore.Xliff --version 8.2.2                
NuGet\Install-Package LocalizationProvider.AdminUI.AspNetCore.Xliff -Version 8.2.2                
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.AdminUI.AspNetCore.Xliff" Version="8.2.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LocalizationProvider.AdminUI.AspNetCore.Xliff --version 8.2.2                
#r "nuget: LocalizationProvider.AdminUI.AspNetCore.Xliff, 8.2.2"                
#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.
// Install LocalizationProvider.AdminUI.AspNetCore.Xliff as a Cake Addin
#addin nuget:?package=LocalizationProvider.AdminUI.AspNetCore.Xliff&version=8.2.2

// Install LocalizationProvider.AdminUI.AspNetCore.Xliff as a Cake Tool
#tool nuget:?package=LocalizationProvider.AdminUI.AspNetCore.Xliff&version=8.2.2                

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 v8.0 IS OUT!

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

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!

Upgrade to v7.x?

Please read more details in this blog post!

More Info

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

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.2.2 34 11/15/2024
8.2.0 196 9/23/2024
8.1.5 183 8/27/2024
8.1.4 117 8/15/2024
8.1.3 215 8/13/2024
8.1.2 101 8/7/2024
8.1.1 70 8/4/2024
8.1.0 362 6/5/2024
8.0.3 305 5/5/2024
8.0.2 148 3/28/2024
8.0.1 156 3/5/2024
8.0.0 114 2/17/2024
7.5.2 5,230 12/23/2023
7.5.1 1,883 1/1/2023
7.5.0 424 11/12/2022
7.4.0 581 9/29/2022
7.3.1 500 8/30/2022
7.3.0 790 6/9/2022
7.2.1 466 3/17/2022
7.2.0 440 3/3/2022
7.1.0 454 2/10/2022
7.0.0 453 1/23/2022
7.0.0-pre-0015 205 1/19/2022
7.0.0-pre-0014 191 1/16/2022
7.0.0-pre-0013 190 12/27/2021
7.0.0-pre-0012 213 11/30/2021
7.0.0-pre-0011 1,656 11/26/2021
7.0.0-pre-0010 5,516 11/24/2021
7.0.0-pre-0009 5,334 11/24/2021
7.0.0-pre-0008 4,498 11/24/2021
7.0.0-pre-0007 6,312 11/23/2021
7.0.0-pre-0006 231 10/31/2021
7.0.0-pre-0005 246 10/17/2021
7.0.0-pre-0004 256 10/4/2021
7.0.0-pre-0003 281 9/12/2021
7.0.0-pre-0002 206 8/30/2021
7.0.0-pre-0001 224 7/26/2021