Dead Simple translations
This module provides you an easy way to translate strings. Just pass in an object to .create with all your locales + translations and you will get a function to translate strings.
Installation
npm install simple-translate
Usage
var Translate = ;var translations = "en": "hello": "Hello!" "hello_name": "Hello {{name}}!" "de": "hello": "Hallo!" "hello_name": "Hallo {{name}}!" # default locale is "en"var translate = Translate;; // "Hello!"; // "Hello Horst!" # If you want any other locale you can simply set the "locale" propertytranslationslocale = "de";var translate = Translate;; // "Hello!"; // "Hello Horst!"