Skip to content

Commit

Permalink
Make getLocaleLabelUsing usable in service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
johanmolen authored Nov 27, 2024
1 parent abc785f commit f6d2741
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ public function defaultLocales(?array $defaultLocales = null): static
return $this;
}

public function getLocaleLabelUsing(?Closure $callback): void
public function getLocaleLabelUsing(?Closure $callback): static
{
$this->getLocaleLabelUsing = $callback;

return $this;
}

public function getLocaleLabel(string $locale, ?string $displayLocale = null): ?string
Expand Down

0 comments on commit f6d2741

Please sign in to comment.