public function subtest() { $localeCode = LaravelLocalization::getCurrentLocale(); $urltrans = trans('test::routes.subtest'); \Debugbar::info($urltrans); $test = LaravelLocalization::getLocalizedURL($localeCode, route('test')); \Debugbar::info($test); return '<p>Sub-test</p><p><b>Language</b>: ' . $localeCode . '</p><p>Our translation url: ' . $urltrans . '</p>'; }