mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-01-30 01:28:08 +00:00
Updates
- Updated mobile app list (android) - Updated guide/faq for using as a systemd (for Python/PiP installed) - Remove "required api key" for my instance. Was added by mistake initially.
This commit is contained in:
parent
e19bd20776
commit
7eff05e257
1 changed files with 34 additions and 1 deletions
35
README.md
35
README.md
|
@ -411,6 +411,7 @@ See it in action on this [page](https://community.libretranslate.com/t/have-you-
|
|||
## Mobile Apps
|
||||
|
||||
- [LibreTranslator](https://codeberg.org/BeoCode/LibreTranslator) is an Android app [available on the Play Store](https://play.google.com/store/apps/details?id=de.beowulf.libretranslater) and [in the F-Droid store](https://f-droid.org/packages/de.beowulf.libretranslater/) that uses the LibreTranslate API.
|
||||
- [Translate You](https://github.com/you-apps/TranslateYou) is a privacy focused translator app built with MD3 available [in F-Droid Store](https://f-droid.org/packages/com.bnyro.translate/) and uses the LibreTranslate API amongst other providers.
|
||||
- [LiTranslate](https://github.com/viktorkalyniuk/LiTranslate-iOS) is an iOS app [available on the App Store](https://apps.apple.com/us/app/litranslate/id1644385339) that uses the LibreTranslate API.
|
||||
|
||||
## Web browser
|
||||
|
@ -425,7 +426,7 @@ This is a list of public LibreTranslate instances, some require an API key. If y
|
|||
| URL | API Key Required | Links |
|
||||
| ----------------------------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------- |
|
||||
| [libretranslate.com](https://libretranslate.com) | :heavy_check_mark: | [ [Get API Key](https://portal.libretranslate.com) ] [ [Service Status](https://status.libretranslate.com/) ] |
|
||||
| [translate.flossboxin.org.in](https://translate.flossboxin.org.in/) | :heavy_check_mark: |
|
||||
| [translate.flossboxin.org.in](https://translate.flossboxin.org.in/) | | [ [Contact/eMail](mailto:dev@flossboxin.org.in) ] |
|
||||
|
||||
## TOR/i2p Mirrors
|
||||
|
||||
|
@ -682,6 +683,38 @@ Add this to an existing NGINX config or save it as `libretranslate` in the `/etc
|
|||
|
||||
</details>
|
||||
|
||||
### Can I run it as a systemd (default pip/python installed one)?
|
||||
|
||||
Yes, just create a service file in /etc/systemd/system and enable it to run at startup.
|
||||
The .env (environmant) file is optional based on your setup.
|
||||
Add the below to the file (change to your values as necessary) and name the file as "libretranslate.service)
|
||||
|
||||
```javascript
|
||||
[Unit]
|
||||
Description=LibreTranslate
|
||||
After=network.target
|
||||
[Service]
|
||||
User=root
|
||||
Type=idle
|
||||
Restart=always
|
||||
Environment="PATH=/usr/local/lib/python3.11/dist-packages/libretranslate"
|
||||
ExecStart=/usr/bin/python3 /usr/local/bin/libretranslate
|
||||
EnvironmentFile=/usr/local/lib/python3.11/dist-packages/libretranslate/.env
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
KillMode=mixed
|
||||
TimeoutStopSec=1
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
Once saved, reload the daemon & start the service:
|
||||
|
||||
```javascript
|
||||
systemctl daemon-reload
|
||||
systemctl start libretranslate.service
|
||||
systemctl enable libretranslate.service
|
||||
```
|
||||
|
||||
### Can I do batch translations?
|
||||
|
||||
Yes, pass an array of strings instead of a string to the `q` field:
|
||||
|
|
Loading…
Reference in a new issue