本文へスキップ

Contentful 向け glot

CMS · コネクタ

glot は Contentful に直接接続します。コンテンツを読み取り、用語集とチェックを使って翻訳し、Contentful の言語に書き戻します。

この手順は Contentful の公式ドキュメントで確認できませんでした。利用する前に Contentful のヘルプセンターで確認してください。

プラットフォーム側の手順は、Contentful の画面のメニュー名に合わせて英語で記載しています。

Contentful を接続する

  1. In Contentful, add your languages in Settings → Locales, and switch on Enable localization of this field for the fields to translate.
  2. Copy the Space ID (Settings → General settings) and create a personal access token (Settings → CMA tokens) for a user who can edit entries.
  3. In glot, open your project → Integrations → Contentful and paste the Space ID, the token and the environment (master if empty).
  4. Click Sync now. Translated entries stay drafts until you publish them.
  5. Optional: in Settings → Webhooks, add the card's webhook URL with the triggers Entry: save, auto save, publish.
コネクタの詳しいドキュメント

別の方法:ユニバーサルタグ

Contentful 連携で対応していない部分をブラウザで翻訳するには、ユニバーサルタグを追加します。

  1. glot でプロジェクトを作成し、言語を追加します。
  2. glot Edge → サイト用タグを開き、サイトのアドレスを入力します。glot がサイトを翻訳してプレビューを表示します。タグを貼り付けたら、同じ画面でインストールを確認し、タグをオンにします。
  3. そのタブからタグをコピーします。プロジェクトと公開キー(data-key)はすでに入っています。下のタグはその形式の例です。
glot タグ
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>
  1. Open your front-end project (for example app/layout.tsx in Next.js, or your framework's root HTML template).
  2. Paste the glot tag in <head>.
  3. Deploy the front end.
サイト用タグのガイド

必要なプラン

Not a Contentful setting; it is your front-end code. No Contentful plan limit.

glot の各プランの内容は料金ページをご覧ください。glot Edge(翻訳済み URL)は Growth プランに含まれ、Pro では限定トライアルを利用できます。

検索エンジン向けの翻訳済み URL

JavaScript を実行せずに検索エンジンがインデックスできる翻訳ページにするには、2 つの DNS レコードで glot Edge をドメインのサブドメイン(es.example.com)に置きます。

DNS レコード(TXT トークンは glot Edge → セットアップに表示されます)
es.example.com.        CNAME  edge.glotlang.com.
_glot.es.example.com.  TXT    "<token shown in the dashboard>"

The custom domain belongs to your front-end host, not Contentful. Add the CNAME and TXT at your DNS provider. Not possible on a host's free subdomain.

glot Edge の仕組み

よくある質問

glot は Contentful のパートナーですか?
いいえ。glot は独立しており、Contentful との提携や Contentful による推奨はありません。このガイドは Contentful の標準機能だけを使っています。
glot は Contentful のコンテンツを変更しますか?
元のコンテンツはそのままです。glot は Contentful の言語フィールドに翻訳を書き込むので、公開前にそこで確認できます。
翻訳は検索エンジンにインデックスされますか?
タグだけではほとんどされません。ブラウザで翻訳するため、検索エンジンが主にインデックスするのは元の言語です。言語ごとの URL を持つ翻訳ページには、glot Edge か、言語ごとに URL を公開するプラットフォームが必要です。
Does glot translate the content stored in Contentful?
The tag translates the pages your front end renders. Entries in Contentful are not changed.

Contentful の公式ドキュメント

Contentful のサイトを翻訳する

プロジェクトを作成して言語を選び、上の手順に従ってください。

Contentful は各所有者の商標です。glot は Contentful と提携していません。