133 lines
3.4 KiB
JavaScript
133 lines
3.4 KiB
JavaScript
// Metro module 1953 (f1954).
|
|
import * as _buildLocalizeFn from "./buildLocalizeFn";
|
|
import { __esModule } from "./buildLocalizeFn";
|
|
const r16 = _buildLocalizeFn ? __esModule ? _buildLocalizeFn : {
|
|
default: _buildLocalizeFn
|
|
} : {
|
|
default: _buildLocalizeFn
|
|
};
|
|
export default {
|
|
ordinalNumber: function ordinalNumber(a0, a1) {
|
|
const r6 = Number(a0);
|
|
const r1 = r6 % 100;
|
|
if (!(!(20 < r1) && !(r1 < 10))) {
|
|
const r10 = r1 % 10;
|
|
if (r10 === 1) {
|
|
return r6 + "st";
|
|
}
|
|
if (r10 === 2) {
|
|
return r6 + "nd";
|
|
}
|
|
if (r10 === 3) {
|
|
return r6 + "rd";
|
|
}
|
|
}
|
|
return r6 + "th";
|
|
},
|
|
era: (0, r16.default)({
|
|
values: {
|
|
narrow: ["B", "A"],
|
|
abbreviated: ["BC", "AD"],
|
|
wide: ["Before Christ", "Anno Domini"]
|
|
},
|
|
defaultWidth: "wide"
|
|
}),
|
|
quarter: (0, r16.default)({
|
|
values: {
|
|
narrow: ["1", "2", "3", "4"],
|
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
},
|
|
defaultWidth: "wide",
|
|
argumentCallback: function argumentCallback(a0) {
|
|
return a0 - 1;
|
|
}
|
|
}),
|
|
month: (0, r16.default)({
|
|
values: {
|
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
|
|
},
|
|
defaultWidth: "wide"
|
|
}),
|
|
day: (0, r16.default)({
|
|
values: {
|
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
},
|
|
defaultWidth: "wide"
|
|
}),
|
|
dayPeriod: (0, r16.default)({
|
|
values: {
|
|
narrow: {
|
|
am: "a",
|
|
pm: "p",
|
|
midnight: "mi",
|
|
noon: "n",
|
|
morning: "morning",
|
|
afternoon: "afternoon",
|
|
evening: "evening",
|
|
night: "night"
|
|
},
|
|
abbreviated: {
|
|
am: "AM",
|
|
pm: "PM",
|
|
midnight: "midnight",
|
|
noon: "noon",
|
|
morning: "morning",
|
|
afternoon: "afternoon",
|
|
evening: "evening",
|
|
night: "night"
|
|
},
|
|
wide: {
|
|
am: "a.m.",
|
|
pm: "p.m.",
|
|
midnight: "midnight",
|
|
noon: "noon",
|
|
morning: "morning",
|
|
afternoon: "afternoon",
|
|
evening: "evening",
|
|
night: "night"
|
|
}
|
|
},
|
|
defaultWidth: "wide",
|
|
formattingValues: {
|
|
narrow: {
|
|
am: "a",
|
|
pm: "p",
|
|
midnight: "mi",
|
|
noon: "n",
|
|
morning: "in the morning",
|
|
afternoon: "in the afternoon",
|
|
evening: "in the evening",
|
|
night: "at night"
|
|
},
|
|
abbreviated: {
|
|
am: "AM",
|
|
pm: "PM",
|
|
midnight: "midnight",
|
|
noon: "noon",
|
|
morning: "in the morning",
|
|
afternoon: "in the afternoon",
|
|
evening: "in the evening",
|
|
night: "at night"
|
|
},
|
|
wide: {
|
|
am: "a.m.",
|
|
pm: "p.m.",
|
|
midnight: "midnight",
|
|
noon: "noon",
|
|
morning: "in the morning",
|
|
afternoon: "in the afternoon",
|
|
evening: "in the evening",
|
|
night: "at night"
|
|
}
|
|
},
|
|
defaultFormattingWidth: "wide"
|
|
})
|
|
};
|
|
module.exports = exports.default;
|