trs-contexts
v1.0.0
Published
TrsContexts is a package for helping to translate projects contexts.
Downloads
3
Maintainers
Readme
How To Use It?
You should use NPM to install it:
npm i trs-contexts
Then you can use it:
const config = {
Silav: "Hello",
Were: "Come"
}
const tC = new TrsContexts(config);
tC.do("Silav");
And it returns a string containing the translation of the context you've specified.