akkoma/test/pleroma
ilja c092fc9fd6
ci/woodpecker/push/woodpecker Pipeline is pending Details
Add translation module for Argos Translate (#351)
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: #351
Co-authored-by: ilja <akkoma.dev@ilja.space>
Co-committed-by: ilja <akkoma.dev@ilja.space>
2022-12-19 13:06:39 +00:00
..
activity Purge Rejected Follow requests in daily task (#334) 2022-12-03 23:17:43 +00:00
akkoma Add translation module for Argos Translate (#351) 2022-12-19 13:06:39 +00:00
collections GTS: cherry-picks and collection usage (#186) 2022-08-27 18:05:48 +00:00
config Test removed HTTP adapter 2022-12-11 23:50:31 +00:00
conversation fix flaky participation_test.exs 2022-10-23 12:33:31 +02:00
docs backend-i18n (#121) 2022-07-27 21:56:59 +00:00
ecto_type/activity_pub/object_validators Pipeline Ingestion: Note 2021-04-05 19:19:11 +02:00
emails Fix instance name in email test 2022-11-04 18:42:12 +00:00
emoji add changelog entry for custom emoji 2022-12-16 13:20:48 +00:00
http Add option to modify HTTP pool size 2022-12-16 18:33:00 +00:00
instances Don't mess with the cache on metadata update 2022-11-08 10:39:01 +00:00
integration Disconnect streaming sessions when token is revoked 2022-08-27 19:07:48 +01:00
mfa Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
migration_helper purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
object allow http AS profile in ld+json header 2022-12-12 19:06:04 +00:00
password Pbkdf2: Use it everywhere. 2021-01-14 15:06:16 +01:00
repo/migrations purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
search Fix false error in meilisearch index (#221) 2022-09-20 10:36:21 +00:00
translators add seperate source and dest entries in language listing (#193) 2022-08-30 16:59:33 +00:00
upload Update eblurhash to a non-bugged version (#34) 2022-07-02 14:05:32 +00:00
uploaders Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
user Allow dashes in domain name search 2022-12-06 10:57:10 +00:00
web remove now-unused test 2022-12-17 23:21:24 +00:00
workers and i yoink (#275) 2022-11-14 15:07:26 +00:00
activity_test.exs Merge branch 'features/validators-note' into 'develop' 2021-06-01 01:51:38 +00:00
announcement_read_relationship_test.exs Merge branch 'from/upstream-develop/tusooa/server-announcements' into 'develop' (#85) 2022-07-18 13:08:36 +00:00
announcement_test.exs Merge branch 'from/upstream-develop/tusooa/server-announcements' into 'develop' (#85) 2022-07-18 13:08:36 +00:00
application_requirements_test.exs Don't crash when email settings are invalid 2021-05-03 14:43:14 -05:00
bookmark_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
captcha_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
config_db_test.exs Remove quack, ensure adapter is finch 2022-12-11 23:22:35 +00:00
config_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
conversation_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
emoji_test.exs Fix emoji qualification (#124) 2022-07-28 12:02:36 +00:00
filter_test.exs support for expires_in/expires_at in filters 2021-01-26 08:27:45 +03:00
following_relationship_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
formatter_test.exs CI: Bump lint stage to elixir-1.12 2021-10-06 08:11:05 +02:00
frontend_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
hashtag_test.exs [#3213] Ignoring of blank elements from objects.data->tag. 2021-01-21 20:50:06 +03:00
healthcheck_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
html_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
http_test.exs mix format 2022-06-11 16:14:31 +01:00
instances_test.exs Add Signed Fetch Statistics (#312) 2022-11-26 19:22:56 +00:00
job_queue_monitor_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
keys_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
list_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
marker_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
mfa_test.exs Pbkdf2: Use it everywhere. 2021-01-14 15:06:16 +01:00
moderation_log_test.exs CI: Bump lint stage to elixir-1.12 2021-10-06 08:11:05 +02:00
notification_test.exs optimise notifications query 2022-10-11 11:40:43 +01:00
object_test.exs Merge remote-tracking branch 'remotes/origin/develop' into feature/object-hashtags-rework 2021-01-21 20:20:35 +03:00
otp_version_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
pagination_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
registration_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
repo_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
report_note_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
reverse_proxy_test.exs Use finch everywhere (#33) 2022-07-04 16:30:38 +00:00
runtime_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
safe_jsonb_set_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
scheduled_activity_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
signature_test.exs giant massive dep upgrade and dialyxir-found error emporium (#371) 2022-12-14 12:38:48 +00:00
stats_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
upload_test.exs Post editing (#202) 2022-09-06 19:24:02 +00:00
user_invite_token_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
user_relationship_test.exs fix flaky test_user_relationship_test.exs:81 2022-10-23 13:31:01 +02:00
user_search_test.exs fix tests broken by relay defaults changing (#314) 2022-11-26 20:45:47 +00:00
user_test.exs Remove hackney/gun in favour of finch 2022-12-11 19:19:31 +00:00
utils_test.exs extend custom runtime system (#108) 2022-07-24 16:42:43 +00:00
xml_builder_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00