1.0.11 • Published 11 days ago

lugha v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
11 days ago

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.

License

1.0.1

11 days ago

1.0.11

11 days ago

1.0.0

1 year ago