Skip to content

Multilingual resource builder using only JSON files on disk

License

Notifications You must be signed in to change notification settings

winscripter/LangJsonSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangJsonSharp

An incredibly small and simple multilingual resource builder using JSON files on disk.

App.en-US.json:

{
  "Greeting": "Hello!",
  "Yes": "Yes"
}

App.de-DE.json:

{
  "Greeting": "Guten tag!",
  "Yes": "Ja"
}

App.es-ES.json:

{
  "Greeting": "Hola!",
  "Yes": "Si"
}

Code:

using LangJsonSharp;

var mlm = new MultipleLanguageManager("App"); // prefix all *language*.json files with App -> App.*language*.json
Console.WriteLine(mlm["Greeting"]);
// The program produces following outputs depending on the system language or UI culture of the current thread:
//     - Hello! - if installed language is English (US)
//     - Guten tag! - if installed language is German
//     - Hola! - if installed language is Spanish

Update note

This library is used specifically by DbgSharp. This library is open-source because DbgSharp uses it, and this library is open-source in order to provide security. That being said, you can use this library for your projects if you want, but it will only be updated if DbgSharp needs to be updated or a bug is known. Suggestions are acceptable.

About

Multilingual resource builder using only JSON files on disk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages