Closed ranaanees closed 11 years ago
I'm afraid I don't know - I've never dealt with multi-language sites myself. How do you do it for the rest of the site? I'm guessing you would call the translate function when you define the breadcrumbs. Going from the Laravel documentation, perhaps something like this?
Breadcrumbs::register('blog', function($breadcrumbs) {
$breadcrumbs->parent('home');
$breadcrumbs->push(trans('breadcrumbs.blog'), route('blog'));
});
If you think there's anything that can/should be changed in the package to make it easier I'm open to suggestions.
@davejamesmiller you are right. It works perfectly for me. What I did..
Breadcrumbs::register('home', function($breadcrumbs) { $breadcrumbs->push(trans('breadcrumb.home'), route('home')); });
Perfect package for multilingual...
:smiley:
:+1:
Hii,
Its a perfect package, I want to show it in two languages English and Arabic. I implemented in English successful but how to show in Arabic.
Regards,