y : "سنة",
yy : "%d سنوات"
},
- ordinal : function (number) {
- return '';
- },
week : {
dow : 6, // Saturday is the first day of the week.
doy : 12 // The week that contains Jan 1st is the first week of the year.
y : "سنة",
yy : "%d سنوات"
},
- ordinal : function (number) {
- return '';
- },
week : {
dow : 6, // Saturday is the first day of the week.
doy : 12 // The week that contains Jan 1st is the first week of the year.
var lastDigit = number % 10,
last2Digits = number % 100;
if (number === 0) {
- return '-ев';
+ return number + '-ев';
} else if (last2Digits === 0) {
- return '-ен';
+ return number + '-ен';
} else if (last2Digits > 10 && last2Digits < 20) {
- return '-ти';
+ return number + '-ти';
} else if (lastDigit === 1) {
- return '-ви';
+ return number + '-ви';
} else if (lastDigit === 2) {
- return '-ри';
+ return number + '-ри';
} else if (lastDigit === 7 || lastDigit === 8) {
- return '-ми';
+ return number + '-ми';
} else {
- return '-ти';
+ return number + '-ти';
}
},
week : {
y : "un any",
yy : "%d anys"
},
- ordinal : function (number) {
- return 'º';
- },
+ ordinal : '%dº',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
y : translate,
yy : translate
},
- ordinal : function (number) {
- return '.';
- },
+ ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
y : "пĕр çул",
yy : "%d çул"
},
- ordinal : function (number) {
- return '-мĕш';
- },
+ ordinal : '%d-мĕш',
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
y : "år",
yy : "%d år"
},
- ordinal : function (number) {
- return '.';
- },
+ ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
y : "einem Jahr",
yy : "%d Jahren"
},
- ordinal : function (number) {
- return '.';
- },
+ ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
yy : "%d years"
},
ordinal : function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
+ var b = number % 10,
+ output = (~~ (number % 100 / 10) === 1) ? 'th' :
(b === 1) ? 'st' :
(b === 2) ? 'nd' :
(b === 3) ? 'rd' : 'th';
+ return number + output;
}
});
yy : "%d years"
},
ordinal : function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
+ var b = number % 10,
+ output = (~~ (number % 100 / 10) === 1) ? 'th' :
(b === 1) ? 'st' :
(b === 2) ? 'nd' :
(b === 3) ? 'rd' : 'th';
+ return number + output;
},
week : {
dow : 1, // Monday is the first day of the week.
y : "jaro",
yy : "%d jaroj"
},
- ordinal : function (number) {
- return "a";
- },
+ ordinal : "%da",
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
y : "un año",
yy : "%d años"
},
- ordinal : function (number) {
- return 'º';
- },
+ ordinal : '%dº',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
y : "aasta",
yy : "%d aastat"
},
- ordinal : function (number) {
- return '.';
- },
+ ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
y : "urte bat",
yy : "%d urte"
},
- ordinal : function (number) {
- return '.';
- },
+ ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
y : translate,
yy : translate
},
- ordinal : function (number) {
- return ".";
- },
+ ordinal : "%d.",
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
yy : "%d années"
},
ordinal : function (number) {
- return number === 1 ? 'er' : 'ème';
+ return number + (number === 1 ? 'er' : 'ème');
}
});
yy : "%d années"
},
ordinal : function (number) {
- return number === 1 ? 'er' : 'ème';
+ return number + (number === 1 ? 'er' : 'ème');
},
week : {
dow : 1, // Monday is the first day of the week.
y : "un ano",
yy : "%d anos"
},
- ordinal : function (number) {
- return 'º';
- },
+ ordinal : '%dº',
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
MM : "%d חודשים",
y : "שנה",
yy : "%d שנים"
- },
- ordinal : function (number) {
- return ''; // Function is not required for the Hebrew language.
}
});
y : translate,
yy : translate
},
- ordinal : function (number) {
- return '.';
-
- },
+ ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
y : "setahun",
yy : "%d tahun"
},
- ordinal : function (number) {
- return '';
- },
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
y : translate,
yy : translate
},
- ordinal : function (number) {
- return '.';
- },
+ ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
y : "un anno",
yy : "%d anni"
},
- ordinal: function () {
- return 'º';
- },
+ ordinal: '%dº',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
MM : "%dヶ月",
y : "1年",
yy : "%d年"
- },
- ordinal : function (number) {
- return '';
}
});
MM : "%dヶ月",
y : "1年",
yy : "%d年"
- },
- ordinal : function (number) {
- return '';
}
});
y : "일년",
yy : "%d년"
},
- ordinal : function (number) {
- return '일';
- }
+ ordinal : '%d일'
});
y : "일년",
yy : "%d년"
},
- ordinal : function (number) {
- return '일';
- }
+ ordinal : '%d일'
});
y : "gadu",
yy : relativeTimeWithPlural
},
- ordinal : function (number) {
- return '.';
- },
+ ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
y : "ett år",
yy : "%d år"
},
- ordinal : function (number) {
- return '.';
- },
+ ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
y : "एक बर्ष",
yy : "%d बर्ष"
},
- ordinal : function (number) {
- return '';
- },
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
yy : "%d jaar"
},
ordinal : function (number) {
- return (number === 1 || number === 8 || number >= 20) ? 'ste' : 'de';
+ return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
},
week : {
dow : 1, // Monday is the first day of the week.
y : "rok",
yy : translate
},
- ordinal : function (number) {
- return '.';
- },
+ ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
y : "um ano",
yy : "%d anos"
},
- ordinal : function (number) {
- return 'º';
- }
+ ordinal : '%dº'
});
y : "um ano",
yy : "%d anos"
},
- ordinal : function (number) {
- return 'º';
- },
+ ordinal : '%dº',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
y : "un an",
yy : "%d ani"
},
- ordinal : function (number) {
- return '';
- },
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
y : "год",
yy : relativeTimeWithPlural
},
- ordinal : function (number) {
- return '.';
- },
+ ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
y : "eno leto",
yy : translate
},
- ordinal : function (number) {
- return '.';
- },
+ ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
yy : "%d år"
},
ordinal : function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'e' :
+ var b = number % 10,
+ output = (~~ (number % 100 / 10) === 1) ? 'e' :
(b === 1) ? 'a' :
(b === 2) ? 'a' :
(b === 3) ? 'e' : 'e';
+ return number + output;
},
week : {
dow : 1, // Monday is the first day of the week.
MM : "%d เดือน",
y : "1 ปี",
yy : "%d ปี"
- },
- ordinal : function (number) {
- return '';
}
});
},
ordinal : function (number) {
if (number === 0) { // special case for zero
- return "'ıncı";
+ return number + "'ıncı";
}
var a = number % 10,
b = number % 100 - a,
c = number >= 100 ? 100 : null;
- return suffixes[a] || suffixes[b] || suffixes[c];
+ return number + (suffixes[a] || suffixes[b] || suffixes[c]);
},
week : {
dow : 1, // Monday is the first day of the week.
y : "asgas",
yy : "%d isgasn"
},
- ordinal : function (number) {
- return '';
- },
week : {
dow : 6, // Saturday is the first day of the week.
doy : 12 // The week that contains Jan 1st is the first week of the year.
y : "ⴰⵙⴳⴰⵙ",
yy : "%d ⵉⵙⴳⴰⵙⵏ"
},
- ordinal : function (number) {
- return '';
- },
week : {
dow : 6, // Saturday is the first day of the week.
doy : 12 // The week that contains Jan 1st is the first week of the year.
MM : "%d个月",
y : "1年",
yy : "%d年"
- },
- ordinal : function (number) {
- return '';
}
});
MM : "%d個月",
y : "一年",
yy : "%d年"
- },
- ordinal : function (number) {
- return '';
}
});
}
function ordinalizeToken(func) {
return function (a) {
- var b = func.call(this, a);
- return b + this.lang().ordinal(b);
+ return this.lang().ordinal(func.call(this, a));
};
}
},
ordinal : function (number) {
- return '';
+ return this._ordinal.replace("%d", number);
},
+ _ordinal : "%d",
preparse : function (string) {
return string;
// Set default language, other languages will inherit from English.
moment.lang('en', {
ordinal : function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
+ var b = number % 10,
+ output = (~~ (number % 100 / 10) === 1) ? 'th' :
(b === 1) ? 'st' :
(b === 2) ? 'nd' :
(b === 3) ? 'rd' : 'th';
+ return number + output;
}
});