-
Notifications
You must be signed in to change notification settings - Fork 92
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 defining in pluginOptions is ignoring #10
Comments
While this fix is not related.. your issue is different: You MUST not set echo DatePicker::widget([
'language' => 'en',
'pluginOptions' => [
'format'=>'dd-mm-yy'
]
]) |
Thanks. It just was worked in pluginOptions before, so I've noticed changes and reported them. |
Please read my last comment again. The fix for initLanguage is not related to this widget or issue. For your language related fix - DO NOT pass echo DatePicker::widget([
'language' => 'en',
'pluginOptions' => [
'format'=>'dd-mm-yy'
]
]) |
Yes, I understood that and checked code already, it's working when language passing not as |
I'm using 1.2.0 widget with Russian language defined in application config:
In this case all datepickers will use Russian language.
But if you want to use english language for specific widget -
pluginOptions
language
property will be ignored:'language' => 'en-GB'
isn't working too. And even if no language setted in application configpluginOptions
language
will be ignored.// Assets were cleaned up on each test.
The text was updated successfully, but these errors were encountered: