<prompt> Translate the following text to SwahiliThe erstwhile pirate thus became a policeman during the last years of his life.  <response>: Hivyo, mwizi huyo wa zamani akawa polisi katika miaka ya mwisho ya maisha yake. 