1.0.0 • Published 1 year ago

@achref-mk/react-translator v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

TRANSLATOR

created by Achref Makhloufi

translator is a package that provides an easy way to create your multi lang system

Installation

translator is tested under Node.js v18.

Install the dependencies and start the server.

cd your-project
npm i @achref-mk/translator

create the lang file

npx @achref-mk/translator --init

add your lang items inside the json file

const translator = require("@achref-mk/translator");
translator.get("lang_key");

you can specify your lang file

translator.get("lang_key", "lang_file");

License

MIT

it's free