nittin.xperience.localization
0.0.3-pre.50d07e5
dotnet add package nittin.xperience.localization --version 0.0.3-pre.50d07e5
NuGet\Install-Package nittin.xperience.localization -Version 0.0.3-pre.50d07e5
<PackageReference Include="nittin.xperience.localization" Version="0.0.3-pre.50d07e5" />
paket add nittin.xperience.localization --version 0.0.3-pre.50d07e5
#r "nuget: nittin.xperience.localization, 0.0.3-pre.50d07e5"
// Install nittin.xperience.localization as a Cake Addin
#addin nuget:?package=nittin.xperience.localization&version=0.0.3-pre.50d07e5&prerelease
// Install nittin.xperience.localization as a Cake Tool
#tool nuget:?package=nittin.xperience.localization&version=0.0.3-pre.50d07e5&prerelease
Nittin.Xperience.Localization
Description
This project enables creating and using localizations and translations in Xperience by Kentico project. Create translations in Xperience admin UI or programatically and use in your pages.
Screenshots
Library Version Matrix
Xperience Version | Library Version |
---|---|
>= 28.4.3 | 1.0.0 |
Dependencies
Package Installation
Add the package to your application using the .NET CLI
dotnet add package Nittin.Localization
Quick Start
Add this library to the application services.
// Program.cs builder.Services.AddNittinLocalization();
Create a localization key in Xperience's Administration within the Localization application added by this library.
Create a translation for this key in Xperience's Administration within the Localization application added by this library.
Display the results on your site with a
ViewComponent
.
// ViewModelLocalizedWidgetViewComponent.cs
private readonly IKenticoStringLocalizer localizer;
public ViewModelLocalizedWidgetViewComponent(IKenticoStringLocalizer localizer)
=> this.localizer = localizer;
public IViewComponentResult Invoke()
{
var model = new ViewModelLocalizedWidgetViewModel
{
Title = localizer["Title"],
Content = localizer["Content"]
};
return View("~/Components/Widgets/ViewModelLocalizedWidget/_ViewModelLocalizedWidget.cshtml", model);
}
- Or display the results on your site with a Razor View 👍
@using Nittin.Xperience.Localization
@inject IKenticoHtmlLocalizer localizer
<div>
<h1>@localizer["Title"]</h1>
<p>@localizer["Content"]</p>
</div>
Contributing
Instructions and technical details for contributing to this project can be found in Contributing Setup.
License
Distributed under the MIT License. See LICENSE.md
for more information.
Support
This project has Limited support.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- Kentico.Xperience.Admin (>= 29.0.1)
- Kentico.Xperience.Core (>= 29.0.1)
- Kentico.Xperience.WebApp (>= 29.0.1)
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 |
---|