Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

whitesharx/node-localizer

 
 

Repository files navigation

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 [email protected] 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" }

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%