Change input language in macOS Sierra beta when an external keyboard is connected/disconnected
Karabiner can be set up to activate a different keyboard layout only for an external keyboard.  See

Different key-maps/bindings for in-built keyboard and Bluetooth keyboard