Skip to content

Language defining in pluginOptions is ignoring #10

Closed
@antonkomarev

Description

@antonkomarev

I'm using 1.2.0 widget with Russian language defined in application config:

'language' => 'ru-RU',

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:

$form->field($model, 'birthDate')->widget(
    DatePicker::classname(),
    [
        'convertFormat' => true,
        'pluginOptions' => [
            'language' => 'en',
            'endDate' => '31-12-1999',
            'format' => 'dd-MM-yyyy',
            'autoclose' => true,
            'startView' => 'decade',
        ]
    ]
);

'language' => 'en-GB' isn't working too. And even if no language setted in application config pluginOptions language will be ignored.

// Assets were cleaned up on each test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions