Raveshand.Localization.Xml 1.0.0

Creating a multilingual website with ASP.NET Core will allow your site to reach a wider audience. ASP.NET Core provides services and middleware for localizing into different languages and cultures. In order to extend built-in localization structure of ASP.net Core, I extended it and you can create XML, Json or EntityFramework concretes as your repository, now. Below you can find configuration of each model.

Install-Package Raveshand.Localization.Xml -Version 1.0.0
dotnet add package Raveshand.Localization.Xml --version 1.0.0
<PackageReference Include="Raveshand.Localization.Xml" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Raveshand.Localization.Xml --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Raveshand.Localization.Xml, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Raveshand.Localization.Xml as a Cake Addin
#addin nuget:?package=Raveshand.Localization.Xml&version=1.0.0

// Install Raveshand.Localization.Xml as a Cake Tool
#tool nuget:?package=Raveshand.Localization.Xml&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ASP.net Core Localization

Creating a multilingual website with ASP.NET Core will allow your site to reach a wider audience. ASP.NET Core provides services and middleware for localizing into different languages and cultures. In order to extend built-in localization structure of ASP.net Core, I extended it and you can create XML, Json or EntityFramework concretes as your repository, now. Below you can find configuration of each model.

Feel free to ask any question: alirezakhosravi [at] live.com

Configuring Xml Localizarion

On Startup.cs you must add services.AddXmlLocalization(option=> { });

services.AddXmlLocalization(option => { });

Set Caching

Deault caching in this solution is IMemoryCache, for change it,you should change this interface to IDistributedCache. you can change this interface on option.

services.AddXmlLocalization(option => { option.CacheDependency = CacheOption.IDistributedCache; });

ASP.net Core Localization

Creating a multilingual website with ASP.NET Core will allow your site to reach a wider audience. ASP.NET Core provides services and middleware for localizing into different languages and cultures. In order to extend built-in localization structure of ASP.net Core, I extended it and you can create XML, Json or EntityFramework concretes as your repository, now. Below you can find configuration of each model.

Feel free to ask any question: alirezakhosravi [at] live.com

Configuring Xml Localizarion

On Startup.cs you must add services.AddXmlLocalization(option=> { });

services.AddXmlLocalization(option => { });

Set Caching

Deault caching in this solution is IMemoryCache, for change it,you should change this interface to IDistributedCache. you can change this interface on option.

services.AddXmlLocalization(option => { option.CacheDependency = CacheOption.IDistributedCache; });

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 463 12/16/2018