add isI18n template helpers + better relation detection