logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: c05d2d02c2c930d03e90e6b7e725bd3529e743ad
parent c8fc821a0e9268816b4fcbb474a7299a8553a220
Author: nicole mikołajczyk <git@mkljczk.pl>
Date:   Tue, 16 Dec 2025 00:04:33 +0100

Use :list_behaviour_implementations for LanguageDetector and Translation providers

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>

Diffstat:

Achangelog.d/description.skip1+
Mconfig/description.exs11++---------
2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/changelog.d/description.skip b/changelog.d/description.skip @@ -0,0 +1 @@ +Use :list_behaviour_implementations for LanguageDetector and Translation providers diff --git a/config/description.exs b/config/description.exs @@ -3539,9 +3539,7 @@ config :pleroma, :config_description, [ %{ key: :provider, type: :module, - suggestions: [ - Pleroma.Language.LanguageDetector.Fasttext - ] + suggestions: {:list_behaviour_implementations, Pleroma.Language.LanguageDetector.Provider} }, %{ group: {:subgroup, Pleroma.Language.LanguageDetector.Fasttext}, @@ -3561,12 +3559,7 @@ config :pleroma, :config_description, [ %{ key: :provider, type: :module, - suggestions: [ - Pleroma.Language.Translation.Deepl, - Pleroma.Language.Translation.Libretranslate, - Pleroma.Language.Translation.Mozhi, - Pleroma.Language.Translation.TranslateLocally - ] + suggestions: {:list_behaviour_implementations, Pleroma.Language.Translation.Provider} }, %{ group: {:subgroup, Pleroma.Language.Translation.Deepl},