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

cryptopia's avatar

Localization Series

There are lots of bits and pieces floating around the various forums, including this one and Stack Overflow, on handling URLs for multilingual sites. However, localization has a lot more to it - dealing with date formats, dealing with right-to-left rendering, seamlessly switching between locales, having a convenient way to export language files for translators, etc.

Although there are several projects on github that address these issues to varying degrees, I think it would be great to see a Laracasts series on localization (using Laravel 5) that brings all these things together and presents a complete solution to localization. Admittedly not a small undertaking, but I'm sure Jeffrey is up for it! :-)

Please drop a comment below if you would be interested in this series.

0 likes
123 replies
MikeHopley's avatar

I would definitely be interested in any episodes about internationalisation / localisation.

8 likes
martindilling's avatar

+1 That is still a thing I struggle a lot with, haven't really figured out a way to do it so it doesn't just feel like I'm hacking it together :/

v1ncent's avatar

+1 too. Especially how to deal with a dynamic routing system and annotations.

2 likes
stuarthannig's avatar

Rails developer here by day, I was tasked with localizing an existing app and can tell you what a pain it is. Would be neat to see it implemented using Laravel. The only recommendation (which I find to be the appropriate method) is using sub-domains rather than paths to request the locale with. (http://es.example.com/ VS. http://example.com/es/)

And as a bonus, go into how to translate the route. (http://es.example.com/amigos/ VS. http://example.com/friends/)

That's my two cents, would be an extremely detailed and golden series.

2 likes
kylephillips's avatar

+1 on this. Recently finished up a project with localization (used the mcamara package), and I'd love to see Jeffrey's take on it.

sheepy85's avatar

Hi,

+1

Would be the best if L5 or 5.1 already contain a solution for this and use the route helper to resolve different lang routes.

I'm also write a little pkg to L5 early build, would be nice if someone check it and share experience :)

https://github.com/sheepy85/l5-localization

Ibbe's avatar

Show us the Jeff's way, JeffreyWay.

Valorin's avatar

@JeffreyWay, not sure if you've planned it or not, but it would be a great episode in the Laravel 5 Fundamentals series to cover the basic Localisation that is already provided in Laravel. You could even reference the Flash Messaging episode and update the alerts it generates to use lang strings. (This is how I do alerts, and it has numerous benefits.)

That said, it'd be great to see a full series on the topic, but you have to start somewhere :-)

vincej's avatar

@JeffreyWay +1 for localisation.... however localisation is also closely tied to multi-tenancy. So there is another topic I really would like to see.
cheers !

1 like
johninthout's avatar

For your guys wondering how to implement this package is neat, and helped me tackle this issue pretty awesome! https://github.com/mcamara/laravel-localization you can browse the source to see how it's implemented but this package will give you the ability to set your locale by your url like acme.com/nl or acme.com/en and also has an great routes helper.

3 likes
Next

Please or to participate in this conversation.