Lepo.i18n 1.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Lepo.i18n --version 1.2.0                
NuGet\Install-Package Lepo.i18n -Version 1.2.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="Lepo.i18n" Version="1.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Lepo.i18n --version 1.2.0                
#r "nuget: Lepo.i18n, 1.2.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.
// Install Lepo.i18n as a Cake Addin
#addin nuget:?package=Lepo.i18n&version=1.2.0

// Install Lepo.i18n as a Cake Tool
#tool nuget:?package=Lepo.i18n&version=1.2.0                

Lepo.i18n

Created with ❤ in Poland by lepo.co
Convenient app translation.

GitHub license Nuget Nuget (with prereleases) Nuget Size Sponsors

Preview image

How to use?

  • Install Lepo.i18n library via NuGet.
  • Add translation files to your application, e.g. Strings/pl_PL.yaml, and mark them as embedded resource.
<ItemGroup>
  <EmbeddedResource Include="Strings\pl_PL.yaml" />
</ItemGroup>
  • Add translations to these files

using direct phrases

Hello World: Witaj Świecie

or keys

main.view.wellcome: Hello World
  • Register selected language
Lepo.i18n.Translator.SetLanguage(
  Assembly.GetExecutingAssembly(),
  "pl_PL",
  "Lepo.i18n.Demo.Strings.pl_PL.yaml"
);
  • Add a library reference in your XAML and start translating.
<Page xmlns:i18n="clr-namespace:Lepo.i18n;assembly=Lepo.i18n">

  
  <TextBlock Text="{i18n:Translate String='Hello World'}"/>

  
  <wpfui:CardExpander
    Header="{i18n:Translate String='card.networks.title'}"
    Subtitle="{Binding NetworksCount, ConverterParameter='card.networks.detected'
    Converter={StaticResource TranslateConverter}, Mode=OneWay}"/>

</Page>

Compilation

Use Visual Studio 2022 and invoke the .sln.

Visual Studio
Lepo.i18n is an Open Source project. You are entitled to download and use the freely available Visual Studio Community Edition to build, run or develop for Lepo.i18n. As per the Visual Studio Community Edition license, this applies regardless of whether you are an individual or a corporate user.

License

Lepo.i18n is free and open source software licensed under MIT License. You can use it in private and commercial projects.
Keep in mind that you must include a copy of the license in your project.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net5.0-windows7.0 is compatible.  net6.0 was computed.  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.  net6.0-windows7.0 is compatible.  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. 
.NET Core netcoreapp3.1 is compatible. 
.NET Framework net47 is compatible.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 4.7

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • net5.0-windows7.0

    • No dependencies.
  • net6.0-windows7.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Lepo.i18n:

Package Downloads
Lepo.i18n.DependencyInjection

Lepo.i18n is an essential tool for developers aiming to create multilingual applications in WPF, WinForms, or CLI environments.

Lepo.i18n.Wpf

Lepo.i18n is an essential tool for developers aiming to create multilingual applications in WPF, WinForms, or CLI environments.

Lepo.i18n.Json

Lepo.i18n is an essential tool for developers aiming to create multilingual applications in WPF, WinForms, or CLI environments.

GitHub repositories

This package is not used by any popular GitHub repositories.