The Official Language Act of 1974 ( French Loi sur la langue officielle ) also known as Bill 22 was an act of the National Assembly of Quebec commissioned by Premier Robert Bourassa which made French the sole official language of Quebec Canada .