The batteries of some flashlights can be charged by turning a handle. Which energy transformation is happening in this process?

The energy transformation happening in this process is mechanical energy being converted into electrical energy.