BogaNet.i18n 1.3.2

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

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

BogaNet.i18n

Localizer for C# applications with CSV files as translations.

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 98 8/5/2024
1.3.2 74 7/30/2024
1.3.1 78 7/27/2024
1.3.0 92 7/26/2024
1.2.4 85 7/25/2024
1.2.2 144 7/21/2024
1.2.1 106 7/12/2024
1.2.0 100 7/12/2024
1.1.2 117 7/2/2024
1.1.1 97 7/1/2024
1.1.0 121 7/1/2024
0.9.3 108 6/26/2024
0.9.2 106 6/25/2024
0.9.1 121 6/24/2024
0.9.0 110 6/23/2024

Release 1.3.2.