Skip to content

Instantly share code, notes, and snippets.

@tiendq
Created March 27, 2013 08:01
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save tiendq/5252530 to your computer and use it in GitHub Desktop.
Save tiendq/5252530 to your computer and use it in GitHub Desktop.
Vietnamese localization for the jQuery UI date picker plugin. Tested with jQuery UI 1.10.2
/* Vietnamese localization for the jQuery UI date picker plugin. */
/* Written by Tien Do (tiendq@gmail.com) */
jQuery(function ($)
{
$.datepicker.regional["vi-VN"] =
{
closeText: "Đóng",
prevText: "Trước",
nextText: "Sau",
currentText: "Hôm nay",
monthNames: ["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"],
monthNamesShort: ["Một", "Hai", "Ba", "Bốn", "Năm", "Sáu", "Bảy", "Tám", "Chín", "Mười", "Mười một", "Mười hai"],
dayNames: ["Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy"],
dayNamesShort: ["CN", "Hai", "Ba", "Tư", "Năm", "Sáu", "Bảy"],
dayNamesMin: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
weekHeader: "Tuần",
dateFormat: "dd/mm/yy",
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ""
};
$.datepicker.setDefaults($.datepicker.regional["vi-VN"]);
});
@ngnam
Copy link

ngnam commented Sep 27, 2016

thanks YOu!

@duydt1294
Copy link

Very helpful !!

@quangbeo216
Copy link

good job. cảm ơn

@tangduongtrieu
Copy link

Thanks you !

@hoaihan17894
Copy link

Very helpful, Thanks!

@panpic
Copy link

panpic commented Dec 10, 2020

Great. Thank you for your tutorial

@huynhthaihung2765
Copy link

huynhthaihung2765 commented Jul 17, 2021

Thanks you

@BaoTruong-dev
Copy link

Thank you so much!!!

@khoa2698
Copy link

good job bro!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment