Use :list_behaviour_implementations for LanguageDetector and Translation providers
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
parent
c8fc821a0e
commit
c05d2d02c2
2 changed files with 3 additions and 9 deletions
1
changelog.d/description.skip
Normal file
1
changelog.d/description.skip
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Use :list_behaviour_implementations for LanguageDetector and Translation providers
|
||||||
|
|
@ -3539,9 +3539,7 @@ config :pleroma, :config_description, [
|
||||||
%{
|
%{
|
||||||
key: :provider,
|
key: :provider,
|
||||||
type: :module,
|
type: :module,
|
||||||
suggestions: [
|
suggestions: {:list_behaviour_implementations, Pleroma.Language.LanguageDetector.Provider}
|
||||||
Pleroma.Language.LanguageDetector.Fasttext
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
%{
|
%{
|
||||||
group: {:subgroup, Pleroma.Language.LanguageDetector.Fasttext},
|
group: {:subgroup, Pleroma.Language.LanguageDetector.Fasttext},
|
||||||
|
|
@ -3561,12 +3559,7 @@ config :pleroma, :config_description, [
|
||||||
%{
|
%{
|
||||||
key: :provider,
|
key: :provider,
|
||||||
type: :module,
|
type: :module,
|
||||||
suggestions: [
|
suggestions: {:list_behaviour_implementations, Pleroma.Language.Translation.Provider}
|
||||||
Pleroma.Language.Translation.Deepl,
|
|
||||||
Pleroma.Language.Translation.Libretranslate,
|
|
||||||
Pleroma.Language.Translation.Mozhi,
|
|
||||||
Pleroma.Language.Translation.TranslateLocally
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
%{
|
%{
|
||||||
group: {:subgroup, Pleroma.Language.Translation.Deepl},
|
group: {:subgroup, Pleroma.Language.Translation.Deepl},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue