wrapped lang name in gettext
use handleFailedAPI for errors