<prompt> Translate the following text to SwahiliSince he had probably resigned himself to failure from the beginning, he kept up a confident exterior to the end.  <response>: Kwa kuwa yaelekea alikuwa amejiridhisha na kushindwa tangu mwanzo, aliendelea kuwa na uhakika hadi mwisho. 