BogaNet.i18n 1.2.4

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

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

BogaNet.i18n

Localizer/translator for C# applications.

Main class and example code

Localizer.Instance.LoadFiles("./Resources/Translation.csv", "./Resources/Translation_de.csv"); //load the translation files
Localizer.Instance.Culture = new CultureInfo("en"); //set the culture to English
Console.WriteLine(Localizer.Instance.GetText("Greeting"));

The files for the translations are CSV-based with the following structure for the columns:

  1. Key
  2. Language code (ISO 639) and translation for the key
  3. Additional column per language code and translation
key,en,de
Greeting,"Hi there!","Hallöchen zusammen!"
Name,"Name:","Name:"
Name_Tooltip,"Enter your name to access the application.","Gib deinen Namen ein um Zugang zur Applikation zu erhalten."
Name_Placeholder,"Enter your name here...","Gib deinen Namen hier ein..."

It's recommended to use one file per language code.

Nuget:

BogaNet.i18n

API:

https://www.crosstales.com/media/data/BogaNet/api/

GitHub:

https://github.com/slaubenberger/BogaNet/

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 (1)

Showing the top 1 NuGet packages that depend on BogaNet.i18n:

Package Downloads
BogaNet.Avalonia

Little helpers for Avalonia development.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.4.0 100 8/5/2024
1.3.2 76 7/30/2024
1.3.1 80 7/27/2024
1.3.0 94 7/26/2024
1.2.4 87 7/25/2024
1.2.2 146 7/21/2024
1.2.1 108 7/12/2024
1.2.0 102 7/12/2024
1.1.2 119 7/2/2024
1.1.1 99 7/1/2024
1.1.0 123 7/1/2024
0.9.3 110 6/26/2024
0.9.2 108 6/25/2024
0.9.1 123 6/24/2024
0.9.0 112 6/23/2024

Delegates added.