The only case I can think of right now, is when the language is the subject of the sentence:
El español se habla en veinte países. -> Spanish is spoken in twenty countries.
El alemán es un idioma muy difícil. -> German is a difficult language.
Me gusta mucho el francés. -> I like French very much.
In other cases, the article is omitted.
John no habla español. -> John doesn't speak Spanish.
Mary se expresa muy bien en alemán. -> Mary expresses herself pretty well in German.
Tenemos un examen de italiano. -> We'll have a test of Italian.
¿Sabes inglés? -> Do you speak English?
Estoy aprendiendo chino. -> I'm learning Chinese.
Este libro está escrito en griego. -> This book is written in Greek.
...