refactor translationdomain to translationDomain, refactor doc block in templates