🌐 Add multilingual configuration and translation files

This commit is contained in:
HolgerHatGarKeineNode
2025-11-22 23:53:15 +01:00
parent ff2a5636f6
commit 8600f98312
27 changed files with 1090 additions and 384 deletions

View File

@@ -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);
}