Support the ongoing development of Laravel.io →
Views Blade Packages
Last updated 1 year ago.
0

First, you need to make all your texts translatable, i.e. localize them as the official documentation calls it..

http://laravel.com/docs/5.0/localization

Then, if I recall correctly, Laravel does not provide multilanguage feature. But there is no need to develop that yourself, you can download packages that will do the heavy work.

https://github.com/mcamara/laravel-localization

Hope that helps.

0

Hello and thanks for the reply.

I have already done the localization of the admin texts. But the problem is just separate the language of the font-end and back-end.

If I use that package, I'm not sure if I'm able to do it or if the package is going to set the same language to the whole application.

That I'm looking for is to have different config vars, one for front-end lang and other for back-end lang.

For example, if I use App::setLocale('en'); it'll set the locate to the whole app, so I am looking for something like that but only for the back-end.

The package I'm making is only an admin package, without front, to able to everyone to make their own front, this is the reason why I need to set the language but only for the admin.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Ukadev ukadev Joined 23 Nov 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.