To switch you shells keymap on Arch Linux or Ubuntu to another language you can use localectl.
You can print the actual settings with the following command:
$> localectl status
To get a list of possible keymaps use:
$> localectl list-keymaps
And finally you can set the respective keymap with (de-QUERZ layout in this example):
$> localectl set-keymap --no-convert de