translate: add custom stack-clear attribute