I use a third-party input source on Mac. This is the case I encounter:
I input some English characters when I want to input Chinese so I have to delete the characters entered just now. Then switch to Chinese and type again.
If I know what is the current input language, so I can switch the input language first.
The input source can't display current input language but I have press Shift to switch between Chinese and English to see whether the current language is what I want.
After some research, I find this repo bitbar. This repo can display some script output at the menubar. So I want some script to get the current input language of the input source.
I also find this question, however this question is different from mine. It just find the input source name, not the input language.
After Googling for a long time, I didn't find a way to do this. Any one can help me? Thank you so much.