Allow listing languages, setting source language (#192)
authorfloatingghost <hannah@coffee-and-dreams.uk>
Tue, 30 Aug 2022 14:58:54 +0000 (14:58 +0000)
committerfloatingghost <hannah@coffee-and-dreams.uk>
Tue, 30 Aug 2022 14:58:54 +0000 (14:58 +0000)
commitc3fde9577d5822243a7567a55cefa2fd2f289559
tree7238ce1b1c72cc7e923918f2d6d0bd29fba69152
parent25111bb407f9e94939160258f8a8ad59ed04f93f
Allow listing languages, setting source language (#192)

Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/192
lib/pleroma/akkoma/translators/deepl.ex
lib/pleroma/akkoma/translators/libre_translate.ex
lib/pleroma/akkoma/translators/translator.ex
lib/pleroma/web/akkoma_api/controllers/translation_controller.ex [new file with mode: 0644]
lib/pleroma/web/api_spec/operations/status_operation.ex
lib/pleroma/web/api_spec/operations/translate_operation.ex [new file with mode: 0644]
lib/pleroma/web/mastodon_api/controllers/status_controller.ex
lib/pleroma/web/router.ex
test/pleroma/translators/deepl_test.exs
test/pleroma/translators/libre_translate_test.exs