Added option to return language codes instead of language strings