Great tutorial. You should expand it by walking through the best way of adding "language buttons" and how the system "remembers" which language to use, when user browser around in the different app web pages.
nice man bro we can set route like this Route::group( [ 'prefix' => LaravelLocalization::setLocale(), 'middleware' => ['localeSessionRedirect', 'localizationRedirect', 'localeViewPath', 'web', 'auth:students'] ], function () { Route::get('student/class/addMsg/{id}', ['as' => 'frontend.student.showaddmsg', 'uses' => 'UsersController@showaddmsg']); } i think this bestway
sir kya ham ye languge me api call kara sktew he languge change karne ke liye???? means agr usrer dropdown me hindi select krta he puri website hindi me ho jati he? agr use korean select krta he korean ho jati he???? ye api se languge change kr skte he?
Answer of Interview Question: if it do not find the index value of the language array then it will check in the other language or default language and print it out there
@@salsabilaemma7569 just create anchor tag of those language, u will need dropdown. and in the last section , he described how to call from route. use that , simple
I am trying this tutorial for localization, I have followed all the step but getting syntax error. I saw one change that lang folder is on root folder but not inside resource folder. Please help
This is a very long process mean if I have 20 pages in a website and I want to convert it to 5 different languages than I have to make more than 100 file. Damn this method is not good at all
I think you'll need 25 files total. 20 files for website pages and 5 files for 5 languages. because it's not like he named the translation files to profile.php because it'll be used in profile.blade.php. He mentioned in the video(after 3:55) that you can use any name.