finished refactoring, added <translate>, <i18n> and <ngsync>