@ordinateio/lexicon

Manages translations of the user interface.


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

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