Is there a way to automatically change my keyboard language when I switch between windows on macOS?
Follow these steps to changing your keyboard language dynamically:


Open up System Preferences. This should be in your /Applications folder.
Click on "Keyboard":


Click on the "Input Sources" tab:


You should see a checkbox titled "Automatically switch to a document's input source". Check that checkbox and you're done!