mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-19 01:10:15 +00:00
🌐 Add multilingual configuration and translation files
This commit is contained in:
@@ -5,8 +5,10 @@ if (!function_exists('route_with_country')) {
|
||||
{
|
||||
if (!isset($parameters['country'])) {
|
||||
$country = request()->route('country') ?? 'de';
|
||||
$parameters = ['country' => $country] + $parameters;
|
||||
} else {
|
||||
$country = str(session('lang_country', 'de'))->after('-')->lower();
|
||||
}
|
||||
$parameters = ['country' => $country] + $parameters;
|
||||
|
||||
return route($name, $parameters, $absolute);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user