@alex @tony @curtis you only need to configure it in prod.secret.exs. the following needs to be configured:
config :pleroma, Pleroma.Language.LanguageDetector, provider: Pleroma.Language.LanguageDetector.Fasttext config :pleroma, Pleroma.Language.LanguageDetector.Fasttext, model: "/usr/share/fasttext/lid.176.bin" config :pleroma, Pleroma.Language.Translation, provider: Pleroma.Language.Translation.Deepl config :pleroma, Pleroma.Language.Translation.Deepl, base_url: "https://api-free.deepl.com", api_key: "XXXXXXX-XXX-XXX-XXXXXXX-XXXX"make sure you change the location for Pleroma.Language.LanguageDetector.Fasttext to match your system which you can download from https://dl.fbaipublicfiles.com/fasttext/supervised-models/lid.176.bin
@tassoman Not sure if you can set it through AdminFE. Here’s what my config looks like:
# Translation service config :pleroma, Pleroma.Language.Translation, provider: Pleroma.Language.Translation.Deepl config :pleroma, Pleroma.Language.Translation.Deepl, base_url: "https://api-free.deepl.com", api_key: "API_KEY_HERE" # https://www.deepl.com/en/pro-api#api-pricing config :pleroma, Pleroma.Language.LanguageDetector, provider: Pleroma.Language.LanguageDetector.Fasttext config :pleroma, Pleroma.Language.LanguageDetector.Fasttext, model: "/usr/share/fasttext/lid.176.bin" # https://fasttext.cc/docs/en/language-identification.htmlGNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.