<prompt> Translate the following text to SwahiliAs Rajagriha, the capital of the Magadha kingdom, the town was frequented at different times by both Buddha and his contemporary Vardhamana Mahavira, the founder of the Jain religion.  <response>: Rajagriha, mji mkuu wa ufalme wa Magadha, ulitembelewa mara kwa mara na Buddha na Vardhana Mahavira, mwanzilishi wa dini ya Jain. 