Welcome Guest, Not a member yet? Register   Sign In
locale in routes ?
#1

hi

let's say we have $defaultLocale = 'it' and $supportedLocales = ['it','en','fr'];

by using $routes->get('{locale}/', 'Home::index');

the site responds to site/it/ and site/en/ site/fr/

what i would expect is site/ to be defaultLocale and also have site/en/  and site/fr/
site/it/ should trow 404

any suggestion on how can i get this behavior ?

thanks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB