<prompt> Translate the following text to SwahiliThe new ruler of Melaka, Sri Maharajah, switched his allegiance to the Muslim trading fraternity by marrying into the Muslim faith, wedding the daughter of a sultan in Sumatra.  <response>: Mfalme wa Melaka, Sri Maharaja, alibadilisha uaminifu wake kwa ushirika wa biashara wa Kiislamu kwa kuoa katika imani ya Kiislamu, binti wa sultani wa Sumatra. 