aboutsummaryrefslogtreecommitdiffstats
path: root/ui/i18n/jquery.ui.datepicker-ja.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/i18n/jquery.ui.datepicker-ja.js')
-rw-r--r--ui/i18n/jquery.ui.datepicker-ja.js21
1 files changed, 17 insertions, 4 deletions
diff --git a/ui/i18n/jquery.ui.datepicker-ja.js b/ui/i18n/jquery.ui.datepicker-ja.js
index 4d0b63c77..b4dd2ebb4 100644
--- a/ui/i18n/jquery.ui.datepicker-ja.js
+++ b/ui/i18n/jquery.ui.datepicker-ja.js
@@ -1,7 +1,17 @@
/* Japanese initialisation for the jQuery UI date picker plugin. */
/* Written by Kentaro SATO (kentaro@ranvis.com). */
-jQuery(function($){
- $.datepicker.regional['ja'] = {
+(function( factory ) {
+ if ( typeof define === "function" && define.amd ) {
+
+ // AMD. Register as an anonymous module.
+ define([ "../jquery.ui.datepicker" ], factory );
+ } else {
+
+ // Browser globals
+ factory( jQuery.datepicker );
+ }
+}(function( datepicker ) {
+ datepicker.regional['ja'] = {
closeText: '閉じる',
prevText: '<前',
nextText: '次>',
@@ -19,5 +29,8 @@ jQuery(function($){
isRTL: false,
showMonthAfterYear: true,
yearSuffix: '年'};
- $.datepicker.setDefaults($.datepicker.regional['ja']);
-});
+ datepicker.setDefaults(datepicker.regional['ja']);
+
+ return datepicker.regional['ja'];
+
+}));