A
A
Alexander Lebedev2015-08-14 20:45:35
JavaScript
Alexander Lebedev, 2015-08-14 20:45:35

How to replace language in Bootstrap-Datepicker with Moment.js?

Good evening.
There is a manipulator site where I am trying out Bootstrap Datepicker. The main problem - I can not translate the calendar that pops up when you click on any field with a date. When you try to replace the locale in the standard way, the calendar simply stops popping up:

$('#name').datetimepicker(
      {language: 'ru'}
    );

There was an idea that the reason was the lack of a locale, but I looked, and in the moment-with-locales.min.js file there is a full Russian locale with days of the week, months, etc.
Question: what to do? :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bukovki, 2015-08-14
@sortarage

Instead of language: 'ru' try locale:'ru'

K
Kleyos, 2015-11-06
@Kleyos

and what to try instead of pickTime. At me on all parameters swears. I can't find a description of the parameters. version 4.35
, of course, you can get out of the situation,
but what about the parameters then

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question