嗨,我一直在多语言网站上使用孟加拉语,我要做的是,当语言设置为英语时,我需要用英语显示 jquery datepicker 日历,而对于孟加拉语,我需要用孟加拉语显示。
我使用了 jquery datepicker 本地化。
我已经完成了一些教程,并通过这个过程完成了其中的一部分。那就是我可以用英语和孟加拉语显示一月、二月等星期六、太阳等。但是当我在孟加拉语时,数字仍然是英文。
所以,我的问题是,有什么办法可以让我把数字 0-9 改成孟加拉数字吗?
jQuery(function($){
$.datepicker.regional['bn-BD'] = {"Name":"bn-BD","closeText":"Close","prevText":"Prev","nextText":"Next","currentText":"Today","monthNames":["জানুয়ারী","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর",""],"monthNamesShort":["জানু.","ফেব্রু.","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগ.","সেপ্টে.","অক্টো.","নভে.","ডিসে.",""],"dayNames":["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার"],"dayNamesShort":["রবি.","সোম.","মঙ্গল.","বুধ.","বৃহস্পতি.","শুক্র.","শনি."],"dayNamesMin":["র","স","ম","ব","ব","শ","শ"],"dateFormat":"dd-mm-yy","firstDay":1,"isRTL":false};
});
我在检测到孟加拉语作为默认语言时使用它,并在检测到默认语言为英语时设置为空。