Skip to content

Getting started

Entity Change Default Language changes the default language of a content entity. An article written in English becomes an article written in Spanish, and the English text stays as a translation unless you ask to drop it.

  • Drupal ^11.4 || ^12 and PHP 8.3 or later.
  • The Language and Content Translation modules. The module depends on both, so installing it installs them.
  • Drush 13 or later, only for the Drush commands.
  • The entity must be translatable, and its entity type must be enabled in the settings, which enable every translatable content entity type by default.

Note: Sites on Drupal 9, 10 or 11.0 to 11.3 stay on the 1.0.x branch.

Terminal window
composer require drupal/entity_change_default_language
drush pm:install entity_change_default_language

Note: The module does not install Drush. Add drush/drush to your project if you want the commands.

The demo site used in this documentation has English as its default language, and Spanish and French added. Open Configuration, Regional and language, Languages to see the same list on your site.

The Languages administration page listing English as the default language, Spanish and French