<prompt> Translate the following text to SwahiliNapoleon defeated the Prussian army in several key battles and established a semi-independent Duchy of Warsaw from 1807 to 1815.  <response>: Napoleon alishinda jeshi la Prussia katika mapigano kadhaa muhimu na kuanzisha Duchy ya Warsaw ya nusu huru kutoka 1807 hadi 1815. 