From: bangnk Date: Mon, 2 Sep 2013 07:55:03 +0000 (+0700) Subject: Add Vietnamese language X-Git-Tag: 2.3.0~46^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b17be1edb49c659b17813c920ef39fa6878db374;p=thirdparty%2Fmoment.git Add Vietnamese language --- diff --git a/lang/vn.js b/lang/vn.js new file mode 100644 index 000000000..7c558da6f --- /dev/null +++ b/lang/vn.js @@ -0,0 +1,48 @@ +// moment.js language configuration +// language : vietnamese (vn) +// author : Bang Nguyen : https://github.com/bangnk + +require('../moment').lang('vn', { + months : "tháng một_tháng hai_tháng ba_tháng tư_tháng năm_tháng sáu_tháng bảy_tháng tám_tháng chín_tháng mười_tháng mười một_tháng mười hai".split("_"), + monthsShort : "Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"), + weekdays : "chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"), + weekdaysShort : "CN_T2_T3_T4_T5_T6_T7".split("_"), + weekdaysMin : "CN_T2_T3_T4_T5_T6_T7".split("_"), + longDateFormat : { + LT : "HH:mm", + L : "DD/MM/YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY LT", + LLLL : "dddd D MMMM YYYY LT" + }, + calendar : { + sameDay: "[Hôm nay lúc] LT", + nextDay: '[Ngày mai lúc] LT', + nextWeek: 'dddd [tới lúc] LT', + lastDay: '[Hôm qua lúc] LT', + lastWeek: 'dddd [rồi lúc] LT', + sameElse: 'L' + }, + relativeTime : { + future : "%s tới", + past : "%s trước", + s : "vài giây", + m : "một phút", + mm : "%d phút", + h : "một giờ", + hh : "%d giờ", + d : "một ngày", + dd : "%d ngày", + M : "một tháng", + MM : "%d tháng", + y : "một năm", + yy : "%d năm" + }, + ordinal : function (number) { + return number; + }, + 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. + } +}); diff --git a/min/lang/vn.js b/min/lang/vn.js new file mode 100644 index 000000000..6b8116b44 --- /dev/null +++ b/min/lang/vn.js @@ -0,0 +1,4 @@ +// moment.js language configuration +// language : vietnamese (vn) +// author : Bang Nguyen : https://github.com/bangnk +!function(){function t(t){t.lang("vn",{months:"th\xe1ng m\u1ed9t_th\xe1ng hai_th\xe1ng ba_th\xe1ng t\u01b0_th\xe1ng n\u0103m_th\xe1ng s\xe1u_th\xe1ng b\u1ea3y_th\xe1ng t\xe1m_th\xe1ng ch\xedn_th\xe1ng m\u01b0\u1eddi_th\xe1ng m\u01b0\u1eddi m\u1ed9t_th\xe1ng m\u01b0\u1eddi hai".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [r\u1ed3i l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},ordinal:function(t){return t},week:{dow:1,doy:4}})}"function"==typeof define&&define.amd&&define(["moment"],t),"undefined"!=typeof window&&window.moment&&t(window.moment)}(); \ No newline at end of file