Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

language don't change #8

Open
paskuale75 opened this issue Apr 3, 2019 · 4 comments
Open

language don't change #8

paskuale75 opened this issue Apr 3, 2019 · 4 comments

Comments

@paskuale75
Copy link

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

@buttflattery
Copy link

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

@paskuale75
Copy link
Author

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
Copy link

s1lver commented Apr 4, 2019

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

@paskuale75
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants