mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2025-01-24 06:38:48 +00:00
c092fc9fd6
Argos Translate is a Python module for translation and can be used as a command line tool. This is also the engine for LibreTranslate, for which we already have a module. Here we can use the engine directly from our server without doing requests to a third party or having to install our own LibreTranslate webservice (obviously you do have to install Argos Translate). One thing that's currently still missing from Argos Translate is auto-detection of languages (see <https://github.com/argosopentech/argos-translate/issues/9>). For now, when no source language is provided, we just return the text unchanged, supposedly translated from the target language. That way you get a near immediate response in pleroma-fe when clicking Translate, after which you can select the source language from a dropdown. Argos Translate also doesn't seem to handle html very well. Therefore we give admins the option to strip the html before translating. I made this an option because I'm unsure if/how this will change in the future. Co-authored-by: ilja <git@ilja.space> Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/351 Co-authored-by: ilja <akkoma.dev@ilja.space> Co-committed-by: ilja <akkoma.dev@ilja.space> |
||
---|---|---|
.. | ||
activity | ||
akkoma | ||
captcha | ||
collections | ||
config | ||
conversation | ||
docs | ||
ecto_type | ||
emails | ||
emoji | ||
helpers | ||
http | ||
instances | ||
mfa | ||
migration_helper | ||
migrators | ||
object | ||
password | ||
reverse_proxy | ||
search | ||
tests | ||
upload | ||
uploaders | ||
user | ||
web | ||
workers | ||
activity.ex | ||
announcement.ex | ||
announcement_read_relationship.ex | ||
application.ex | ||
application_requirements.ex | ||
bookmark.ex | ||
caching.ex | ||
captcha.ex | ||
clippy.ex | ||
config.ex | ||
config_db.ex | ||
constants.ex | ||
conversation.ex | ||
counter_cache.ex | ||
data_migration.ex | ||
delivery.ex | ||
ecto_enums.ex | ||
emoji-test.txt | ||
emoji.ex | ||
filter.ex | ||
following_relationship.ex | ||
formatter.ex | ||
frontend.ex | ||
hashtag.ex | ||
healthcheck.ex | ||
html.ex | ||
http.ex | ||
instances.ex | ||
job_queue_monitor.ex | ||
jwt.ex | ||
keys.ex | ||
list.ex | ||
logging.ex | ||
maintenance.ex | ||
maps.ex | ||
marker.ex | ||
mfa.ex | ||
moderation_log.ex | ||
notification.ex | ||
object.ex | ||
object_tombstone.ex | ||
otp_version.ex | ||
pagination.ex | ||
password_reset_token.ex | ||
registration.ex | ||
release_tasks.ex | ||
repo.ex | ||
report_note.ex | ||
reverse_proxy.ex | ||
scheduled_activity.ex | ||
search.ex | ||
signature.ex | ||
stats.ex | ||
thread_mute.ex | ||
upload.ex | ||
user.ex | ||
user_invite_token.ex | ||
user_note.ex | ||
user_relationship.ex | ||
utils.ex | ||
web.ex | ||
xml_builder.ex |