STOCKHOLM—Sweden’s Volvo Car Corp. said on Thursday that it will offer plug-in hybrid versions of all its upcoming models and will build an all-electric car for sale by 2019, as the Volkswagen emissions scandal takes the shine off diesel engines.

“We believe that the time has come for electrified cars to cease being a niche technology and enter the mainstream,” said Hakan Samuelsson, chief executive of Volvo Cars, in a statement. The company said it expects electrified cars to make up 10% of its global sales by 2020.

The...