using ordered dict to keep language codes alphabetically ordered