<prompt> Translate the following text to SwahiliBut the key figure in the sultanate was Tun Perak, bendahara prime minister and military commander.  <response>: Lakini mtu muhimu katika sultanate alikuwa Tun Perak, bendahara waziri mkuu na kamanda wa kijeshi. 