I've added support for loading .json Translation files from the Application's lang dir.
Because the Laravel documentation describes some special cases to avoid, e.g. if a .json Files' translation key collides with a translation namespace, i've tried to replicate that behavior as best as possible, with the Principle of Least Surprise.
If Laravel has weird behavior, we should replicate that weird behavior.
Unit tests are also updated to clear the view cache before each run, as the tests sometimes wouldn't recognize my changes.
I've added support for loading
.json
Translation files from the Application'slang
dir.Because the Laravel documentation describes some special cases to avoid, e.g. if a
.json
Files' translation key collides with a translation namespace, i've tried to replicate that behavior as best as possible, with the Principle of Least Surprise.If Laravel has weird behavior, we should replicate that weird behavior.
Unit tests are also updated to clear the view cache before each run, as the tests sometimes wouldn't recognize my changes.