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
- In glot, create a project and add your languages.
- 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.
- Copy your tag from that tab: it already carries your project and its public key (data-key). The tag below shows its shape.
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>- Open the app in the Project Editor.
- 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>".
- Paste the glot tag just before </head>.
- Republish the app so the published version includes the tag.
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:
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 worksQuestions
- 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.
More integrations: AI app builders
Replit is a trademark of its owner. glot is not affiliated with Replit.