tecnocen-com / yii2-bootstrap-year-calendar

Yii2 widget for bootstrap-year-calendar plugin
Other
13 stars 3 forks source link

language don't change #8

Open paskuale75 opened 5 years ago

paskuale75 commented 5 years ago

I try to set language in the widget ... but nothing happens, why ? thanks

buttflattery commented 5 years ago

are there any errors for the missing lang file in the console, might be helpful how you are setting the $language in code .

paskuale75 commented 5 years ago

here the code:

echo Calendar::widget([
    'language' => 'it',
    'options' => [             
        // HTML attributes for the container.
        // the `tag` option is specially handled as the HTML tag name
        'id' => 'calendar'   
    ],    
    'clientOptions' => [
        // JS Options to be passed to the `calendar()` plugin.
        // see http://bootstrap-year-calendar.com/#Documentation/Options
        'dataSource' => Url::to(['//mensa/default/calendario-load-events']),
    ],
    'clientEvents' => [
        // JS Events for the `calendar()` plugin.
        // see http://bootstrap-year-calendar.com/#Documentation/Events
        'clickDay'=> $scriptClickDay
    ]
]);
s1lver commented 5 years ago

Verify that the file exists /bootstrap-year-calendar.it.js

paskuale75 commented 5 years ago

In /vendor folder no, it does not exist !!