Update UriObserver.php

Check if locale in uri is enabled