v2.0.0
The package has been rewritten to align better with Laravel route and config caching. Instead of using an .env-variable, the caching is performed by running an artisan-command, php artisan translation-json:cache
and can be cleared by php artisan translation-json:clear
. No work is done in the request-cycle now and simply uses the cached files if they exist, or falls back to the JSON files.
Thanks to @hubertnnn for suggesting this change!