Yii::t('frontend', 'Personal Data')
return[
'Personal Data' => 'Личные данные',
];
'Personal Data' => 'Personal <strong>Data</strong>',
You can configure application languages in the application configuration like the following:
return [
// set target language to be Russian
'language' => 'ru-RU',
// set source language to be English
'sourceLanguage' => 'en-US',
......
];
The default value for the source language is en-US, meaning US English.
Yii::t('frontend', 'About {name}', ['name' => '<strong>'.$model->name.'</strong>']),
'About {name}' => 'Подробнее о {name}',