backported main and i18n classes from branch assets