Shopware 向け glot
EC · コネクタ
glot は Shopware に直接接続します。コンテンツを読み取り、用語集とチェックを使って翻訳し、Shopware の言語に書き戻します。
プラットフォーム側の手順は、Shopware の画面のメニュー名に合わせて英語で記載しています。
Shopware を接続する
- In glot, open your project → Integrations → Shopware and fill in the connection form (the credentials and permissions it asks for are listed in the docs).
- Click Test connection, then Sync now: glot pulls your content, translates it with your glossary and validation rules, and writes each language back.
- Later changes sync automatically through the webhook URL shown on the card, or on the next scheduled sync.
別の方法:ユニバーサルタグ
Shopware 連携で対応していない部分をブラウザで翻訳するには、ユニバーサルタグを追加します。
- glot でプロジェクトを作成し、言語を追加します。
- glot Edge → サイト用タグを開き、サイトのアドレスを入力します。glot がサイトを翻訳してプレビューを表示します。タグを貼り付けたら、同じ画面でインストールを確認し、タグをオンにします。
- そのタブからタグをコピーします。プロジェクトと公開キー(data-key)はすでに入っています。下のタグはその形式の例です。
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>- In your plugin or theme, create src/Resources/views/storefront/layout/meta.html.twig.
- Start it with {% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}.
- Override {% block layout_head_javascript_hmr_mode %}, keep {{ parent() }}, and add the glot tag after it.
- Install/activate the extension and clear the cache (bin/console cache:clear).
必要なプラン
Works on self-hosted Shopware 6 (any edition). Shopware's docs offer no admin field for custom head scripts; on Shopware SaaS, plugin code cannot be uploaded and templates must ship as an app/theme.
glot の各プランの内容は料金ページをご覧ください。glot Edge(翻訳済み URL)は Growth プランに含まれ、Pro では限定トライアルを利用できます。
検索エンジン向けの翻訳済み URL
JavaScript を実行せずに検索エンジンがインデックスできる翻訳ページにするには、2 つの DNS レコードで glot Edge をドメインのサブドメイン(es.example.com)に置きます。
es.example.com. CNAME edge.glotlang.com.
_glot.es.example.com. TXT "<token shown in the dashboard>"Add the CNAME and TXT at your registrar or DNS provider. On Shopware SaaS, custom domains are added in Settings > System > Domains; the shopware.store default domain cannot be used.
glot Edge の仕組みよくある質問
- glot は Shopware のパートナーですか?
- いいえ。glot は独立しており、Shopware との提携や Shopware による推奨はありません。このガイドは Shopware の標準機能だけを使っています。
- glot は Shopware のコンテンツを変更しますか?
- 元のコンテンツはそのままです。glot は Shopware の言語フィールドに翻訳を書き込むので、公開前にそこで確認できます。
- 翻訳は検索エンジンにインデックスされますか?
- タグだけではほとんどされません。ブラウザで翻訳するため、検索エンジンが主にインデックスするのは元の言語です。言語ごとの URL を持つ翻訳ページには、glot Edge か、言語ごとに URL を公開するプラットフォームが必要です。
- Why must I keep {{ parent() }}?
- Without it the block's core Storefront JavaScript is removed and the shop stops working.
- I'm on Shopware SaaS. Can I add the tag?
- Not from a settings field. You need an app or theme that extends the template; check with your Shopware partner.
Shopware の公式ドキュメント
Shopware のサイトを翻訳する
プロジェクトを作成して言語を選び、上の手順に従ってください。
その他の連携:EC
Shopware は各所有者の商標です。glot は Shopware と提携していません。