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