<prompt> Translate the following text to SwahiliPortugals very precarious foothold on the Asian coast ended in 1999 with a formal handover to China.  <response>: Ureno ilishinda kwa nguvu katika mapambano ya Asia ya Kusini mwaka 1999 na kupewa mamlaka rasmi na China. 