You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the code, plugin language is set automatically using Yii::$app->language property, but this
doesn't work. language widget property must be set explicitly to the short ISO code in order to translate
the widget.
A simple change in FileInput::initWidget() would allow automatic language selection.
$this->initLanguage('language', false);
Setting the short message format will load the correct language.
Prerequisites
master
branch of yii2-widget-fileinput.Steps to reproduce the issue
Expected behavior and actual behavior
According to the code, plugin language is set automatically using
Yii::$app->language
property, but thisdoesn't work.
language
widget property must be set explicitly to the short ISO code in order to translatethe widget.
A simple change in
FileInput::initWidget()
would allow automatic language selection.Setting the short message format will load the correct language.
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: