If the trailer has a channel-steel frame and the wires don’t already run inside the box/channel, that’s the first thing to do is fish the wire inside the channel so it’s protected. Any place the wire passes through the frame, you must install protective grommets or the wire insulation will get damaged by constant vibration.
If the trailers are not box channel construction, then your options are to either add conduit or to go to wire that has a tougher shield.
I have used extension cords once at the request of a friend who found this method on the internet. They are tough, but I found installation to be slow because splicing in marker lights and plugs is a slower process than what I’m used to with bare wires. I didn’t get to see how long the extension cords lasted as he sold the boat 3-4 years later.
However you do it, run wires where they receive minimal sun exposure, use waterproof heat-shrink marine splices/connectors, and use wire loom wherever the wire comes out and is exposed and you’re wire will last a lot longer.