Add languauge_detection to instance features

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-07-31 22:00:22 +02:00
parent 1f63fbd4b6
commit 038c6aa24f
2 changed files with 9 additions and 0 deletions

View file

@ -5,6 +5,12 @@
defmodule Pleroma.Language.LanguageDetector do
@words_threshold 4
def configured? do
provider = get_provider()
!!provider and provider.configured?
end
def missing_dependencies do
provider = get_provider()

View file

@ -177,6 +177,9 @@ def features do
if Pleroma.Language.Translation.configured?() do
"translation"
end,
if Pleroma.Language.LanguageDetector.configured?() do
"language_detection"
end,
"events",
"multitenancy"
]