Laziness
All docs
Guides

Build a multilingual site

A static site in Studio whose words live in content files, edited in two languages and published under your own domain.

This guide walks through one complete project: a small static site in Studio, in English and Vietnamese, whose words you and your editors can change without asking the assistant every time. It uses a template with a content manager, edits words straight from the preview, and ends with the site published under your own domain.

Note: What follows depends on what your Studio offers. The templates on its landing page are chosen by the service, and signing editors in with GitHub is only offered where it has been set up. Each step below says what it needs.

1. Start from a template with a content manager

Open Studio and pick a template described as a static site with a content manager (a Jamstack template). In such a project the words of every page live in content files, apart from the code, and the site has an editing page at /admin where editors change them.

If the template asks setup questions, such as your business name, answer them or choose Skip. Then write your first request:

A site for a small guesthouse in Hoi An: a home page, rooms with prices, a short story about us, and a contact page.

See Build a site in Studio.

2. Add a second language

Ask for it in words:

Add Vietnamese as a second language, with a language switch in the header. Translate every page.

The coding agent adds the language to the site and writes the Vietnamese words into the content files beside the English ones. Read a few pages in the preview in each language. If a translation sounds off, either ask for a fix or edit it yourself in the next step.

You can add more languages the same way, one request each.

3. Edit words from the preview

You do not need a model call to change a heading or a price. In the preview, choose Point, click the block, and choose Edit. A form opens with the words of that block as they are in the content files.

  • Language tabs: one tab per language, each named in its own language. A dot marks a language where words are missing.
  • Copy from another language fills an empty language from one that has words, as a start for translating.
  • Lists show as lists: move, duplicate, remove, or add an item, and the change is made in every language's file.
  • Collections, such as blog posts or rooms, show their entries. You can edit one, add a new one in each language it has words in, write a language an entry lacks, or remove one.
  • Pictures: Upload puts the file in the site's media folder.

Saving makes a round of its own, so you can undo it like any other change. The page says the app is being built again until the preview shows your edit. See Rounds and undo.

Tip: Edit is locked while the coding agent works or an answer is going. Wait for it to finish.

4. Publish

Connect the host in Connections, then open Publish from the project's header. You can send the site to GitHub, Vercel, Netlify, or Cloudflare, or download it as a zip. The next publish goes where the last one went. See Publish and domains.

If you want editors to use /admin, publish to GitHub first: the content manager saves its changes as commits to that repository. A host that builds from the repository then shows them; a site uploaded to a host directly shows an editor's change only once you publish it again.

5. Let editors sign in

Where signing in is set up, the Site & domains tab lists the editing page of each of the site's addresses. Editors open /admin on the live site and sign in with GitHub through Laziness, so the site itself holds no secret. They need access to the repository, and the GitHub app must be added to it; the tab links to where you add it.

The tab also says what the site still lacks, for example that the project must be on GitHub first, or that the site must be published again because it went online before the repository was known.

When you publish again, the changes editors made in the repository are read back into the project first, so your next publish does not undo their work. If they cannot be read, the window says so and offers Publish anyway, which replaces the repository's content with the project's.

6. Your own domain

Open Site & domains, type your domain under Use your own domain, and follow the setup: host, DNS, certificate. Your plan sets how many domains you may connect; Free includes none.

What to expect today:

  • Domains work for sites on Vercel.
  • If your domain's DNS is at Cloudflare and you connected your Cloudflare account, the records are written for you. Otherwise the window lists the records to copy.
  • A domain connected here can be used for the editors' sign-in without anything more.

If you set a domain up at the host yourself, add it under the sign-in's other domain field so editors can sign in there too; the app checks the live site before it accepts it.

Checklist

  1. A template with a content manager.
  2. A second language, asked for in words.
  3. Edits from the preview with Point and Edit.
  4. Published to GitHub, then to a host.
  5. Editors' sign-in, where offered.
  6. Your own domain on Vercel.