Skip to content

Commit

Permalink
[5.x] Fix collection title_format when using translations (#11248)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnsn authored Dec 12, 2024
1 parent d62cc13 commit 684eb68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entries/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ public function autoGeneratedTitle()

// Since the slug is generated from the title, we'll avoid augmenting
// the slug which could result in an infinite loop in some cases.
$title = $this->withLocale($this->site()->locale(), fn () => (string) Antlers::parse($format, $this->augmented()->except('slug')->all()));
$title = $this->withLocale($this->site()->lang(), fn () => (string) Antlers::parse($format, $this->augmented()->except('slug')->all()));

return trim($title);
}
Expand Down

0 comments on commit 684eb68

Please sign in to comment.