In Linux, "setxkbmap es" at the prompt sets my keyboard to Spanish, and "setxkbmap us" sets it back to English. There are many other (like dozens, I just looked) two-letter language codes that can be chosen. It's easy to make buttons to click between the different languages on the desktop.