Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Default Content Locale

Security covered Under active development

This module ensures that default content imported into Drupal is automatically localized using existing translations. It connects the content import process with Drupal's translation system, applying translated strings for installed languages without extra configuration. This means imported content will appear in the site's language, or as a proper translation on multilingual sites.

Default Content Locale bridges the gap between Drupal's default content system and its locale translation infrastructure. Recipes and site templates distributed on Drupal.org tyipcally ship their default content in English, even though the sites installing them may be configured in another language or multiple languages. This module helps bridge that gap by connecting the default content importer to the locale string storage that Drupal's translation system already uses — so any community-contributed or custom string translations are automatically applied to imported content without any extra work when the default content is imported.

Note that those strings are not yet pushed to localize.drupal.org, so without that part done in other projects, this is just a backend infrastructure waiting to be used.

Features

The module works by listening to the PreEntityImportEvent fired by Drupal core's content importer. For each entity being imported, the module inspects all translatable text and string fields, looks up their values in the locale string storage, and — if translations exist for an installed language not already covered by the content export — injects them as entity translations. On a monolingual non-English site the translated strings become the entity's own default field values; on a multilingual site they are added as a proper translation alongside whatever languages the export already carries.

Post-Installation

There is no configuration. The module "just works". The locale sources are only considered when importing the default content, updates should not be expected after.

LLM disclosure

The development of the module and its copious tests were accelerated with LLM.

Ask your assistant about Default Content Locale

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jun 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.x-dev Dev 11 Jun 5, 2026