Skip to content

Solar-Helix-Independent-Transport/allianceauth-translate-tool

Repository files navigation

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 the app with your venv active
pip install allianceauth-translate-tool
  • 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")
AA_TRANSLATIONS_LANGUAGES = [] # [("українець", "uk")]

Usage

discord context menu showing app usage bot response to clicking the app in the context menu

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published