<prompt> Translate the following text to SwahiliBoth fixed their eyes on occupying Poland, and they signed the ruthless Nazi-Soviet Pact in 1939, which stated that either would be free to pursue expansionist acts without the interference of the other.  <response>: Wakati huo, nchi hizo mbili zilikuwa zimekubaliana kuishambulia Poland na kuifunga Mkataba wa Nazi na Sovieti mwaka 1939 ambao ulisema kwamba nchi hizo mbili zingekuwa huru kufanya shughuli za kupanua nchi bila kuingiliwa na nchi nyingine. 