decord/source/3718_n.js
2026-07-27 11:26:19 +00:00

53 lines
1.9 KiB
JavaScript

// Module ID: 3718
// Function ID: 28462
// Name: n
// Dependencies: [3713]
// Module 3718 (n)
const fn = function n(moment) {
return moment.defineLocale("en-gb", {
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" },
calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" },
relativeTime: { future: "in %s", past: "%s ago", s: "a few seconds", ss: "%d seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" },
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal(arg0) {
const result = arg0 % 10;
let str = "th";
let str2 = "th";
if (1 !== ~~arg0 % 100 / 10) {
let str3 = "st";
if (1 !== result) {
let str4 = "nd";
if (2 !== result) {
if (3 === result) {
str = "rd";
}
str4 = str;
}
str3 = str4;
}
str2 = str3;
}
return arg0 + str2;
},
week: { dow: 1, doy: 4 }
});
};
if ("object" === typeof exports) {
if (undefined !== module) {
if ("function" === typeof require) {
fn(require("t"));
}
}
}
if ("function" === typeof globalThis.define) {
if (globalThis.define.amd) {
globalThis.define(["../moment"], fn);
}
}
fn(this.moment);