I created my en_us folder inside messages and also added a index.php file. My question is, how to go from here so I can have the data available under Yii::t for example? I should probably load the file somewhere and make it available through the application.
I’m guessing English (US) will be your default/local language. If that’s the case you do not need to add a translation file in messages for it. say for example you want to add zh_cn(mandarin). you could create messages/zh_cn
next decide on translation categories (yii is reserved for yii core). example say your category is titles, you would create the file messages/zh_cn/titles.php
in that file you will return an array of translations like