It was a small but constant frustration, so I decided to build Input Source Pro for macOS to automate it.
The idea is simple: it remembers which input source you want for each application or website. When you switch applications, or browser tabs to a different site, it automatically changes the input source to match your preference.
I've been working on it for a while, tweaking it based on my own use and feedback.
A few days ago, I open-sourced Input Source Pro! You can find the code here: https://github.com/runjuu/InputSourcePro
If you use multiple languages during the day, check it out. Maybe it can solve a small frustration for you too.