Skip to content
Mitsuru Mutaguchi edited this page Oct 1, 2021 · 4 revisions

(今後対応予定:https://github.com/opensource-workshop/connect-cms/pull/989)
WYSIWYGの翻訳プラグインから呼び出している、外部サービスAPIの仕様を記載します。

Request

HTTP request

POST

Parameters

Parameter name Value Required Description
api_key string Required APIキーによってAPIを使えるか判定します。
text string Required 翻訳前テキスト(日本語)です。
target_language string Required 翻訳後の言語です。
選択値は public/js/tinymce/plugins/translate/plugin.min.js の target_language から取得します。

Response

正常時、テキスト形式で返す。

(後で書く)

Error-Response

エラー時、テキスト形式で返す。

(後で書く)
Clone this wiki locally