use selection when adding a `trans` tag