Skip to content

Commit

Permalink
fix: call to undefined method
Browse files Browse the repository at this point in the history
  • Loading branch information
jordyvanderhaegen committed Dec 18, 2024
1 parent 2bb596e commit 5b8ffbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mcamara/LaravelLocalization/Middleware/SetLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function fallbackLocale(Request $request): string

// but if hideDefaultLocaleInURL is false, we may have to retrieve it from the browser...
if ($this->laravelLocalization->useAcceptLanguageHeader()) {
$negotiator = new LanguageNegotiator($defaultLocale, $this->getSupportedLocales(), $request);
$negotiator = new LanguageNegotiator($defaultLocale, $this->laravelLocalization->getSupportedLocales(), $request);

return $negotiator->negotiateLanguage();
}
Expand Down

0 comments on commit 5b8ffbb

Please sign in to comment.