refactor action translation

Reviewer: @poolakiran