UrlManager and "default" params

I have this pattern for urls:
'<lang:([a-z]{2})>/<controller>/<action>'
Now using \yii\helpers\Url::current() does automatically include the lang param.
But \yii\helpers\Url::to() does not do that automatically, I have to pass it additonally as a param.

Has anybody encountered/solved this?

you have to pass all require parameter in Url::to() method
https://www.yiiframework.com/doc/api/2.0/yii-helpers-baseurl#to()-detail