Kichi in Jungle Jeopardy (2006), a historical children's novel of the Mayans, written by Lila Guzman, illustrated by Regan Johnson.
Kichi the blue chihuahua was a pampered temple dog. His life changed dramatically when a slave-boy, Uxmal, was brought to serve the temple, and it turned out Uxmal was able to speak dog!
When raiders kidnap Kichi's conversant friend, he leaves the safe place he has always knownl, facing dangers of the jungle to save Uxma.