Hard-coded label not suitable for translation in breadcrumb

Created on 15 July 2025, 2 months ago

In breadcrumb.theme the entity type for "user" is hardcoded to "account" without support for translation in _gin_get_route_entity_operation_label function, so the breadcrumbs are not showing properly in any language other than english.

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

🇪🇸Spain santiwww

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

Comments & Activities

  • Issue created by @santiwww
  • @danrod opened merge request.
  • 🇨🇦Canada danrod Ottawa

    I see a PHPCS issue but I'm not sure if should fix it in this MR since it's out of the scope of the original isue

    FILE: src/GinNavigation.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------
     24 | ERROR | Parameter $moduleHandler is not described in comment
        |       | (Drupal.Commenting.FunctionComment.ParamMissingDefinition)
    ------------------------------------------------------------------------------------------------------------------------
    Time: 404ms; Memory: 8MB
    PHP CODE SNIFFER REPORT SUMMARY
    ----------------------------------------------------------------------
    FILE                                                  ERRORS  WARNINGS
    ----------------------------------------------------------------------
    src/GinNavigation.php                                 1       0
    
Production build 0.71.5 2024