Internationalisation of strings inside config dir

Hello,

I am quite new to Yii. I am managing a project built on Yii 2, and I am facing a little issue about internationalisation of some strings. Maybe due to my wrong approach.

I am using the Yii::t() function to wrap strings I want to be localised, and I defined the translations in the proper .po file. And this is working.

However I have some strings in files inside the config directory that are wrapped by the function, but these strings are not localised.

Is there a way to have localisation work also for what is inside config dir?

GP

Whatever inside the config dir is the application configuration. These are the files which are processed in the early stages when an http request is received in the server. Yii::t() works in the later stages when the http response is being send.