A
A
artem1633972016-12-01 19:08:20
Yii
artem163397, 2016-12-01 19:08:20

How to change the language of FullCalendar and Yii2?

Hello everyone, besides this, I don’t know how to make it so that when you click on the time, a window appears with this time. C solved the issue, the rest with a click on the time in days.
<?= \yii2fullcalendar\yii2fullcalendar::widget(array(
'events'=> $events,
'header' => [
'center'=>'',
'left'=>'title',
'right'=>' prev,month,agendaWeek,agendaDay,next'
],
'clientOptions' => [
'eventLimitClick'=>new \yii\web\JsExpression('function (cellInfo, jsEvent) { showEvents(cellInfo.date, cellInfo.segs); }')
],
));
?>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
krypt3r, 2016-12-02
@krypt3r

Isn't it - https://fullcalendar.io/docs/text/locale/ ?

M
Maxim Fedorov, 2016-12-02
@qonand

How to change the language of FullCalendar and Yii2?

<?= yii2fullcalendar\yii2fullcalendar::widget([
    'options' => [
        'lang' => 'ru',  // тут указываем нужный язык
    ]
]);
?>

Hello everyone, in addition to this, I don’t know how to make it so that when you click on the time, a
window appears with this time

A click on a time is a click on the calendar event object. Accordingly, you need to catch the js-event that occurs when you click on the object and then get the information you need from it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question