rskibbe.I18n.Ini 1.0.3

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.3                
NuGet\Install-Package rskibbe.I18n.Ini -Version 1.0.3                
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.3" />                
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.3                
#r "nuget: rskibbe.I18n.Ini, 1.0.3"                
#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.3

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

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:

[{"iso": "de-DE", "name": "Deutsch"},{"iso": "en-US", "name": "English"}]

I specified the german and english language over here. Each one with a name and an iso "property".

Translation files

Next, we will take a look at the translation files like "en-US_English.json" 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.json
{"key1": "Actions", "greeting": "Hello!"}
de-DE_Deutsch.json
{"key1": "Aktionen", "greeting": "Hallo!"}

The corresponding translation key would be "key1", which would result in "Actions" or "Aktionen" depending on the language.

Namespaces / nested

en-US_English.json
{"frmMain": {"tsmiActions": "Actions"}}
de-DE_Deutsch.json
{"frmMain": {"tsmiActions": "Aktionen"}}

The corresponding translation key would be "frmMain.tsmiActions", which is a "namespaced" / nested one.

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.16 70 11/1/2024
1.0.15 173 9/4/2023
1.0.14 265 2/1/2023
1.0.13 259 12/19/2022
1.0.12 356 10/29/2022
1.0.11 326 10/29/2022
1.0.10 334 10/29/2022
1.0.9 337 10/29/2022
1.0.8 339 10/28/2022
1.0.7 340 10/28/2022
1.0.6 327 10/27/2022
1.0.5 350 10/27/2022
1.0.4 342 10/25/2022
1.0.3 368 10/25/2022
1.0.2 346 10/24/2022
1.0.1 328 10/24/2022
1.0.0 347 10/24/2022