<prompt> Translate the following text to SwahiliSituated due east of Mysore, Srirangapatnam was the site of the battles against the Muslim ruler Tipu Sultan in the 1790s, in which the British gained control of the peninsula.  <response>: Mji wa Sriharangapatnam ulioko mashariki ya Mysore, ulikuwa eneo la vita dhidi ya mtawala wa Kiislamu Tipu Sultan katika miaka ya 1790 ambapo Waingereza walipata udhibiti wa peninsula. 