added a function to get the loaded language codes