Drupal is a registered trademark of Dries Buytaert
Emulsify Tools 2.1.2 Minor update available for module emulsify_tools (2.1.2). AI (Artificial Intelligence) 1.5.0-alpha2 New alpha version released for module ai (1.5.0-alpha2). AI (Artificial Intelligence) 1.5.0-alpha1 First alpha version released for module ai (1.5.0-alpha1). Easy Encryption 1.0.4 Minor update available for module easy_encryption (1.0.4). Extra Paragraph Types (EPT): Micromodal 2.0.1 Minor update available for module ept_micromodal (2.0.1). Extra Paragraph Types (EPT): Timeline 2.0.1 Minor update available for module ept_timeline (2.0.1). Emulsify 7.1.1 Minor update available for theme emulsify (7.1.1). Varbase Project 11.0.5 Minor update available for module varbase_project (11.0.5). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs. Extra Paragraph Types (EPT): Images 2.0.0 Module ept_images updated after 10 months of inactivity (2.0.0).

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.

Activity

Total releases
1
First release
Jun 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

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