Trigger the translations on the duplicate operation

Created on 12 April 2023, about 1 year ago

Problem/Motivation

Translations are not available on the duplicate operation.

In \Drupal\inline_translation\EntityOperations::entityFormAlter(),

if (!in_array($form_object->getOperation(), ['add', 'edit', 'default'], TRUE)) {

we are not adding the duplicate operation.

Proposed resolution

Add the duplicate operation like so,

if (!in_array($form_object->getOperation(), ['add', 'edit', 'duplicate', 'default'], TRUE)) {

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom hga77

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

Comments & Activities

Production build 0.69.0 2024