add language to set field drupal 8
$translation->set('field_my_field', 'my en value');
$translation = $term->getTranslation('ja');
$translation->set('field_my_field', 'my ja value');
$term->save();
Are there any code examples left?
New code examples in category Other