如何更改Bootstrap Datepicker语言 [英] How to change Bootstrap Datepicker Language
问题描述
我的网站上有一个Bootstrap Datepicker,默认情况下它使用英语,但是我的网站使用印尼语。为了适应性,我想将bootstrap datepicker语言更改为印度尼西亚语。
i have a Bootstrap Datepicker in my site, in default it use English Language, but my site use Indonesian Language. I wanna change bootstrap datepicker language to Indonesian for suitability.
我应该在库中的代码哪里更改?还是有任何其他插件?
Where is the codes in the library should I change? or is there any other plugin?
推荐答案
没有官方的Bootstrap Datepicker,因此很难给出答案,因为您可以使用任何数量的不同日期选择器.....
There is no official Bootstrap Datepicker, so its hard to give an answer, as you could be using any number of different date pickers.....
但是我确实知道这一个具有很好的语言支持,我相信印度尼西亚语言代码是 id,在这种情况下,它支持该语言。 p>
But I do know that This One has pretty good language support, I believe the Indonesian language code is "id", in which case it supports this language.
$('.datepicker').datepicker({
language: "id"
});
这篇关于如何更改Bootstrap Datepicker语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!