datepicker-ja.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Japanese initialisation for the jQuery UI date picker plugin. */
  2. /* Written by Kentaro SATO (kentaro@ranvis.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['ja'] = {
  13. closeText: '閉じる',
  14. prevText: '<前',
  15. nextText: '次>',
  16. currentText: '今日',
  17. monthNames: ['1月','2月','3月','4月','5月','6月',
  18. '7月','8月','9月','10月','11月','12月'],
  19. monthNamesShort: ['1月','2月','3月','4月','5月','6月',
  20. '7月','8月','9月','10月','11月','12月'],
  21. dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'],
  22. dayNamesShort: ['日','月','火','水','木','金','土'],
  23. dayNamesMin: ['日','月','火','水','木','金','土'],
  24. weekHeader: '週',
  25. dateFormat: 'yy/mm/dd',
  26. firstDay: 0,
  27. isRTL: false,
  28. showMonthAfterYear: true,
  29. yearSuffix: '年'};
  30. datepicker.setDefaults(datepicker.regional['ja']);
  31. return datepicker.regional['ja'];
  32. }));