<prompt> Translate the following text to SwahiliIf a ruler died without direct heir, his state lapsed into British hands.  <response>: Ikiwa mtawala alikufa bila mrithi wa moja kwa moja, serikali yake ilianguka mikononi mwa Waingereza. 