Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 560 Bytes

README.md

File metadata and controls

25 lines (23 loc) · 560 Bytes

Notes

- Install Python 3.8 or higher
- Keep in mind that this service need to make requests to google so it needs intenet
- Feel free to submit merge request 
- Enjoy

Installation

git clone https://github.com/imanimen/translate-service.git
cd translate-service
pip install -r requirements.txt

Run

python app.py

Endpoint

http://127.0.0.1/translate

Method

POST

Payload

{
    "text": "your-sample-text",
    "source": "en",
    "target": "fa"
}

Documentation

http://127.0.0.1/docs