How to translate a config menu link

Created on 30 September 2019, over 4 years ago
Updated 27 March 2023, over 1 year ago

One thing that isn't clear to me is how to translate a menu link config item.
It should be possible to translate the individual items. Or I can't find it. How can this be done?

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium daften

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany geek-merlin Freiburg, Germany

    Is this still valid?

  • Status changed to Active over 1 year ago
  • πŸ‡©πŸ‡ͺGermany heliogabal Berlin

    I can confirm that config translation of config menu links still doesn't work, but I get a slightly different error:

    The website encountered an unexpected error. Please try again later.
    
    TypeError: Drupal\config_translation\ConfigEntityMapper::setEntity(): Argument #1 ($entity) must be of type Drupal\Core\Config\Entity\ConfigEntityInterface, null given, called in /web/core/modules/config_translation/src/ConfigEntityMapper.php on line 113 in Drupal\config_translation\ConfigEntityMapper->setEntity() (line 142 of core/modules/config_translation/src/ConfigEntityMapper.php).
    
    Drupal\config_translation\ConfigEntityMapper->populateFromRouteMatch() (Line: 85)
    Drupal\config_translation\Access\ConfigTranslationOverviewAccess->getMapperFromRouteMatch() (Line: 58)
    Drupal\config_translation\Access\ConfigTranslationOverviewAccess->access()
    call_user_func_array() (Line: 160)
    Drupal\Core\Access\AccessManager->performCheck() (Line: 136)
    Drupal\Core\Access\AccessManager->check() (Line: 113)
    Drupal\Core\Access\AccessManager->checkRequest() (Line: 104)
    Drupal\Core\Routing\AccessAwareRouter->checkAccess() (Line: 89)
    Drupal\Core\Routing\AccessAwareRouter->matchRequest() (Line: 105)
    Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest()
    call_user_func() (Line: 111)
    Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 139)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 74)
    Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
    Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
    Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
    Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 270)
    Drupal\shield\ShieldMiddleware->bypass() (Line: 137)
    Drupal\shield\ShieldMiddleware->handle() (Line: 48)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 686)
    Drupal\Core\DrupalKernel->handle() (Line: 19)
    require('/web/index.php') (Line: 71)
Production build 0.69.0 2024