A transformer is an inductive stationary device that transfers electrical energy from one circuit to another. In this instance it is used to transform electric power only.
A inverter is a transformer that converts from direct current (DC) to alternating current (AC).