datepicker-zh-TW.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Chinese initialisation for the jQuery UI date picker plugin. */
  2. /* Written by Ressol (ressol@gmail.com). */
  3. (function( factory ) {
  4. if ( typeof define === "function" && define.amd ) {
  5. // AMD. Register as an anonymous module.
  6. define([ "../datepicker" ], factory );
  7. } else {
  8. // Browser globals
  9. factory( jQuery.datepicker );
  10. }
  11. }(function( datepicker ) {
  12. datepicker.regional['zh-TW'] = {
  13. closeText: '關閉',
  14. prevText: '<上月',
  15. nextText: '下月>',
  16. currentText: '今天',
  17. monthNames: ['一月','二月','三月','四月','五月','六月',
  18. '七月','八月','九月','十月','十一月','十二月'],
  19. monthNamesShort: ['一月','二月','三月','四月','五月','六月',
  20. '七月','八月','九月','十月','十一月','十二月'],
  21. dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
  22. dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
  23. dayNamesMin: ['日','一','二','三','四','五','六'],
  24. weekHeader: '周',
  25. dateFormat: 'yy/mm/dd',
  26. firstDay: 1,
  27. isRTL: false,
  28. showMonthAfterYear: true,
  29. yearSuffix: '年'};
  30. datepicker.setDefaults(datepicker.regional['zh-TW']);
  31. return datepicker.regional['zh-TW'];
  32. }));