https://github.com/probablyarth/bashini-regional-translater
https://github.com/probablyarth/bashini-regional-translater
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/probablyarth/bashini-regional-translater
- Owner: probablyArth
- Created: 2023-10-29T12:11:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-29T14:57:05.000Z (over 2 years ago)
- Last Synced: 2025-01-07T16:43:23.709Z (over 1 year ago)
- Language: TypeScript
- Size: 127 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Bashini Regional Translater
Translate From one regional language to another.
# Language Codes
| code | Language |
|-------|----------|
| 0 | hindi |
| 1 | tamil |
| 2 | telugu |
| 3 | malayalum |
| 4 | marathi |
| 5 | bengali |
| 6 | assamese |
| 7 | gujrati |
| 8 | kannada |
| 9 | oriya |
| 10 | punjabi |
# Endpoints
## `POST /scaler/translate/`
#### Payload Schema
```json
{
"source_language": "integer",
"content": "string",
"target_language": "integer"
}
```
### Responses
- #### 200 OK
```json
{
"status_code": 200,
"message": "translated successfully",
"translated_content": "string"
}
```
- #### 400 Bad Request
```json
{
"status_code": 400,
"message": "language code out of bounds"
}
```
- #### 500 Server Error
```json
{
"status_code": 500,
"message": "An error occured while translating the content."
}
```
## Screenshots

## Setting up locally
```bash
# install the depenencies
yarn
# make a .env file
cp .env.example .env
# start the development server
yarn dev
```