Skip to content

Commit

Permalink
[5.x] Implement translations for dictionary keys used in titles shown…
Browse files Browse the repository at this point in the history
… in breadcrumb trails (#10039)

Co-authored-by: Jason Varga <[email protected]>
  • Loading branch information
peimn and jasonvarga authored May 10, 2024
1 parent c256e9d commit a258983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CP/Breadcrumbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function jsonSerialize()

public function title($title = null)
{
$crumbs = $this->crumbs->map->text;
$crumbs = $this->crumbs->map(fn ($v) => __($v['text']));

if ($title) {
$crumbs->push(__($title));
Expand Down

0 comments on commit a258983

Please sign in to comment.