Menu

Add a second language

At the end of this tutorial Rue Verte Cycles is published in English and French, with a language menu in the header.

litetile does not translate for you. Adding a language gives you a copy of each page to rewrite in that language. You, or someone you trust, write the French.

1. Add French

  1. In your site's dashboard, open Settings, then the Languages tab.
  2. Choose Add language. The Add a language dialog opens.
  3. Under Language, choose French.
  4. Choose Add language. The list now shows English, marked Default, and French.
Settings: languages card, Add language open.

The languages on offer are English, French, German, Spanish, Italian, Dutch, Polish and Portuguese. Reference: Add a language.

2. Translate the home page first

A new language starts with its home page, so translate Home before any other page.

  1. Open Pages.
  2. Open the actions menu of Home and choose Translate to French.
The Pages screen: translate to French in the row menu.

litetile makes a French copy of the page, with the same blocks (the sections of a page) and the English text, and opens it in the editor. The editor's top bar shows the page's language.

  1. Select each block and rewrite its text in French. Keep the layout or change it: the French page is a page of its own.
  2. Open SEO in the left rail and write the French Title and Description, then choose Save.
  3. For each image, write the Alternative text in French.

3. Translate the other pages

Repeat step 2 for Services, About and Contact. A page under another page needs its parent translated first; otherwise litetile says "Translate the page above it first."

On the Pages screen, the Translations column shows which pages have a French copy. Switch the list to French with the language menu above the table to see the French pages on their own.

Reference: Translate a page.

The header and footer design is shared by every language, but the words are not.

  1. Open Header & footer.
  2. Set Language to French. The screen says "The words for French. Each language has its own."
  3. Under Menu items, add the French items, such as "Services", "À propos" and "Contact", each linked to the French page.
  4. Under Buttons, add "Réserver une réparation".
  5. On the Footer tab, write the French link groups, legal links and Copyright and tagline.
  6. Choose Save.

A French menu item must link to a French page. If it links to an English one, saving says "A link points to a page that is not in this language."

To start from a draft, choose Scaffold header with AI on the French tab. It writes a menu from your French pages and replaces what the tab holds; nothing is saved until you choose Save.

5. Show the language menu

  1. Still on Header & footer, open the Header tab.
  2. In the header Design options, set Show languages to Yes.
  3. Choose Save.

Visitors can now switch between English and French from the header.

6. Publish

  1. Open Overview and choose Publish all.
  2. Check that the French pages and Header & footer are selected.
  3. Choose the Publish button with the item count.
  4. Open the site and use the language menu.

French pages are served under /fr/, for example rueverte-demo.litetile.app/fr/. Search engines are told that each English page and its French copy belong together.

If you remove a language later

The default language cannot be removed.