Configure Languages and Localization
Why configure languages
Section titled βWhy configure languagesβMultilingual sites need each language enabled and configured before editors can translate content. Fallback chains ensure visitors see content in a related language when a translation is missing. Language permissions control which editors can publish in each language.
Enable a new language
Section titled βEnable a new languageβ- Navigate to Settings > Manage Website Languages.
- Click Add Language and select the language from the list.
- Set the language to Enabled.
- Verify by switching to the new language in the editor toolbar. You should see the language option available.
Set a fallback language chain
Section titled βSet a fallback language chainβFallback languages display when a page has no translation in the requested language.
- Open Settings > Manage Website Languages.
- Select the language you want to configure fallbacks for.
- In the Replacement Language section, choose the fallback language.
- Save changes.
- Verify by viewing a page that has no translation in this language. You should see the fallback language content.
Configure fallback in code (PaaS)
// In an initialization module
[InitializableModule]
public class LanguageConfig : IInitializableModule
{
public void Initialize(InitializationEngine context)
{
var langBranchRepo = context.Locate.Advanced
.GetInstance<ILanguageBranchRepository>();
var french = langBranchRepo.Load("fr");
french = french.CreateWritableClone();
french.IsActive = true;
langBranchRepo.Save(french);
}
public void Uninitialize(InitializationEngine context) { }
} Set the default language
Section titled βSet the default languageβThe default language is the master language for your site. All new content starts in this language.
- Go to Settings > Manage Website Languages.
- Locate your default language and click Edit.
- Check This is the default language for the site.
- Save changes.
- Verify by creating a new page. It should open in the default language.
Assign language permissions
Section titled βAssign language permissionsβLanguage permissions restrict which users or groups can edit content in each language.
- Open Settings > Manage Website Languages.
- Select the target language.
- Under Access Rights, click Add Users/Groups.
- Select the users or roles that should have access.
- Set permissions to Read, Create, Edit, or Publish as needed.
- Save changes.
- Verify by logging in as a restricted user. They should see only their permitted languages.
Configure URL segments per language
Section titled βConfigure URL segments per languageβEach language can have its own URL segment for the same page.
- Open a page in the editor.
- Switch to the target language.
- Navigate to the SEO or Settings tab.
- Edit the URL segment field to match the translated page name.
- Save and publish. Verify by browsing to the localized URL.
Common issues
Section titled βCommon issuesβ| Issue | Cause | Fix |
|---|---|---|
| Language not in editor toolbar | Language not enabled | Enable it in Website Languages |
| Fallback not showing | No replacement language set | Configure the fallback chain |
| Editor cannot translate | Missing language permission | Grant access in language settings |