i18n application name


I wonder how to make i18n for the application name ? I tried this in my config file but it does not work:


'name'=>Yii::t('default', 'My application'),



put it in english, and than in your view or title do the Yii::t with app name, and add translation for it in messages

Take a look at here and here and you will get your answer.

Problem with Yii::t() in config/main.php is, as you see on a second link, an application configuration is loaded before processing request.