37 lines
533 B
Markdown
37 lines
533 B
Markdown
# LibreTranslate API
|
|
|
|
## Your own translation API
|
|
|
|
### Install
|
|
|
|
```
|
|
$ git clone --recurse-submodules https://git.manalejandro.com/ale/libretranslate-api
|
|
$ cd libretranslate-api/
|
|
$ docker compose pull libretranslate-api
|
|
$ docker compose build libretranslate
|
|
```
|
|
|
|
### Run
|
|
|
|
```
|
|
$ docker compose up -d
|
|
```
|
|
|
|
### Usage
|
|
|
|
```
|
|
$ curl "http://libretranslate-api:5080/?target=es&text=help"
|
|
```
|
|
|
|
### Latest docker images
|
|
|
|
Pull from manalejandro registry:
|
|
|
|
```
|
|
$ docker pull registry.manalejandro.com/libretranslate-api
|
|
```
|
|
|
|
### License
|
|
|
|
MIT
|