Discourse 翻訳

:discourse2: 概要 Discourse Translator は、Microsoft、Google、または Yandex の翻訳 API を使用して Discourse 上の投稿を翻訳します。
:hammer_and_wrench: リポジトリリンク https://github.com/discourse/discourse-translator
:open_book: インストールガイド Discourse へのプラグインインストール方法

機能

  • 各投稿は、ロケールごとに 1 回だけ翻訳されます。これにより :moneybag: が節約されます
    • 言語検出も投稿ごとに 1 回実行されることに注意してください。古い大規模なフォーラムでこれを有効にする際は注意してください。
  • アクセス トークンはサーバー側でキャッシュされ、翻訳が高速化されます。
  • 翻訳はデフォルトで 1 分あたり 3 回にレート制限されています(管理者はこの値を設定できます)

サポートされている翻訳サービス

設定手順

Microsoft
  1. Azure 上の Microsoft Translator API の手順に従って、サブスクリプション キーを取得します。利用可能なサブスクリプション オファーからいずれかを選択できます。

  2. Discourse で、[管理者 > 設定 > プラグイン] に移動し、上記の手順で取得したサブスクリプション キーを入力します。

  1. Discourse で、[管理者 > 設定 > 基本設定] に移動し、ユーザー ロケールの許可を有効にします。
Google Translator
  1. https://console.developers.google.com へ移動します

  2. [マイプロジェクト] をクリックします

  1. :heavy_plus_sign: をクリックして新しいプロジェクトを作成します

  1. プロジェクト名を入力し、[作成] をクリックします

  2. API を有効にする を選択し、Google Cloud Translator API を検索します。[有効化] ボタンを見つけ、クリックして API を有効にします。Google Translator API には無料枠がないため、課金を有効にするよう促される場合があります。

  3. 完了したら、左側のメニューで [認証情報] をクリックします

  1. [認証情報の作成] をクリックし、[API キー] を選択します。API キーをコピーし、Discourse の translator google api key サイト設定に貼り付けます。

  2. Discourse で、[管理者 > 設定 > 基本設定] に移動し、ユーザー ロケールの許可を有効にします。

設定項目

名前 説明
translator enabled 投稿のインライン翻訳を許可します。
translator 翻訳サービスのプロバイダー。
translator azure subscription key Azure サブスクリプション キー
translator azure region Azure リージョン
translator azure custom subdomain Azure Cognitive Services に仮想ネットワークまたはファイアウォールを使用している場合に必要です。注意:カスタムエンドポイント全体ではなく、カスタムサブドメインのみを入力してください。
translator aws region AWS リージョン
translator aws key id AWS キー ID
translator aws secret access AWS シークレットアクセスキー
translator aws iam role AWS IAM ロール
translator google api key Google API キー
translator yandex api key Yandex API キー
translator libretranslate endpoint LibreTranslate エンドポイント
translator libretranslate api key LibreTranslate API キー
max translations per minute 一般ユーザーが 1 分あたりに実行できる翻訳の数。
restrict translation by group 許可されたグループのみが翻訳できるように制限します
restrict translation by poster group 許可されたユーザーが作成した投稿のみ翻訳できるように制限します

既知の問題

  • discourse-poll プラグインによって生成された投票内のテキストは翻訳されません。
  • 翻訳時に画像が拡大されます。

:discourse2: 弊社でホストされていますか? このプラグインは、当社のエンタープライズプランでご利用いただけます。

「いいね!」 103
Advice for bilingual communities
Inline translation of posts into another language
Language Translation
Can we have have one post with two different language
Plugin for signatures?
Translate plugin installed, but no translate button
LibreTranslate Plugin -- Free and Open Source Translation API
Discourse Translator plugin is not showing for non-logged in users
What exactly are the effects of "allow user locale"
DeepL integration for Translator plugin
How do you use Discourse AI? Tell us and make it even better!
How do I get the forum here in German
Is Google translate really so expensive?
Anyone migrated to version 3 of Microsoft Translator API yet?
Moving up the translator icon
Image zoom is not working
Translating text in polls
Yandex Translation Service
Anyone Using Discourse Translator Plugin on small forum, Cost/month?
FYI, Full translation of Discourse including posts is possible
Mute ALL other languages
How to install a plugin on Discourse-hosted-Discourse?
Make a multi-language forum
How to handle users that don't really read the answers they get?
Localized email templates
Translates to user's local language
DeepL integration for Translator plugin
Javascript pop up block help
No errors, instance not coming back up after rebuild
DeepL support for Discourse Translator
Getting user profile custom field via JS
Google Translate shows "blank" page
What exactly are the effects of "allow user locale"
Virtual Keyboard hides critical editor buttons for 3.3.0-beta
Translation from Lugandan yields uncaught 500 error (in a different Discourse)
Is Automatic Translation for Most Content Now Official?
Everything is translated, help!
Virtual Keyboard hides critical editor buttons for 3.3.0-beta
Translation support about the topic content
Translates to user's local language
Structuring a multilingual community
Translate email notifications and digests into user preferred locale language
Implementing In-House Translation Features on Discourse
Include translated posts in search?
Translate email notifications and digests into user preferred locale language
Changing default language will not change the site TITLE or DESCRIPTION!
Yandex Translation Service
Simple idea for translator-assisted bilingual forum
MKJ's Opinionated Discourse Deployment Configuration
Help which plugin is in the screenshot
Übersetzung wie hier auf Meta