Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Gábor Hojtsy on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.1.x
Introduced in version:
8.1.0
Issue links:
Description:
Distributions in Drupal 8 are defined in the info.yml file for the install profile. Additionally to the distribution name and installer theme it is now possible to force the installation to a specific language code as well. Such as if you are doing an install profile for Czech with local currency, payment services, etc. included, you can also force the installation to Czech, so the user does not need to select it at all.
Specify it with the langcode
key under the distribution
key (in this case in czech.info.yml
within the install profile):
name: Czech Drupal
type: profile
description: 'Install with targeted features for Czech users.'
core: 8.x
dependencies:
- node
- ....
distribution:
name: Czech Drupal
langcode: cz
Impacts:
Module developers