Workaround for bug Non-translatable fields can only be changed when updating the original language.

By admin_wla | Tue, 27 Apr 2021 - 11:21

Workarount for the bug " Non-translatable fields can only be changed when updating the original language"

Found on https://www.drupal.org/project/drupal/issues/2955321

Created a custom module "wla_enable_translations" to overcome this issue. Code

function wla_enable_translations_entity_type_alter(array &$entity_types) {
  foreach ($entity_types as $entity_type) {
    $constraints = $entity_type->getConstraints();
    unset($constraints['EntityUntranslatableFields']);
    $entity_type->setConstraints($constraints);
  }
}

0
0