Aller au contenu

glot pour Shopify

E-commerce · Connecteur

glot se connecte directement à Shopify : il lit votre contenu, le traduit avec votre glossaire et vos vérifications, puis écrit les traductions dans les langues de Shopify.

Les étapes propres à la plateforme sont en anglais, avec les noms de menus de l’interface de Shopify.

Connecter Shopify

  1. In glot, open your project → Integrations → Shopify, enter your store domain (my-store.myshopify.com) and click Connect. Approve the access in Shopify: you come back connected, with no token to copy.
  2. If the Connect button isn't offered on your glot server: create an app in the Shopify Dev Dashboard with the scopes read_translations, write_translations, read_locales, write_locales, read_products, read_content, read_online_store_pages, read_online_store_navigation, read_themes and read_metaobjects, install it on your store, then paste its Client ID and Client secret in the form. glot renews the 24-hour access tokens itself. A custom app created in the store admin before 2026 can still use its shpat_… token.
  3. glot reads your store and shows a preview: items per content type, languages, words to translate and the estimated cost. Nothing is translated or written yet.
  4. Choose Translate and publish, or Translate, I publish myself to review the changes first. Translations already edited by hand in Shopify are kept.
  5. A language missing from the store is added unpublished: publish it in Shopify under Settings → Languages when you're ready.
Documentation complète du connecteur

Autre option : la balise universelle

Pour traduire dans le navigateur ce que l’intégration Shopify ne couvre pas, ajoutez plutôt la balise universelle.

  1. Dans glot, créez un projet et ajoutez vos langues.
  2. Ouvrez glot Edge → Balise site web et saisissez l’adresse de votre site : glot le traduit et vous en montre un aperçu. Une fois la balise collée, vérifiez l’installation au même endroit et activez la balise.
  3. Copiez votre balise depuis cet onglet : elle contient déjà votre projet et sa clé publique (data-key). La balise ci-dessous montre sa forme.
Balise glot
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>
  1. From your Shopify admin, go to Online Store.
  2. Optional but recommended: duplicate your theme first so you can roll back.
  3. Click the horizontal menu icon (three dots) next to your theme, then select Edit code.
  4. In the Layout folder, open theme.liquid.
  5. Paste the glot tag inside <head>, just before </head>.
  6. Click Save.
Guide de la balise site web

Forfaits requis

Theme code editing is available on all plans, but only for a theme you own: a trial of a paid theme must be purchased before you can edit its code. The tag does not run on checkout, Thank you or Order status pages.

Côté glot, consultez les tarifs pour le contenu de chaque forfait. glot Edge (URL traduites) fait partie du forfait Growth, avec un essai limité sur Pro.

URL traduites pour les moteurs de recherche

Pour des pages traduites que les moteurs de recherche indexent sans exécuter de JavaScript, placez glot Edge sur un sous-domaine de votre domaine (es.example.com) avec deux enregistrements DNS :

Enregistrements DNS (le jeton TXT s’affiche dans glot Edge → Configuration)
es.example.com.        CNAME  edge.glotlang.com.
_glot.es.example.com.  TXT    "<token shown in the dashboard>"

Add the CNAME and TXT at your domain registrar, or, if your domain is managed by Shopify, in Settings > Domains > (your domain) > DNS settings > Manage > Add custom record. Not possible on a myshopify.com address, and not shown if the domain uses custom nameservers (edit DNS where those nameservers are hosted).

Fonctionnement de glot Edge

Questions

glot est-il partenaire de Shopify ?
Non. glot est indépendant, ni affilié à Shopify ni approuvé par Shopify. Ce guide n’utilise que les fonctionnalités standard de Shopify.
glot modifie-t-il mon contenu Shopify ?
Votre contenu source reste tel quel. glot écrit les traductions dans les champs de langue de Shopify, où vous pouvez les relire avant de publier.
Les moteurs de recherche indexeront-ils mes traductions ?
Pas avec la balise seule : elle traduit dans le navigateur, donc les moteurs indexent surtout votre langue source. Des pages traduites avec leurs propres URL demandent glot Edge, ou une plateforme qui publie chaque langue sur sa propre URL.
Will glot translate my Shopify checkout?
No. Checkout steps, and since 2025 the Thank you and Order status pages, do not run theme code or custom scripts. Shopify translates checkout text itself based on the store languages.
Can I add glot without editing theme.liquid?
Yes, on Online Store 2.0 themes: glot's theme app extension (integrations/shopify-app in the glot repository) adds glot.js and a language switcher as an app embed. It isn't on the Shopify App Store; you install it as your own custom app with Shopify CLI, then turn it on in the theme editor under App embeds. See the glot docs, Shopify app embed.
What happens if I switch themes?
The tag lives in the theme's code, so you must add it again to theme.liquid of the new theme (app embeds also need to be re-enabled on a new theme).

Documentation officielle de Shopify

Traduisez votre site Shopify

Créez un projet, choisissez vos langues et suivez les étapes ci-dessus.

Shopify est une marque de son propriétaire. glot n’est pas affilié à Shopify.