<prompt> Translate the following text to SwahiliOnly when the French succeeded in blowing up part of the garrison, during the War of the Spanish Succession in 1707, was the castle taken.  <response>: Wakati wa vita vya Urithi wa Uhispania mwaka 1707, Ufaransa ilishinda vita vya kuvamia ngome hiyo. 