Yii2 port of the yii-multilingual-behavior.