Germany plans to extend the electricity and gas price caps it introduced last year until March 2024, a source told Reuters on Friday.