What was the primary language of the mass in medieval times?

What was the primary language of the mass in medieval times?