Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Drupal 11.4.6 Update released for Drupal core (11.4.6)! Release: Drupal 10.6.16 Update released for Drupal core (10.6.16)! Release: Drupal 12.0.0-alpha1 First alpha version released for Drupal core (12.0.0-alpha1). Release: AI (Artificial Intelligence) 1.5.0-rc3 New release candidate for module ai (1.5.0-rc3). Release: User Registration Link Pop Up 1.2.5 Minor update available for module url_popup (1.2.5). Release: User Registration Link Pop Up 1.2.4 Minor update available for module url_popup (1.2.4). Release: Smart Image Optimizer 1.0.1 Minor update available for module smart_image_optimizer (1.0.1). Release: Content Freshness Report 1.0.3 Minor update available for module content_freshness_report (1.0.3). Usage Milestone: Menu Condition Module menu_condition crossed 1,000 active installs. Module Revived: EzContent API - Enhanced De-coupled CMS Experience 2.3.9 Module ezcontent_api updated after 15 months of inactivity (2.3.9).

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.

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
2 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

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