I'm building a pop-up camper from the frame up (teardrop just wouldn't be big enough for the whole family). I ordered these LED deck lights

My plan was to mount them low in the cabin as nightlights.
When I ordered them they were marked as "12V LED Deck light" They arrived and they are on a string - the end of which has a transformer that converts 120V AC to 12V AC 0.5A. I guess I was hoping that they would come DC and battery ready.
My question: would I be able to splice the wire and run it from my 12V camper battery? Or would the switch from AC to DC make them non-functional? I'm NOT planning on using an inverter or even having a shore-power hook-up option (planning on boondocking a lot). So, if they won't from DC power, then I'm just going to send them back and start over with my search.
As always, thanks for your expertise and wisdom. You could prolly guess that I am NOT an electrical whiz.
Thom