<prompt> Translate the following text to SwahiliAs Palermo was in decline, Naples flourished as a brilliant cosmopolitan capital.  <response>: Palermo ilipokuwa ikizorota, Naples ilifanikiwa kuwa mji mkuu wenye kuvutia wa ulimwengu. 