Add languauge_detection
to instance features
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
1f63fbd4b6
commit
038c6aa24f
2 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,12 @@
|
||||||
defmodule Pleroma.Language.LanguageDetector do
|
defmodule Pleroma.Language.LanguageDetector do
|
||||||
@words_threshold 4
|
@words_threshold 4
|
||||||
|
|
||||||
|
def configured? do
|
||||||
|
provider = get_provider()
|
||||||
|
|
||||||
|
!!provider and provider.configured?
|
||||||
|
end
|
||||||
|
|
||||||
def missing_dependencies do
|
def missing_dependencies do
|
||||||
provider = get_provider()
|
provider = get_provider()
|
||||||
|
|
||||||
|
|
|
@ -177,6 +177,9 @@ def features do
|
||||||
if Pleroma.Language.Translation.configured?() do
|
if Pleroma.Language.Translation.configured?() do
|
||||||
"translation"
|
"translation"
|
||||||
end,
|
end,
|
||||||
|
if Pleroma.Language.LanguageDetector.configured?() do
|
||||||
|
"language_detection"
|
||||||
|
end,
|
||||||
"events",
|
"events",
|
||||||
"multitenancy"
|
"multitenancy"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue