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

Convert localization.js to use UMD format #22

Closed hackel closed 8 years ago

hackel commented 8 years ago

Sorry for all the code style changes, forgot to turn off auto-formatting. I can fix that, but all the important bits are at the top/bottom.

andywer commented 8 years ago

Merged it into develop. I think the formatting is fine. Just had no time yet to spare the Lang.addMessages and just export a JSON object yet ;)