Skip to content

glot for Replit

AI app builders · Universal tag

On Replit, glot runs from one script tag added to every page. It translates the page in the visitor's browser and adds a language menu.

Add the glot tag

  1. In glot, create a project and add your languages.
  2. Open glot Edge → Website tag and enter your site's address: glot translates it and shows you a preview. Once the tag is pasted, check the installation there and turn the tag on.
  3. Copy your tag from that tab: it already carries your project and its public key (data-key). The tag below shows its shape.
glot tag
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>
  1. Open the app in the Project Editor.
  2. Open the HTML entry file (for example index.html, or the root layout in a Next.js app), or ask Agent: "Add this script tag inside <head> on every page, unchanged: <the glot tag>".
  3. Paste the glot tag just before </head>.
  4. Republish the app so the published version includes the tag.
Website tag guide

Plan requirements

Code is editable on all plans. The free Starter plan includes one published app; the custom domain doc does not name a required plan.

On the glot side, see Pricing for what each plan includes. glot Edge (translated URLs) is part of the Growth plan, with a limited trial on Pro.

Translated URLs for search engines

For translated pages that search engines index without running JavaScript, put glot Edge on a subdomain of your domain (es.example.com) with two DNS records:

DNS records (the TXT token is shown in glot Edge → Setup)
es.example.com.        CNAME  edge.glotlang.com.
_glot.es.example.com.  TXT    "<token shown in the dashboard>"

Link your domain in Tools → Domains (under Replit Cloud). Add the glot CNAME and TXT at your registrar. For a domain bought through Replit, select it and choose Manage to edit records; the doc lists A, TXT and MX as examples, so confirm CNAME is accepted. Not possible on a replit.app address.

How glot Edge works

Questions

Is glot a Replit partner?
No. glot is independent, and not affiliated with or endorsed by Replit. This guide only uses Replit's standard features.
Does glot change my Replit content?
No. The tag translates the page in the visitor's browser; your Replit content stays as it is. Remove the tag and the site is back to its source language.
Will search engines index my translations?
Not from the tag alone: it translates in the browser, so search engines mostly index your source language. Translated pages with their own URLs need glot Edge or a platform that publishes each language on its own URL.
Do I need to republish after adding the tag?
Yes. Published apps run a snapshot, so the tag only appears after you republish.

Official Replit documentation

Translate your Replit site

Create a project, choose your languages, and follow the steps above.

Replit is a trademark of its owner. glot is not affiliated with Replit.