0.3.1 • Published 6 years ago

node-localizer v0.3.1

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

node-localizer

Installation

Npm

npm install node-localizer

Yarn

yarn add node-localizer

Support

This library is quite fresh, and maybe has bugs. Write me an email to natashkinsash@gmail.com and I will fix the bug in a few working days.

Quick start

const Localizer = require('node-localizer');

const localizer = new Localizer({TEST: {en: "test", ru: "тест", cz: "kvíz"}}, {locale: 'en', default: 'en'});

let test = localizer.get({key: 'TEST'}); // { text: "test", locale: "en" }

localizer.setLocal('cz');

test = localizer.get({key: 'TEST'}); // { text: "kvíz", locale: "cz" }

test = localizer.get({key: 'TEST', local: 'ru'}); // { text: "тест", locale: "ru" }
0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago