Fixing Laravel’s Notification locale issue

Set Kyar Wa Lar
1 min readJun 16, 2021

Originally posted — https://setkyar.com/laravels-notification-locale-issue

I was checking the locale issue on my own application and found out this interesting issue. I am using Laravel’s user-preferred locales for the notification translation. But, it keeps going with our application's default language. It does not use the user’s preferred locales.

https://laravel.com/docs/8.x/notifications#localizing-notifications
https://laravel.com/docs/8.x/notifications#user-preferred-locales

--

--