Open Azoruk opened 1 year ago
I want to translate ALL my routes on my website. My default language is EN, but I want to add French. Take the 'about' route for example.
Route::group(['prefix' => LaravelLocalization::setLocale(), 'middleware' => [ 'localize' ]], function () { Route::get(LaravelLocalization::transRoute('routes.about'), ['as' => 'about', function () { return view('pages/about'); }]); });
Translation:
<?php // resources/lang/en/routes.php return [ "about" => "about", ];
<?php // resources/lang/fr/routes.php return [ "about" => "apropos", ];
I don't like that I have to translate "about" in English. I have hundreds of routes. If I don't translate the english default, it will return the URL "routes.about".
I want to translate ALL my routes on my website. My default language is EN, but I want to add French. Take the 'about' route for example.
Translation:
I don't like that I have to translate "about" in English. I have hundreds of routes. If I don't translate the english default, it will return the URL "routes.about".