resolve function on i18n service returns a promise