mololab / json-translator

jsontt 💡 - FREE simple CLI to translate your json files into other languages ✅ Check Readme ✌
https://mololab.org/jsontt/npm
MIT License
425 stars 52 forks source link

Is there a way to set the translation module when using the package like with the CLI #58

Open andyjamesn opened 3 weeks ago

andyjamesn commented 3 weeks ago

When using the cli you can use -m to set the translation module.

But when using the package eg:

let es_lang = await translator.translateObject(
  en_lang,
  translator.languages.English,
  translator.languages.Spanish
);

How do you set the translation module?

ParvinEyvazov commented 2 weeks ago

@andyjamesn Currently it is not available. Planning to add it soon!