US keyboard layout is incorrectly selected by default for some languages
_Originally created by @intrigeri on [#12638 (Redmine)](https://public-redmine-archive.tails.boum.org/code/issues/12638)_
- ~~As discovered on tails/tails#16838 and tails/tails#15161, selecting Arabic language
leads to an English (US) keyboard being selected.~~
- ~~As discovered on tails/tails#16481, selecting Indonesian language
leads to an Arabic keyboard being selected.~~
- As discovered on https://gitlab.tails.boum.org/tails/tails/-/issues/12547#note_41047, selecting some languages (lang
codes: ayc, bhb, brx, cmn, hak, hne, lij, lzh, mhr, nan, nhn, quz,
sgs, shs, tcy, the, unm, wae, yue) confuses the algorithm, triggers
an exception (invisibly to the user), so English (US) layout is
picked by default, and then:
- one can still choose their preferred keyboard layout by hand,
and it’ll be applied as expected;
- if one selects another language/region, then the previously set
keyboard layout is not updated accordingly.
Feature Branch: bugfix/12638-wrong-language-to-keyboard
### Related issues
- **Related to** tails/tails#12547
- **Related to** tails/tails#12598
- **Related to** tails/tails#14544
- **Related to** tails/tails#16481
- **Has duplicate** tails/tails#15161
- **Has duplicate** tails/tails#16838
issue