ESV: When Joshua and the sons of Israel had finished striking them with a great blow until they were wiped out, and when the remnant that remained of them had entered into the fortified cities,
NIV: So Joshua and the Israelites defeated them completely, but a few survivors managed to reach their fortified cities.
NASB: It came about when Joshua and the sons of Israel had finished striking them down in a very great defeat, until they were destroyed, and the survivors of them who escaped had entered the fortified cities,
CSB: So Joshua and the Israelites finished inflicting a terrible slaughter on them until they were destroyed, although a few survivors ran away to the fortified cities.
NLT: So Joshua and the Israelite army continued the slaughter and completely crushed the enemy. They totally wiped out the five armies except for a tiny remnant that managed to reach their fortified towns.
KJV: And it came to pass, when Joshua and the children of Israel had made an end of slaying them with a very great slaughter, till they were consumed, that the rest which remained of them entered into fenced cities.
NKJV: Then it happened, while Joshua and the children of Israel made an end of slaying them with a very great slaughter, till they had finished, that those who escaped entered fortified cities.