technicat / fedicat

moved to codeberg
https://codeberg.org/technicat/fedicat
MIT License
11 stars 1 forks source link

akkoma - getTranslations #1003

Closed technicat closed 4 months ago

technicat commented 4 months ago

GET /api/v1/akkoma/translation/languages

technicat commented 4 months ago

https://docs.akkoma.dev/stable/development/API/akkoma_api/

/api/v1/akkoma/translation/languages[¶](https://docs.akkoma.dev/stable/development/API/akkoma_api/#apiv1akkomatranslationlanguages)
Returns available source and target languages for automated text translation[¶](https://docs.akkoma.dev/stable/development/API/akkoma_api/#returns-available-source-and-target-languages-for-automated-text-translation)

    Method: GET
    Authentication: required
    Params: none
    Response: JSON
    Example response:

{
  "source": [
    {"code":"LV", "name":"Latvian"},
    {"code":"ZH", "name":"Chinese (traditional)"},
    {"code":"EN-US", "name":"English (American)"}
  ],
  "target": [
    {"code":"EN-GB", "name":"English (British)"},
    {"code":"JP", "name":"Japanese"}
  ]
}