-// moment.js language configuration
-// language : afrikaans (af)
+// moment.js locale configuration
+// locale : afrikaans (af)
// author : Werner Mollentze : https://github.com/wernerm
(function (factory) {
factory(window.moment); // Browser global
}
}(function (moment) {
- return moment.lang('af', {
+ return moment.defineLocale('af', {
months : "Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),
monthsShort : "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),
weekdays : "Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),
-// moment.js language configuration
-// language : belarusian (be)
+// moment.js locale configuration
+// locale : belarusian (be)
// author : Dmitry Demidov : https://github.com/demidov91
// author: Praleska: http://praleska.pro/
// Author : Menelion Elensúle : https://github.com/Oire
return weekdays[nounCase][m.day()];
}
- return moment.lang('be', {
+ return moment.defineLocale('be', {
months : monthsCaseReplace,
monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
weekdays : weekdaysCaseReplace,
-// moment.js language configuration
-// language : Burmese (mm)
+// moment.js locale configuration
+// locale : Burmese (mm)
// author : Squar team, mysquar.com
(function (factory) {
'၉': '9',
'၀': '0'
};
- return moment.lang('my', {
+ return moment.defineLocale('my', {
months: "ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),
monthsShort: "ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),
weekdays: "တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),
-// moment.js language configuration
-// language : tibetan (ti)
+// moment.js locale configuration
+// locale : tibetan (ti)
// author : Thupten N. Chakrishar : https://github.com/vajradog
(function (factory) {
'༠': '0'
};
- return moment.lang('ti', {
+ return moment.defineLocale('ti', {
months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split("_"),
monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split("_"),
weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split("_"),
Afrikaans
*************************************************/
-exports["lang:af"] = {
+exports["locale:af"] = {
setUp : function (cb) {
- moment.lang('af');
+ moment.locale('af');
moment.createFromInputFallback = function () {
throw new Error("input not handled by moment");
};
},
tearDown : function (cb) {
- moment.lang('en');
+ moment.locale('en');
cb();
},
test.equal(moment([2012, 0, 9]).format('w ww wo'), '2 02 2de', "Jan 9 2012 should be week 2");
test.equal(moment([2012, 0, 15]).format('w ww wo'), '2 02 2de', "Jan 15 2012 should be week 2");
- test.done();
- },
-
- "returns the name of the language" : function (test) {
- if (typeof module !== 'undefined' && module.exports) {
- test.equal(require('../../lang/af'), 'af', "module should export af");
- }
-
test.done();
}
};
Belarusian
*************************************************/
-exports["lang:be"] = {
+exports["locale:be"] = {
setUp : function (cb) {
- moment.lang('be');
+ moment.locale('be');
moment.createFromInputFallback = function () {
throw new Error("input not handled by moment");
};
},
tearDown : function (cb) {
- moment.lang('en');
+ moment.locale('en');
cb();
},
test.equal(moment([2012, 0, 8]).format('w ww wo'), '2 02 2-і', "Jan 8 2012 should be week 2");
test.equal(moment([2012, 0, 9]).format('w ww wo'), '3 03 3-і', "Jan 9 2012 should be week 3");
- test.done();
- },
-
- "returns the name of the language" : function (test) {
- if (typeof module !== 'undefined' && module.exports) {
- test.equal(require('../../lang/be'), 'be', "module should export be");
- }
-
test.done();
}
+
};
Myanmar Burmese
*************************************************/
-exports["lang:my"] = {
+exports["locale:my"] = {
setUp: function (cb) {
- moment.lang('my');
+ moment.locale('my');
moment.createFromInputFallback = function () {
throw new Error("input not handled by moment");
};
},
tearDown: function (cb) {
- moment.lang('en');
+ moment.locale('en');
cb();
},
test.equal(moment([2012, 0, 9]).format('w ww wo'), '၂ ၀၂ ၂', "Jan 9 2012 should be week 2");
test.equal(moment([2012, 0, 15]).format('w ww wo'), '၂ ၀၂ ၂', "Jan 15 2012 should be week 2");
- test.done();
- },
-
- "returns the name of the language": function (test) {
- if (typeof module !== 'undefined' && module.exports) {
- test.equal(require('../../lang/my'), 'my', "module should export my");
- }
-
test.done();
}
+
};
Tibetan
*************************************************/
-exports["lang:ti"] = {
+exports["locale:ti"] = {
setUp : function (cb) {
- moment.lang('ti');
+ moment.locale('ti');
moment.createFromInputFallback = function () {
throw new Error("input not handled by moment");
};
},
tearDown : function (cb) {
- moment.lang('en');
+ moment.locale('en');
cb();
},
test.equal(moment([2012, 0, 14]).format('w ww wo'), '༢ ༠༢ ༢', "Jan 14 2012 should be week 2");
test.equal(moment([2012, 0, 15]).format('w ww wo'), '༣ ༠༣ ༣', "Jan 15 2012 should be week 3");
- test.done();
- },
-
- "returns the name of the language" : function (test) {
- if (typeof module !== 'undefined' && module.exports) {
- test.equal(require('../../lang/ti'), 'ti', "module should export ti");
- }
-
test.done();
}
};