@ordinateio/lexicon
TypeScript icon, indicating that this package has built-in type declarations

2.0.8 • Public • Published

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

Package Sidebar

Install

npm i @ordinateio/lexicon

Weekly Downloads

5

Version

2.0.8

License

MIT

Unpacked Size

7.08 kB

Total Files

5

Last publish

Collaborators

  • ordinateio