Deepl: use :base_url

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-11-05 21:41:58 +01:00
commit fedae008c8
3 changed files with 36 additions and 16 deletions

View file

@ -3540,10 +3540,10 @@ config :pleroma, :config_description, [
},
%{
group: {:subgroup, Pleroma.Language.Translation.Deepl},
key: :plan,
label: "DeepL plan",
type: {:dropdown, :atom},
suggestions: [:free, :pro]
key: :base_url,
label: "DeepL base URL",
type: :string,
suggestions: ["https://api-free.deepl.com", "https://api.deepl.com"]
},
%{
group: {:subgroup, Pleroma.Language.Translation.Deepl},
@ -3555,7 +3555,7 @@ config :pleroma, :config_description, [
%{
group: {:subgroup, Pleroma.Language.Translation.Libretranslate},
key: :base_url,
label: "LibreTranslate plan",
label: "LibreTranslate instance URL",
type: :string,
suggestions: ["https://libretranslate.com"]
},