@achref-mk/react-translator

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i @achref-mk/react-translator

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

2.15 kB

Total Files

4

Last publish

Collaborators

  • achref-mk