<prompt> Translate the following text to SwahiliHowever, she contained herself as best she might, consoled by the reflection that her reasoning had been justified by events.  <response>: Hata hivyo, alijizuia kadiri alivyoweza, akifarijiwa na wazo la kwamba sababu zake zilikuwa zimethibitishwa na matukio. 