title: Yii2: How to mass extract Yii::t() messages for localization?
body: <p>I have lots of Yii::t() commands in my application. Now I need to extract them somehow but I don't want to do this manually. How can I extract all those commands easily? Do I have to do it with regular expressions?</p>
  
  <p>I have read the <a href="https://www.yiiframework.com/doc/guide/2.0/en/tutorial-i18n" rel="nofollow noreferrer">documentation</a> but it doesn't state anything about this.</p>