Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

keevitaja's avatar

Multilingual apps in Laravel

Hi!

Sorry about the spam...

I created a new Localization package for the Laravel framework and i think the approach is brilliant.

I remove the locale slug from the REQUEST_URI and thats about it. The rest of the package just helps to generate the URLs and anchor tags.

https://github.com/keevitaja/linguist

0 likes
3 replies
eickhardt's avatar

That is a really cool package, I endorse it! Thanks :)

2 likes
christopher's avatar

Helping others and offering cool stuff to the open source world is never spam, well done :)

1 like
keevitaja's avatar

Hi guys, i continue my spam.

It turned out, that 2 years ago i had no clue what i was doing. I recently updated the Linguist (https://github.com/keevitaja/linguist) package. It got so much easier to use.

Most of the Laravel goodies work out of the box. You can use route() or url() and also redirections pick up the correct locale by default.

For a bonus this package also works well with https://github.com/tightenco/ziggy .

1 like

Please or to participate in this conversation.