-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba9c8e2
commit 3203874
Showing
7 changed files
with
118 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace App\Http\Middleware; | ||
|
||
use Closure; | ||
use Illuminate\Http\Request; | ||
use Symfony\Component\HttpFoundation\Response; | ||
use Illuminate\Support\Facades\App; | ||
use Illuminate\Support\Facades\Session; | ||
|
||
class SetLocale | ||
{ | ||
/** | ||
* Handle an incoming request. | ||
* | ||
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next | ||
*/ | ||
public function handle(Request $request, Closure $next): Response | ||
{ | ||
if (Session::has('locale')) { | ||
App::setLocale(Session::get('locale')); | ||
} | ||
|
||
return $next($request); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"navbar.home": "Home", | ||
"navbar.about": "About", | ||
"navbar.staff": "Staff", | ||
"navbar.roster": "Roster", | ||
"navbar.airspace": "Airspace", | ||
"navbar.donate": "Donate", | ||
"navbar.publications": "Publications", | ||
"navbar.policies": "Policies", | ||
"navbar.news": "News", | ||
"navbar.notams": "NOTAMs", | ||
"navbar.events": "Events", | ||
"navbar.controllers": "Controllers", | ||
"navbar.training_portal": "Training Portal", | ||
"navbar.sops": "SOPs", | ||
"navbar.loas": "Letters of Agreement", | ||
"navbar.vatsys_download": "Download Vatsys", | ||
"navbar.contact": "Contact", | ||
"navbar.request_atc": "Request ATC", | ||
"navbar.controller_feedback": "Controller Feedback", | ||
"navbar.ask_the_staff": "Ask the Staff", | ||
"navbar.join": "Join!", | ||
"home.hero.request_training": "Request Training!" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"navbar.home": "Inicio", | ||
"navbar.about": "Nosotros", | ||
"navbar.staff": "Staff", | ||
"navbar.roster": "Roster", | ||
"navbar.airspace": "Espacio Aéreo", | ||
"navbar.donate": "Donar", | ||
"navbar.publications": "Publicaciones", | ||
"navbar.policies": "Politicas", | ||
"navbar.news": "Noticias", | ||
"navbar.notams": "NOTAMs", | ||
"navbar.events": "Eventos", | ||
"navbar.controllers": "CTAs", | ||
"navbar.training_portal": "Portal de Entrenamiento", | ||
"navbar.sops": "SOPs", | ||
"navbar.loas": "Cartas Acuerdo", | ||
"navbar.vatsys_download": "Descarga Vatsys", | ||
"navbar.contact": "Contacto", | ||
"navbar.request_atc": "Solicitar ATC", | ||
"navbar.controller_feedback": "Feedback a Controlador", | ||
"navbar.ask_the_staff": "Pregunta al Staff", | ||
"navbar.join": "¡Únete!", | ||
"home.hero.request_training": "Solicitar Entrenamiento!" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters