rskibbe.I18n.Ini 1.0.4

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

// Install rskibbe.I18n.Ini as a Cake Tool
#tool nuget:?package=rskibbe.I18n.Ini&version=1.0.4

Description

A package with default Ini implementations for rskibbe.I18n.

Getting started

If you followed the steps from the base package, you are ready to provide your custom translations. For this, you need to create a specific folder structure, as this package works with Ini files.

Creating the folder structure

Inside your output directory (where the finished exe resides, like bin/debug..), create this folder structure.

  • bin
    • debug
      • i18n
        • ini
          • languages.ini
          • en-US_English.ini
          • de-DE_Deutsch.ini

languages.ini

This file represents/contains all available languages for your application - remember, in Ini format. Matching example contents to the example from above could look like this:

[English]
Iso=en-US
Name=English

[Deutsch]
Iso=de-DE
Name=Deutsch

I specified the german and english language over here. Each one with a name and an iso "property". The section header content doesn't really matter - more or less. Empty lines get ignored.

Translation files

Next, we will take a look at the translation files like "en-US_English.ini" from above. As you can see, you need to first mention the iso code (should correspond to your language file of course!). Then you just append an underscore with the specific language name.

The corresponding files from above would look like this:

Simple

en-US_English.ini
[en-US_English]
key1=Actions
greeting=Hello!
de-DE_Deutsch.ini
[de-DE_Deutsch]
key1=Aktionen
greeting=Hallo!

The section headers get ignored, but I think it feels right to provide them anyways, because this is just how a normal Ini would look like, right? But feel free to omit them. The corresponding translation key would be "key1", which would result in "Actions" or "Aktionen" depending on the language.

Take a look at the base package for more information.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.15 132 9/4/2023
1.0.14 235 2/1/2023
1.0.13 231 12/19/2022
1.0.12 325 10/29/2022
1.0.11 301 10/29/2022
1.0.10 308 10/29/2022
1.0.9 306 10/29/2022
1.0.8 305 10/28/2022
1.0.7 311 10/28/2022
1.0.6 299 10/27/2022
1.0.5 313 10/27/2022
1.0.4 317 10/25/2022
1.0.3 341 10/25/2022
1.0.2 316 10/24/2022
1.0.1 298 10/24/2022
1.0.0 314 10/24/2022