Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Locale Deploy

30 sites Security covered
View on drupal.org

This module allows translation strings to be managed and deployed like code and configuration. It fetches translations from localize.drupal.org and extracts custom translations from your modules, ensuring they are updated and exported as part of your site's deployment process.

Introduction

Translations for Drupal core and contrib modules come from localize.drupal.org. In traditional Drupal, you update translations by either running some Drush commands or clicking around in the UI. This gives a site little to no visibility about the new translations being added. Also it can mean that you're making changes to a live site outside a deployment. Configuration and locale strings are tied together and changes in one can result in changes in the other.

This module enables translations to follow the same deployment path as code and configuration.

Note: This is about how to deploy locale strings and does not interact in anyway with content translation.

Requirements

  • Custom code is located in modules/custom

Installation

Install as you would normally install a contributed Drupal module.

Usage

This module makes no changes to Drupal's user interface. All interaction occurs via Drush.

The module provides the following commands:

  • locale-deploy:localize-translations
  • locale-deploy:custom-translations

Additionally, the module hooks into the updatedb command to ensure that translations are updated during a drush deploy command.

The locale-deploy:localize-translations command gets translations from localize.drupal.org for your site. It places them in your local translations folder. It also updates the site's translations in the database and exports configuration so that all files are correct after the translations have been updated.

The locale-deploy:custom-translations command scans the modules/custom folder to extract any translations there. It will copy them to the custom folder in your local translations folder. There will be one file per language enabled on the site.

Activity

Total releases
5
First release
May 2025
Latest release
5 days ago
Releases (12 mo)
4 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.3 Stable Jul 12, 2026
2.0.0 Stable Jul 12, 2026
2.x-dev Dev Jul 8, 2026
1.0.2 Stable Jul 7, 2026
1.0.1 Stable May 16, 2025