Moved locale detection to Router::initialize()