Alliance Auth LibreTranslate tool
Project description
AA-Translate-Tool
LibreTranslate Helpers for Alliance Auth.
https://github.com/LibreTranslate/LibreTranslate
Features
- AA-Discordbot Cog for translation of messages on discord.
Installation
-
Install and setup LibreTranslate from its docs, configure as required.
-
Install the app with your venv active or add it to your requirements.txt for Docker
pip install allianceauth-translate-tool
or
allianceauth-translate-tool==version
-
Add
'aatranslate',to your INSTALLED_APPS list in local.py. -
Add the below lines to your
local.pysettings file, Changing the contexts to yours.
## Settings for AA-Translate-Tool
# URL of the self hosted libretranslate instance
AA_TRANSLATIONS_URL = "http://URL_to_api:5000"
# Optional Api Key
AA_TRANSLATIONS_API_KEY= "i was generated from libretranslate"
# Languages we allow in the tool. list of ("Display Name", "language code https://libretranslate.com/languages") or leave as is for defaults
# AA_TRANSLATIONS_LANGUAGES = []
Usage
Libretranslate System Requirements
Seems to be CPU bound using around 2gb of memory. On a 2 core, 4gb instance it takes around a minute to translate 60 words.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file allianceauth_translate_tool-0.0.1.tar.gz.
File metadata
- Download URL: allianceauth_translate_tool-0.0.1.tar.gz
- Upload date:
- Size: 87.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4760c9ee76d3e221330015c259fedaf5de9789ad195022eac08e9628f4fe398f
|
|
| MD5 |
e30bddba4f43e3193e750a803228c2a8
|
|
| BLAKE2b-256 |
eaf77dae3312597f887f739caff8a92183462099682d52ebbc0dc1bb8635972a
|
File details
Details for the file allianceauth_translate_tool-0.0.1-py3-none-any.whl.
File metadata
- Download URL: allianceauth_translate_tool-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9b3971d6c0a124332b5449521833c3e2247c9d874041fbadf3a67fa7aeae216
|
|
| MD5 |
867f03c5531e28196fda817cca7f44fe
|
|
| BLAKE2b-256 |
0af58db7631b35dcfc5978e68f51411dca7dd9a1a217aa96e9ce1e885abd4082
|