akkoma/docs/docs
ilja c092fc9fd6 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: AkkomaGang/akkoma#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
..
administration Remove legacy references to FE that is not officially supported 2022-12-16 08:08:00 -06:00
configuration Add translation module for Argos Translate (#351) 2022-12-19 13:06:39 +00:00
css Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
development Test removed HTTP adapter 2022-12-11 23:50:31 +00:00
fonts Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
images Doc branding 2022-12-05 13:45:36 +00:00
installation Small improvements to the Gentoo installation isntructions 2022-12-04 16:37:49 +01:00
clients.md docs: Update list of clients (#284) 2022-11-18 11:19:37 +00:00
index.md docs: Update links to list of akkoma instances 2022-11-15 07:51:19 -05:00
support.include Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00