<prompt> Translate the following text to SwahiliThe Ottoman Empire was weakening, however, and in 1821, the peoples of the Greek mainland achieved nationhood for the first time.  <response>: Hata hivyo, milki ya Ottoman ilikuwa ikidhoofika, na mwaka wa 1821 watu wa bara la Ugiriki walipata uhuru wa kitaifa kwa mara ya kwanza. 