Closed ComradePashka closed 7 years ago
Bumping this issue.
what you propose @mmalisz ?
@tonydspaniard, well, I use two languages for my app: polish (pl-PL) and english (en-UK). As for polish, simple explode works, however, as stated in original report, en doesn't work. Given that, I had to make special case for 'en' -- detecting UK in Yii::$app->languages then producing proper language string. Haven't looked at the code of the widget, but I see that 'language' param is not defined within 'clientOptions', so maybe some switch-case on the widget side will be enough.
This has been fixed on latest update
if you set up language to 'en' there is no en.js file at langs folder of corresponding asset but only en_CA.js and en_GB.js, so if I try to use ISO-639 two-letters language variable at multilanguage site I will get error everytime I switch to English.