Text translation package based on Google Translate API
from itranslator import Translator
translator = Translator()
translated_text = translator.translate(query='hi there', to_lang='fa')
print(translated_text)
from itranslator.asyncio import Translator
from asyncio import run
translator = Translator()
async def main():
translated_text = await translator.translate("Hello", "fa")
print(translated_text)
run(main())
pip install itranslator -U
ITranslator is released under the GPL-3.0 License. See the bundled LICENSE file for details.