add deepl config

This commit is contained in:
FloatingGhost 2022-08-28 20:38:06 +01:00
parent 722e56b308
commit f2169352f1
4 changed files with 29 additions and 0 deletions

View file

@ -843,6 +843,11 @@
}
}
config :pleroma, :deepl,
# either :free or :pro
tier: :free,
api_key: ""
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"

View file

@ -3349,5 +3349,25 @@
]
}
]
},
%{
group: :pleroma,
key: :deepl,
type: :group,
description: "DeepL settings.",
children: [
%{
key: :tier,
type: :atom,
description: "API Tier",
suggestion: [:free, :pro]
},
%{
key: :api_key,
type: :string,
description: "API key for DeepL",
suggestion: [nil]
}
]
}
]

View file

@ -161,6 +161,9 @@ defp deps do
{:ueberauth, "~> 0.4"},
{:linkify,
git: "https://akkoma.dev/AkkomaGang/linkify.git", branch: "bugfix/line-ending-buffer"},
{:deep_lex,
git: "https://akkoma.dev/AkkomaGang/deep_lex.git",
ref: "fd72e36419848138ef257b52867e7504a2a7808b"},
{:http_signatures, "~> 0.1.1"},
{:telemetry, "~> 0.3"},
{:poolboy, "~> 1.5"},

View file

@ -22,6 +22,7 @@
"custom_base": {:hex, :custom_base, "0.2.1", "4a832a42ea0552299d81652aa0b1f775d462175293e99dfbe4d7dbaab785a706", [:mix], [], "hexpm", "8df019facc5ec9603e94f7270f1ac73ddf339f56ade76a721eaa57c1493ba463"},
"db_connection": {:hex, :db_connection, "2.4.2", "f92e79aff2375299a16bcb069a14ee8615c3414863a6fef93156aee8e86c2ff3", [:mix], [{:connection, "~> 1.0", [hex: :connection, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "4fe53ca91b99f55ea249693a0229356a08f4d1a7931d8ffa79289b145fe83668"},
"decimal": {:hex, :decimal, "2.0.0", "a78296e617b0f5dd4c6caf57c714431347912ffb1d0842e998e9792b5642d697", [:mix], [], "hexpm", "34666e9c55dea81013e77d9d87370fe6cb6291d1ef32f46a1600230b1d44f577"},
"deep_lex": {:git, "https://akkoma.dev/AkkomaGang/deep_lex.git", "fd72e36419848138ef257b52867e7504a2a7808b", [ref: "fd72e36419848138ef257b52867e7504a2a7808b"]},
"deep_merge": {:hex, :deep_merge, "1.0.0", "b4aa1a0d1acac393bdf38b2291af38cb1d4a52806cf7a4906f718e1feb5ee961", [:mix], [], "hexpm", "ce708e5f094b9cd4e8f2be4f00d2f4250c4095be93f8cd6d018c753894885430"},
"earmark": {:hex, :earmark, "1.4.26", "f0e3c3d5c278a6d448ad8c27ab0ecdec9c57a7710553138c56af220a6330a4fd", [:mix], [{:earmark_parser, "~> 1.4.26", [hex: :earmark_parser, repo: "hexpm", optional: false]}], "hexpm", "e1231882b56bece0692af33f0959f06c9cd580c2dc2ecb1dc9f16f2750fa78c5"},
"earmark_parser": {:hex, :earmark_parser, "1.4.26", "f4291134583f373c7d8755566122908eb9662df4c4b63caa66a0eabe06569b0a", [:mix], [], "hexpm", "48d460899f8a0c52c5470676611c01f64f3337bad0b26ddab43648428d94aabc"},