Skip to content

Commit

Permalink
Pass locale when verifying translation existence
Browse files Browse the repository at this point in the history
  • Loading branch information
chinleung committed Jul 16, 2020
1 parent 197cc42 commit 9d7698a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MultilingualRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ protected function generateUriFromKey(string $key, string $locale): string
return $this->shouldNotPrefixHome($locale) ? '/' : "/{$locale}";
}

return Lang::has("routes.{$key}")
return Lang::has("routes.{$key}", $locale)
? trans("routes.{$key}", [], $locale)
: $key;
}
Expand Down

0 comments on commit 9d7698a

Please sign in to comment.