Skip to main content

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.py settings 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

discord context menu showing app usage

bot response to clicking the app in the context menu

bot response

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

allianceauth_translate_tool-0.0.1.tar.gz (87.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

allianceauth_translate_tool-0.0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file allianceauth_translate_tool-0.0.1.tar.gz.

File metadata

File hashes

Hashes for allianceauth_translate_tool-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4760c9ee76d3e221330015c259fedaf5de9789ad195022eac08e9628f4fe398f
MD5 e30bddba4f43e3193e750a803228c2a8
BLAKE2b-256 eaf77dae3312597f887f739caff8a92183462099682d52ebbc0dc1bb8635972a

See more details on using hashes here.

File details

Details for the file allianceauth_translate_tool-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for allianceauth_translate_tool-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9b3971d6c0a124332b5449521833c3e2247c9d874041fbadf3a67fa7aeae216
MD5 867f03c5531e28196fda817cca7f44fe
BLAKE2b-256 0af58db7631b35dcfc5978e68f51411dca7dd9a1a217aa96e9ce1e885abd4082

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page