multilanguage router
sanater opened this issue · 4 comments
sanater commented
Hi, how can i multi language router this class?
site.com/en
site.com/tr
site.com/fr
steampixel commented
Hi,
what about something like this (untested):
Route::add('/([a-z]*)/([a-z-0-9-]*)', function($lang, $page) {
echo 'Load page '.$page.' with language code '.$lang;
});
sanater commented
thank you
sanater commented
how can i assign variable for default language?
sanater commented
please sample or demo full page?