add hook in editor for user scripts to register callbacks for trans-unit updated events