Support translateLocally translation provider
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
parent
8f9a139ba1
commit
ed1cfd6f5e
4 changed files with 199 additions and 1 deletions
|
|
@ -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"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue