@ordinateio/lexicon
v2.0.8
Published
Manages translations of the user interface.
Downloads
5
Maintainers
Readme
Lexicon
Manages translations of the user interface.
Installation
npm install --save-dev @ordinateio/lexicon
Usage
import {Lexicon} from "@ordinateio/lexicon";
const lexicon = new Lexicon({
locale: 'ru',
translations: {
test: {
en: "On the other hand ...",
ru: "Не следует, однако...",
}
}
});
console.log(lexicon.get("test"));