Allow changing languages using drush commands

Created on 18 October 2024, 28 days ago

Problem/Motivation

It would be nice to change the language of entities by using drush commands.

Proposed resolution

Create two drush commands:


1) Command that changes the default language to a specific entity:

drush entity_change_default_language:change-default-language node 4 en


2) Command that changes the default language to all entities of a specific type:

It would only change the language, when that entity has a translation into the target language.

drush entity_change_default_language:change-default-language-entity-type node en --preserve-languages=es
Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain omarlopesino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024