2024-04-18 15:42:52 +00:00
|
|
|
# LibreTranslate API
|
|
|
|
|
|
|
|
## Your own translation API
|
|
|
|
|
|
|
|
### Install
|
|
|
|
|
|
|
|
```
|
2024-10-07 11:19:53 +00:00
|
|
|
$ git clone --recurse-submodules https://git.manalejandro.com/ale/libretranslate-api
|
2024-04-18 15:42:52 +00:00
|
|
|
$ 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"
|
|
|
|
```
|
|
|
|
|
2024-07-11 11:52:25 +00:00
|
|
|
### Latest docker images
|
|
|
|
|
2024-10-07 11:19:53 +00:00
|
|
|
Pull from manalejandro registry:
|
|
|
|
|
|
|
|
```
|
2024-10-08 10:13:48 +00:00
|
|
|
$ docker pull registry.manalejandro.com/libretranslate-api:amd64
|
|
|
|
or
|
|
|
|
$ docker pull registry.manalejandro.com/libretranslate-api:arm64
|
2024-10-07 11:19:53 +00:00
|
|
|
```
|
2024-07-11 11:52:25 +00:00
|
|
|
|
2024-04-18 15:42:52 +00:00
|
|
|
### License
|
|
|
|
|
2024-07-11 11:52:25 +00:00
|
|
|
MIT
|