jQuery Globalize and AngularJS Integration in Under 100 Lines

The other day I threw together a quick proof-of-concept for integrating AngularJS with the jQuery Globalize Plugin. The first part is a simple utility Angular "service" which loads the appropriate JSON message bundle:

It is bootstrapped from run() in app.js:

Source code is available on Github. Just fire up launch.html to view the sample app initializing with different locales.

I'm still working on a more thorough evaluation of jQuery Globalize itself. Assuming it meets the criteria, a few more improvements come to mind:

  1. Currency filter
  2. Date/time filter
  3. Switching locales at runtime

Hope you found this one interesting!