Skip to content

Entity: create translation

Plugin ID: eca_create_entity_translation

Available since: 3.1.0

Creates a translation of a content entity, replicating the behavior of the core translation UI.

Fields

Source language — config key: source_langcode

The language to copy field values from. Typically the site default language.
When using the "Defined by token" option, make sure there is a token with this name: eca_create_entity_translation_source_langcode

Type: select · Required: no · Default: empty string

Allowed values: en, _interface, _eca_token, ''

Target language — config key: target_langcode

The language of the new translation to create.
When using the "Defined by token" option, make sure there is a token with this name: eca_create_entity_translation_target_langcode

Type: select · Required: no · Default: empty string

Allowed values depend on the configuration of the target site.

Value format: A language code enabled on the target site. The special values _interface and _preferred resolve at runtime.

Entity — config key: object

Provide the token name of the entity that this action should operate with. Please provide the token name only, without brackets.

Type: textfield · Required: no · Default: empty string