X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=resources%2Flib%2Fmoment%2Flocale%2Fnb.js;h=4fab78bd7120e6210961beedc00aea72d18d2f45;hb=9964ca1a390c446397dcd466916ffed356cdc3c9;hp=533659d58561b4b27760e830372d5a9d11ea5e15;hpb=160c028526b4fd77b0423870b2837a799d558140;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/lib/moment/locale/nb.js b/resources/lib/moment/locale/nb.js index 533659d585..4fab78bd71 100644 --- a/resources/lib/moment/locale/nb.js +++ b/resources/lib/moment/locale/nb.js @@ -4,13 +4,15 @@ // Sigurd Gartmann : https://github.com/sigurdga (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) { return moment.defineLocale('nb', { months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), @@ -20,6 +22,7 @@ weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), longDateFormat : { LT : 'H.mm', + LTS : 'LT.ss', L : 'DD.MM.YYYY', LL : 'D. MMMM YYYY', LLL : 'D. MMMM YYYY [kl.] LT', @@ -48,6 +51,7 @@ y : 'ett år', yy : '%d år' }, + ordinalParse: /\d{1,2}\./, ordinal : '%d.', week : { dow : 1, // Monday is the first day of the week.