lugha
v1.0.11
Published
Lugha is a nodejs package that provide easy and efficient way to translate languages.
Downloads
1
Readme
Lugha
Translate words by matching them to your translation json file.
Installation
npm i lugha
Usage
Simple just call the Lugha class
const Lugha = require('lugha');
let config = {
"lang_code":"sw"
};
let lugha = new Lugha(config)
lugha.translate('hello');
// returns 'Mambo'
lugha.translate('goodbye');
// returns 'kwaheri'
Conclusion
This is a very simple package that can be used to translate words in your application.