config_translation_sync
Security covered
Config Translation Sync provides automated synchronization of configuration translations across environments. It extends the core Config Translation module by ensuring that multilingual configuration remains consistent after imports, deployments, or updates.
Features
- Automatically synchronizes translated configuration during every configuration import.
- Allows manual re‑synchronization at any time via Drush (
drush crst). - Supports include and exclude patterns for fine‑grained control.
- Respects enabled languages or allows restricting to specific language codes.
- Logs changes for transparency and debugging.
Drush examples
- Run synchronization manually:
drush crst - Resynchronize only specific configs:
drush crst --config-names=system.site,views.view.frontpage - Exclude certain configs:
drush crst --config-names=views.view.* --exclude=views.view.frontpage - Restrict synchronization to specific languages:
drush crst --langcode=ru,en
Use cases
- Keep translated configuration consistent between local, staging, and production environments.
- Ensure that translations are not lost when deploying configuration changes.
- Automate translation synchronization as part of deployment scripts.
Requirements
Drupal core config_translation module must be enabled.