Support translateLocally translation provider

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk 2025-10-02 13:36:30 +02:00
commit ed1cfd6f5e
4 changed files with 199 additions and 1 deletions

View file

@ -3558,7 +3558,8 @@ config :pleroma, :config_description, [
type: :module,
suggestions: [
Pleroma.Language.Translation.Deepl,
Pleroma.Language.Translation.Libretranslate
Pleroma.Language.Translation.Libretranslate,
Pleroma.Language.Translation.TranslateLocally
]
},
%{
@ -3588,6 +3589,14 @@ config :pleroma, :config_description, [
label: "LibreTranslate API Key",
type: :string,
suggestions: ["YOUR_API_KEY"]
},
%{
group: {:subgroup, Pleroma.Language.Translation.TranslateLocally},
key: :intermediate_language,
label:
"translateLocally intermediate language (used when direct source->target model is not available)",
type: :string,
suggestions: ["en"]
}
]
}