Helps writing multilingual JavaScript. Tongue.js transforms JavaScript written in any language to any target language.
Try it out using tongue.js REPL
tongue.transform(code, options);
code
: source code written in any langauge
locale
: language code of the source. Eg: 'hi'
map
: provide any custom translations for the locale
targetLocale
: target language code
tongue.transform('मानलो ल = 1;', {locale: 'hi'});
returns
"var ल = 1;"
tongue.transform('警报(1);', {locale: 'cn', map: {'alert': '警报'}});
returns
"alert(1);"
tongue.js supports both AMD and CommonJS module styles.
Your contributions are always welcome!
Copyright (c) 2016 Dheeraj Joshi Licensed under the MIT license.