X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=resources%2Flib%2Fmoment%2Flocale%2Fsr.js;h=f732316ae7edcfec3a198b3efcc8d19ecfb78a8a;hp=d008282ee83cd40afdfd3fdfbad1f134b52324f6;hb=9964ca1a390c446397dcd466916ffed356cdc3c9;hpb=80efaa02822abc740653580ba1d6f5872a74b4dd diff --git a/resources/lib/moment/locale/sr.js b/resources/lib/moment/locale/sr.js index d008282ee8..f732316ae7 100644 --- a/resources/lib/moment/locale/sr.js +++ b/resources/lib/moment/locale/sr.js @@ -3,13 +3,15 @@ // author : Milan Janačković : https://github.com/milan-j (function (factory) { - if (typeof define === 'function' && define.amd) { + // Comment out broken wrapper, see T145382 + /*if (typeof define === 'function' && define.amd) { define(['moment'], factory); // AMD } else if (typeof exports === 'object') { module.exports = factory(require('../moment')); // Node } else { - factory(window.moment); // Browser global - } + factory((typeof global !== 'undefined' ? global : this).moment); // node or other global + }*/ + factory(this.moment); }(function (moment) { var translator = { words: { //Different grammatical cases @@ -42,6 +44,7 @@ weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'], longDateFormat: { LT: 'H:mm', + LTS : 'LT:ss', L: 'DD. MM. YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY LT', @@ -96,6 +99,7 @@ y : 'godinu', yy : translator.translate }, + ordinalParse: /\d{1,2}\./, ordinal : '%d.', week : { dow : 1, // Monday is the first day of the week.