[translate]: Minor refactoring. Improved error handlings
[translate]: Minor refactoring. Improved error handlings

morelab/appcomposer,porduna/appcomposer,go-lab/appcomposer,go-lab/appcomposer,morelab/appcomposer,porduna/appcomposer,go-lab/appcomposer,porduna/appcomposer,morelab/appcomposer,go-lab/appcomposer,morelab/appcomposer,porduna/appcomposer