Languages
Publish your website in more than one language, with its own URLs, translated content and theme texts, and right-to-left support.
An in1s website can be published in several languages. Each language gets its own URLs, and you translate your content, page addresses and theme texts from the panel. Visitors switch language with the language switcher your theme provides.
Add languages and choose the default
-
Open the Languages card
In your website, choose Settings and find the Languages card.
-
Pick your languages
In Available languages, select every language your website should offer. You must keep at least one.
-
Choose the default
In Default language, pick the language visitors get when the URL has no language prefix.
-
Save
Select Save.
Plan limit
Your plan sets how many languages each website can have. The Languages card shows the number, for example "Your plan includes one language per website." If you work on someone else's website, the limit is that website's plan, not yours. If a website already has more languages than its plan allows, you can still remove a language or change the default, but you cannot add a new one. See Plans and billing.
How the URLs work
The default language has no prefix. Every other language uses its two-letter code as the first part of the path.
| Language | Example URL |
|---|---|
| Default (for example English) | /about |
| French | /fr/a-propos |
| Arabic | /ar/من-نحن |
If someone opens the default language with its prefix, for example /en/about, they are redirected permanently to /about.
A different URL per language
Pages, data lists and entries can have their own slug in each language. You can write slugs in any script, including Arabic, Hindi, Chinese and accented Latin.
- Routes: the URL path field. See Routes.
- Entries: the entry's slug. See Entries.
- Data lists: the list's URL prefix. See Data lists.
A slug in one language opens only under that language's prefix. For example, an entry with the slugs john (English) and ahmed (Arabic) opens at /team/john and /ar/team/ahmed, but /ar/team/john shows "page not found". If an entry has no slug in a language yet, it still opens under that language's prefix with the slug it does have.
Translate your content
Fields that can be translated show a language badge, such as EN, inside the field. When your website has more than one language, select the badge to switch the field to the next language, and type the translation. The badge shows which language you are editing.
If a text has no translation, visitors in that language see the default language's text instead. Site health lists pages and images that are missing a language.
Translate the theme's texts
Themes contain their own fixed texts, such as button labels and headings. To translate them:
- Open the theme editor. See Theme editor.
- Open the Translations panel.
- Choose a language in Locale, then edit the texts. Use Search translations... to find one.
If your website has a language the theme has no texts for, select Add a language (the plus button beside Locale) to add it.
Right-to-left languages
For right-to-left languages, such as Arabic, the theme sets the page direction from the visitor's language. Pages in those languages read from right to left, and pages in other languages stay left to right. You do not need to set anything.
The language switcher on your site
Themes can include a language switcher for visitors. When a visitor picks a language, they stay on the same page, at that page's URL in the language they chose.
Search engines are told about each language version of a page as well. See SEO.