Edison Motors has built diesel-electric truck that operates essentially like a diesel-electric locomotive. Last I read it got whatever certifications are needed and is now 100% street legal. They intend to also build retrofits for existing semi trucks.
https://www.edisonmotors.ca/