The phrase
"to know the locals" means to become acquainted with the people who live in a particular place or community. It refers to having a better understanding of the culture, traditions, and daily life of the people who are from that area.
Full definition