Completion of a major hydropower facility in January 1998 permitted the sale of water to South Africa and generated royalties for Lesotho .