Docs/Plugins

Translation plugin

Translate text and messages with /translate, and optionally add a flag reaction on messages that are not in your server’s default language. Pressing that reaction replies with a translation embed.

No API key is required. Dreamliner uses Google’s public translate endpoint via google-translate-api-x. That endpoint can rate-limit under heavy use.

#Server default language

Set top-level default_language in guild config (dashboard Server settings), default en:

yaml
default_language: en

This is the target for /translate when no language is chosen, and the flag used by auto-translate.

#Configuration

yaml
plugins:
  translation:
    enabled: true
    config:
      auto_translate: false
      ignored_channels: []
FieldDescription
auto_translateDreamliner One exclusive. When true, react with the default-language flag on messages that look like another language. Default false.
ignored_channelsChannel IDs where auto-translate is skipped.

#Commands

CommandPermissionDescription
/translatecan_translateTranslate text or a message_id (raw ID in this channel, or a Discord message link). Optional language (autocomplete); otherwise uses the server default.

Grant can_translate to a Dreamliner Role on the dashboard's Roles page (or /permissions role grant) — see permissions.md.

#Auto-translate

Auto-translate is a Dreamliner One exclusive.

  1. Subscribe to Dreamliner One for the server.
  2. Enable auto_translate in the dashboard or YAML.
  3. Members post in any channel except those in ignored_channels.
  4. If Dreamliner detects a different language than default_language, it adds that language’s flag reaction.
  5. Anyone can press the reaction; Dreamliner posts a silent plain-text translation as the original author (via webhook), with a small “Translated with Dreamliner” footer. The bot needs Manage Webhooks in that channel for the author avatar/name; otherwise it falls back to a plain bot reply.

/translate stays available without Dreamliner One. Auto-translate flag reactions do not run unless Dreamliner One is active.

Very short messages (under 4 characters) are skipped for detection noise.

#Examples

yaml
default_language: es

plugins:
  translation:
    enabled: true
    config:
      auto_translate: true
      ignored_channels:
        - "1111111111111111111"

Or use Discord:

  1. Set Default language on the dashboard Server page.
  2. Open the Translation plugin → enable Auto translate.
  3. /translate text:Hola language:English