Yii2 multilanguage URLs
<p>is it possible to create a multilanguage site in Yii2, and also have the URLs translated? Example:</p>

<pre><code>mysite.com/anmeldung
mysite.com/en/login
</code></pre>

<p>Both URLs should point to the same controller/action (e.g. site/login ), but the language should be respected - so the first one is the default language, the second one is en = english</p>

<p>Also when creating a URL <code>Url::to('site/login')</code> should create the correct translated URL according to the current language.</p>

<p>I think this is a standard issue, however, I was not able to find a solution or plugin for that. All the plugins I found were just adding the language param in fron onf the url slug, but using the same url slug for all lanuages.</p>

<p>Any help and ideas appreciated.
Thanks.</p>