simple-translate-json
Simple mini library made for translations (JSON)
Provides system for language translation using serde_json, include_dir and sys_locale The library was made because I couldn't find any simple language library like that
The library simply takes a language directory (that is a include_dir), then searched for a file with the same name as the locale file name should be for example en-us.json
(it has to be lowercase)
Example usage:
use ;
use get_locale;
use Translation;
const LANG_DIR: Dir = include_dir!;
let result = new;
assert_eq!;
lang/en-us.json