Localize
Simple library for localization purposes. Mainly for web development. Warning: Unsafe magic inside, not very much but still. Tests contributions are appreciated.
Installation
[]
= "0.1.0"
# Depend on master branch
# [dependencies.localize]
# git = "https://github.com/sy1ntexx/localize"
Usage
// locales/en.json
/*
{
"welcome": "Hello, World!"
}
*/
let localizer = new.precache_all.debug;
let tag = String from;
let output = localizer.localize.unwrap;
dbg!;
// output = { "welcome": "Hello, World!" }