<prompt> Translate the following text to SwahiliBut as the invaders advanced north towards Rome, Naples successfully linked up with the then powerful maritime republic of neighboring Amalfi.  <response>: Lakini kwa kuwa wavamizi waliendelea kuelekea kaskazini kuelekea Roma, Naples ilifanikiwa kuungana na Jamhuri ya Amalfi iliyokuwa na nguvu sana wakati huo. 