Skip to content

Commit 15e53c8

Browse files
author
Eonasdan
committed
Merge pull request Eonasdan#129 from Davidhidalgo/patch-2
Get the momentjs lang by default
2 parents e2a511c + fc5a55a commit 15e53c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/bootstrap-datetimepicker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
(function ($, moment) {
4545
if (typeof moment === 'undefined') {
4646
alert("momentjs is requried");
47-
throw new Error('momentjs is requried');
47+
throw new Error('momentjs is required');
4848
};
4949

5050
var dpgId = 0,
@@ -62,7 +62,7 @@
6262
startDate: new pMoment({ y: 1970 }),
6363
endDate: new pMoment().add(50, "y"),
6464
collapse: true,
65-
language: "en",
65+
language: pMoment.lang(),
6666
defaultDate: "",
6767
disabledDates: [],
6868
enabledDates: false,

0 commit comments

Comments
 (0)