Each page I create must have an english and french version. I want to have two flags in my header and when I click on the US/UK flag I get the english version and my clicking the french flag, I get the french version (pretty much the same as the polylang plugin in WordPress).
I know about locales in Laravel. But what I need is, that each view has it's counterpart. For example I have views/welcome_en.blade.php and view/welcome_fr.blade.php - what I want is that when someone opens the corresponding route example.com/welcome, the corresponding counterpart url example.com/fr/welcome is passed with that view.
My question is: How can I build the same multilingual Laravel as Polylang offers in WordPress by just simple clicking a flag and changing the whole view with it's corresponding counterpart (getting the counterpart link back)?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire