Website translation
Drupal
Prepare your Drupal website
Prepare your website for multilingual content by adding available languages, specifying translatable content types, and adding a language switcher before configuring the module.
Add translation languages
To add the translation languages:
- Access your Drupal administrator dashboard.
- Navigate to Configuration > Regional and language > Languages.
- Click Add language.
- Choose the desired language from the dropdown and click Add language.
- The newly added language will appear in the language list.
Configure translatable content
Determine which content types will be translated: pages, comments, custom blocks, taxonomy terms, and user accounts. For each selected content type, specify which subtypes or fields should be translated.
To configure translatable content:
- Navigate to Configuration > Regional and language > Content language and translation.
- Select the desired content types for translation from the list.
- Go through the table and enable Translatable at the start of each row.
- Save your changes by clicking Save configuration.
Add language switcher
To add language switcher to page:
- Navigate to Structure > Block layout.
- Choose a desired placement (header, footer, primary menu, etc.) and click Place block.
- Find the Language switcher block and click Place block.
- Customize the block by adjusting the title, visibility, and languages.
- Click Save block.
The language switcher will appear on your webpage in the chosen location.