@ordinateio/lexicon

Manages translations of the user interface.


Keywords
front-end, back-end, typescript
License
MIT
Install
npm install @ordinateio/lexicon@1.0.2

Documentation

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"));