Add multi language support to your Laravel app!

Most modern international apps require support for at least one language if not more. Laravel supports this out of the box. The concept is called localization. Or in short l10n, 10 is for the number of letters between “l” and “n”. Also luckily the implementation is very simple. Let’s do it in 3 steps.

1. Create language files

Create language file in the folder resources/lang/en/messages.php for English and /lang/fr/messages.php for the language French. The name of the folder is the name of the language to be used in your application. So if you set the language to "en", the messages will come from the "en" language folder.


Please continue reading this article at When Programming