<prompt> Translate the following text to SwahiliHis successor, Dom Dinis 1279-1325, consolidated Portugals borders by constructing castles along the frontier with Castile.  <response>: Mrithi wake, Dom Dinis 1279-1325, aliimarisha mipaka ya Ureno kwa kujenga majumba ya kifalme kando ya mpaka na Castile. 