array = ( '/news/1231/a-news-article' = '...', '/nieuws/1231/een-nieuws-artikel' = '...' );
// routes.php
// get the localized name for 'news'
$news = __('news'); // __() is an alias for \Lang::line()
return array(
"$news/:id/:title" => 'news/item'
);
( disclaimer: haven't tested this at all... )
\Lang::load('test');
var_dump(__('hello'));
to app/config/routes.php.
Works without problems. It looks like you're new here. If you want to get involved, click one of these buttons!