Locales - What is going on?

Harshit Peer posted 3 months ago


I am very confused with Laravel Locales.

Before 5.4, I guess Laravel was using a key-value multi dimensional array for locales. After that, it was changed to typical value based localization because of maintenance issue, which actually gets value from JSON under resource/lang/[locale].json

Before 5.4 locales where supposed to be under resource/lang/[locale]/[files].php

NOW! Since, we already moved ahead in time, WHY on earth you still following the same structure of resource/lang/[locale]/[files].php but getting the locales from JSON in your auth controllers and views?

Please correct me if I am wrong.

Sign in to participate in this thread!

We'd like to thank these amazing companies for supporting us