shadrix
43
5
Tips

Is there a good package for subdomain laravel translations?

Posted 5 months ago by shadrix

I need your help. I'm a bit overwhelmed with localization.

My goals are to have subdomains referencing the current language used. So de.myapp.com for German, fr.myapp.com for French but myapp.com for English.

I thought it would be easy but I just find unmaintained packages. The only one I really like is made by mcamara. But still not perfect but it just adds prefixes like myapp.com/en. (And even if you change it you can't use the middleware because it just adds the prefix...)

Do you have some tips for me? Thank you!

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.