shims.js 652 B

1234567891011121314151617181920212223242526272829303132
  1. 'use strict';
  2. angular.module('underscore', []).factory('_', function($window) {
  3. return $window._;
  4. });
  5. angular.module('jquery', []).factory('$', function($window) {
  6. return $window.$;
  7. });
  8. angular.module('moment', []).factory('moment', function($window) {
  9. $window.moment.lang('en', {
  10. relativeTime : {
  11. future: 'Expires in %s',
  12. past: 'Expired %s ago',
  13. s: 'seconds',
  14. m: 'a minute',
  15. mm: '%d minutes',
  16. h: 'an hour',
  17. hh: '%d hours',
  18. d: 'a day',
  19. dd: '%d days',
  20. M: 'a month',
  21. MM: '%d months',
  22. y: 'a year',
  23. yy: '%d years'
  24. }
  25. });
  26. return $window.moment;
  27. });