Strapi 向け glot
CMS · コネクタ
glot は Strapi に直接接続します。コンテンツを読み取り、用語集とチェックを使って翻訳し、Strapi の言語に書き戻します。
プラットフォーム側の手順は、Strapi の画面のメニュー名に合わせて英語で記載しています。
Strapi を接続する
- Enable localization on your content types (the i18n plugin, built into Strapi 5) and add your locales.
- In Strapi, go to Settings → API Tokens and create a token (Full access is simplest).
- In glot, open your project → Integrations → Strapi and paste the server URL and the token.
- Click Sync now. On Strapi 5, translated locales are written as drafts unless you turn publishing on.
- Optional: in Settings → Webhooks, add the card's webhook URL for the events Entry: create, update, publish.
別の方法:ユニバーサルタグ
Strapi 連携で対応していない部分をブラウザで翻訳するには、ユニバーサルタグを追加します。
- glot でプロジェクトを作成し、言語を追加します。
- glot Edge → サイト用タグを開き、サイトのアドレスを入力します。glot がサイトを翻訳してプレビューを表示します。タグを貼り付けたら、同じ画面でインストールを確認し、タグをオンにします。
- そのタブからタグをコピーします。プロジェクトと公開キー(data-key)はすでに入っています。下のタグはその形式の例です。
glot タグ
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>- Open your front-end project (for example app/layout.tsx in Next.js, or your framework's root HTML template).
- Paste the glot tag in <head>.
- Deploy the front end.
必要なプラン
Not a Strapi setting; it is your front-end code. Works with self-hosted Strapi and Strapi Cloud.
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 Strapi. Add the CNAME and TXT at your DNS provider. Not possible on a host's free subdomain.
glot Edge の仕組みよくある質問
- glot は Strapi のパートナーですか?
- いいえ。glot は独立しており、Strapi との提携や Strapi による推奨はありません。このガイドは Strapi の標準機能だけを使っています。
- glot は Strapi のコンテンツを変更しますか?
- 元のコンテンツはそのままです。glot は Strapi の言語フィールドに翻訳を書き込むので、公開前にそこで確認できます。
- 翻訳は検索エンジンにインデックスされますか?
- タグだけではほとんどされません。ブラウザで翻訳するため、検索エンジンが主にインデックスするのは元の言語です。言語ごとの URL を持つ翻訳ページには、glot Edge か、言語ごとに URL を公開するプラットフォームが必要です。
- Do I put the tag in the Strapi admin panel?
- No. The admin panel is for editors. Visitors see your front end, so the tag goes there.
Strapi の公式ドキュメント
Strapi のサイトを翻訳する
プロジェクトを作成して言語を選び、上の手順に従ってください。
その他の連携:CMS
Strapi は各所有者の商標です。glot は Strapi と提携していません。