mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
fix nl-be
This commit is contained in:
@@ -74,6 +74,10 @@ class Header extends Component
|
||||
|
||||
public function updatedL($value)
|
||||
{
|
||||
if ($value === 'nl-be') {
|
||||
$value = 'nl';
|
||||
}
|
||||
|
||||
Cookie::queue('lang', $value, 60 * 24 * 365);
|
||||
|
||||
return redirect(request()->header('Referer'));
|
||||
|
||||
@@ -26,6 +26,9 @@ class Welcome extends Component
|
||||
public function mount()
|
||||
{
|
||||
$this->l = Cookie::get('lang') ?: config('app.locale');
|
||||
if ($this->l === 'nl-be') {
|
||||
$this->l = 'nl';
|
||||
}
|
||||
$this->c = Cookie::get('country') ?: config('app.country');
|
||||
Cookie::queue('lang', $this->l, 60 * 24 * 365);
|
||||
Cookie::queue('country', $this->c, 60 * 24 * 365);
|
||||
@@ -45,6 +48,10 @@ class Welcome extends Component
|
||||
$l = $this->l;
|
||||
}
|
||||
|
||||
if ($this->l === 'nl-be') {
|
||||
$this->l = 'nl';
|
||||
}
|
||||
|
||||
Cookie::queue('lang', $this->l, 60 * 24 * 365);
|
||||
Cookie::queue('country', $this->c, 60 * 24 * 365);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user