Detect keyboard language changes from a selected text field

I need to retrieve current selected language of the user’s keyboard. Is it possible to do so using Swift + Ionic? If yes, please, share your solution.