Skip to content
Snippets Groups Projects

Add translation trait.

1 unresolved thread

Closes #3097313

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
170 173 $languages = $cloned_entity->getTranslationLanguages();
171 174 foreach ($languages as $langcode => $language) {
172 175 $translation = $cloned_entity->getTranslation($langcode);
173 $translation->set($label_key, $translation->label() . ' - Cloned');
176 $translation->set($label_key, $translation->label() . $this->t('%suffix', ['%suffix' => ' - Cloned']));
  • added 1 commit

    • d0f8ed47 - translate and add cloned prefix or suffix based on language direction.

    Compare with previous version

  • Please register or sign in to reply
    Loading