Merge branch 'description-improvement' into 'develop'

Use :list_behaviour_implementations for LanguageDetector and Translation providers

See merge request pleroma/pleroma!4407
This commit is contained in:
nicole mikołajczyk 2025-12-16 20:53:52 +01:00
commit 8c9e130cc9
2 changed files with 3 additions and 9 deletions

View file

@ -0,0 +1 @@
Use :list_behaviour_implementations for LanguageDetector and Translation providers

View file

@ -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},