🔥💯 V2 now supports multiple translations 💯🔥
A light python api written with fastapi to translate your text. Fork this repository if you want to use it on your local environment. Otherwise, you can try out the deployed url https://python-translator.herokuapp.com
- fastapi
- translators
- uvicorn
> uvicorn module.main:app --reload
localhost:8000
or
https://python-translator.herokuapp.com
/v2/translate
POST
{
"texts": {
"text1": "The first text to translate",
"text2": "the second text to translate",
"randomFieldName": "the third text to translate",
"helloworld": "font icons for all projects, large or small"
},
"to_language": "fr"
}
{
"from_language": "auto",
"to_language": "fr",
"translated": {
"text1": "Le premier texte à traduire",
"text2": "Le deuxième texte à traduire",
"randomFieldName": "Le troisième texte à traduire",
"helloworld": "icônes de police pour tous les projets, grands ou petits"
}
}
localhost:8000
or
https://python-translator.herokuapp.com
/v1/translate
POST
{
"text": "Wikipedia provides all its content for free, without advertising, and without using the exploitation of the personal data of its users.",
"to_language": "fr"
}
{
"from_language": "auto",
"to_language": "fr",
"translated": "Wikipedia fournit tout son contenu gratuitement, sans publicité, et sans utiliser l'exploitation des données personnelles de ses utilisateurs."
}