Is there anyway to make the translate gizmo appear aligned with the frame of the object?

@parrotdora I have attached a gif showing how you can switch from global to local frame for translate and rotate gizmo by clicking them. The yellow dot shows that it’s in local frame.