Use enums for language codes, close #6