Formatter shortcut to go through Yii::t() in grid view


In gridview, when I want to display a localized string, I have to go through

    'value' => function($model, $key, $index, $widget) {

        return Yii::t('domain', $model->status);


Wouldn’t it be useful to get a shortcut like this:




The formatter would return Yii::t(‘domain’, $model->status), like it does it for date, currency, or other format.

Thank you.