<prompt> Translate the following text to SwahiliIt lost its empire in America and the Pacific, and then in 1923 suffered a humiliating defeat in Morocco at the hands of local rebels.  <response>: Baada ya kupoteza milki yake katika Amerika na Pasifiki, mwaka wa 1923 ilishindwa kwa aibu na waasi wa Morocco. 