A magnifying glass held over a trail of footprints, one print enlarged under the lens
Trusted third parties2 min read

Embed Weglot translation on my site

Weglot translates your whole site into other languages and adds a language switcher, so a visitor reads your pages in their own language. You keep editing in English and Weglot keeps the translations in step.

The prompt

“Add Weglot to the site so visitors can read it in French and Spanish, with the switcher in the footer.”

Signed in, Get my prompt fills in your site for you. Otherwise press Copy and fill in the [bracketed] parts. First time? Connect your AI to bernard once: Use your own AI (opens in a new tab).

Ask your AI

Add Weglot to the site so visitors can read it in French and Spanish, with the switcher in the footer.

What you need first

A Weglot account and its API key, from your Weglot dashboard.

What bernard checks

The Weglot translation tool is on bernard’s permitted list. Someone read the maker’s own instructions (https://developers.weglot.com/javascript) on 2026-09-14 and decided it was safe to run on a customer’s site: Weglot rewrites the whole page and sends the site’s text to its own API, so the privacy page must say so and the row is consent functional. Only selectors and booleans are admitted as options. Your site loads it from the maker’s own address. Weglot translation comes from the maker’s own address, always at whatever version they currently publish, so there is no pinned version here for bernard to check each week. Keeping it current is the maker’s job. What bernard controls is the address: nothing else may be loaded in its place.

Your AI writes the exact tag bernard permits, on a private preview. You look at it and approve it before anything goes live.

People search for this as: translate, translation, languages, weglot, multilingual, french.

What your visitors see

Weglot translation sets its own cookies, so bernard asks first. Your cookie banner gains a choice called “Services on this page”, and Weglot translation starts working for each visitor once they allow it. Your cookies page lists it. Visitors who say no see the page without it.

For the full list of libraries, what is waiting, and how to ask for one that is not there, see Embed a calendar, a diagram, a chart or another tool on my site.

Questions people ask

Do I need to write any code to use the Weglot translation tool?
No. Your AI writes the exact tag bernard permits and puts it on a preview. You approve it before it goes live, and pasted code is removed for safety every time.
Is the Weglot translation tool safe on my site?
bernard admits it only from its own published address, with its settings written as plain data rather than code. Weglot translation comes from the maker’s own address, always at whatever version they currently publish, so there is no pinned version here for bernard to check each week. Keeping it current is the maker’s job. What bernard controls is the address: nothing else may be loaded in its place. Nothing else about it can be changed from a page.
What do I need from the Weglot translation maker first?
A Weglot account and its API key, from your Weglot dashboard.
Can I change it later?
Yes. Say what you want different and your AI redoes it on a preview for you to approve. Nothing about it is baked in.

Next