andywer / laravel-js-localization

Simple, ease-to-use and flexible package for the Laravel web framework. Allows you to use localized messages of the Laravel webapp (see `resources/lang` directory) in your Javascript code.
MIT License
143 stars 51 forks source link

Support case-based replacements in Lang functions #47

Closed carestad closed 6 years ago

carestad commented 6 years ago

Should cope with #39

Not sure how localization.js has been minified previously, but I just took the unminified one and ran through jscompress.com.

The changes in head.blade.php can be ignored if not deemed necessary. Just removed type="text/javascript" there.

andywer commented 6 years ago

Thanks for your PR, @carestad! 😊