Questions and discussions about

i want pretty url . so config/main.php i added a urlmanager so i got error Invalid Configuration – yii\base\InvalidConfigException

UrlRule::pattern must be set. error

 	'urlManager' => [
        'enablePrettyUrl' => true,
        'showScriptName' => false,
'rules' => [
		'site/set-language' => 'site/set-language',  
		'site/set-language?lang=<lang>' => 'site/set-language',
        ],
    ],
],