mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 12:34:34 +08:00
Upgrade moment.js to version 2.11.2
In order to make future upgrades easier we don't rename the locale files anymore.
This commit is contained in:
@ -1,28 +1,28 @@
|
||||
// moment.js locale configuration
|
||||
// locale : malayalam (ml)
|
||||
// author : Floyd Pink : https://github.com/floydpink
|
||||
//! moment.js locale configuration
|
||||
//! locale : malayalam (ml)
|
||||
//! author : Floyd Pink : https://github.com/floydpink
|
||||
|
||||
(function (factory) {
|
||||
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
|
||||
}
|
||||
}(function (moment) {
|
||||
return moment.defineLocale('ml', {
|
||||
months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split("_"),
|
||||
monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split("_"),
|
||||
weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split("_"),
|
||||
weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split("_"),
|
||||
weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split("_"),
|
||||
;(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined'
|
||||
&& typeof require === 'function' ? factory(require('../moment')) :
|
||||
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
||||
factory(global.moment)
|
||||
}(this, function (moment) { 'use strict';
|
||||
|
||||
|
||||
var ml = moment.defineLocale('ml', {
|
||||
months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
|
||||
monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
|
||||
weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
|
||||
weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
|
||||
weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
|
||||
longDateFormat : {
|
||||
LT : "A h:mm -നു",
|
||||
L : "DD/MM/YYYY",
|
||||
LL : "D MMMM YYYY",
|
||||
LLL : "D MMMM YYYY, LT",
|
||||
LLLL : "dddd, D MMMM YYYY, LT"
|
||||
LT : 'A h:mm -നു',
|
||||
LTS : 'A h:mm:ss -നു',
|
||||
L : 'DD/MM/YYYY',
|
||||
LL : 'D MMMM YYYY',
|
||||
LLL : 'D MMMM YYYY, A h:mm -നു',
|
||||
LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
|
||||
},
|
||||
calendar : {
|
||||
sameDay : '[ഇന്ന്] LT',
|
||||
@ -33,32 +33,39 @@
|
||||
sameElse : 'L'
|
||||
},
|
||||
relativeTime : {
|
||||
future : "%s കഴിഞ്ഞ്",
|
||||
past : "%s മുൻപ്",
|
||||
s : "അൽപ നിമിഷങ്ങൾ",
|
||||
m : "ഒരു മിനിറ്റ്",
|
||||
mm : "%d മിനിറ്റ്",
|
||||
h : "ഒരു മണിക്കൂർ",
|
||||
hh : "%d മണിക്കൂർ",
|
||||
d : "ഒരു ദിവസം",
|
||||
dd : "%d ദിവസം",
|
||||
M : "ഒരു മാസം",
|
||||
MM : "%d മാസം",
|
||||
y : "ഒരു വർഷം",
|
||||
yy : "%d വർഷം"
|
||||
future : '%s കഴിഞ്ഞ്',
|
||||
past : '%s മുൻപ്',
|
||||
s : 'അൽപ നിമിഷങ്ങൾ',
|
||||
m : 'ഒരു മിനിറ്റ്',
|
||||
mm : '%d മിനിറ്റ്',
|
||||
h : 'ഒരു മണിക്കൂർ',
|
||||
hh : '%d മണിക്കൂർ',
|
||||
d : 'ഒരു ദിവസം',
|
||||
dd : '%d ദിവസം',
|
||||
M : 'ഒരു മാസം',
|
||||
MM : '%d മാസം',
|
||||
y : 'ഒരു വർഷം',
|
||||
yy : '%d വർഷം'
|
||||
},
|
||||
meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
|
||||
isPM : function (input) {
|
||||
return /^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(input);
|
||||
},
|
||||
meridiem : function (hour, minute, isLower) {
|
||||
if (hour < 4) {
|
||||
return "രാത്രി";
|
||||
return 'രാത്രി';
|
||||
} else if (hour < 12) {
|
||||
return "രാവിലെ";
|
||||
return 'രാവിലെ';
|
||||
} else if (hour < 17) {
|
||||
return "ഉച്ച കഴിഞ്ഞ്";
|
||||
return 'ഉച്ച കഴിഞ്ഞ്';
|
||||
} else if (hour < 20) {
|
||||
return "വൈകുന്നേരം";
|
||||
return 'വൈകുന്നേരം';
|
||||
} else {
|
||||
return "രാത്രി";
|
||||
return 'രാത്രി';
|
||||
}
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
return ml;
|
||||
|
||||
}));
|
Reference in New Issue
Block a user