MacOS – How to get current input language of the input source

input-sourcekeyboardlanguagemacos

I use a third-party input source on Mac. This is the case I encounter:

  1. 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.

  2. If I know what is the current input language, so I can switch the input language first.

  3. 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.

  4. 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.

  5. 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.

Best Answer

One possible work-around is to configure the input source so that Caps Lock is used to switch to English. Then you can tell the IM is in that state by the green light on the keyboard (if it has one for capslock).

Related Question