That's interesting, @kokoye2007. It seems like this has already been carefully considered.
Maybe worth mentioning that there is a parallel in form of the file /usr/share/language-tools/main-countries (belonging to accountsservice) which is used to be able to pick the main locale out from the pure language code. So
$ /usr/share/language-tools/language2locale en
en_US.UTF-8
$ /usr/share/language-tools/language2locale fr
fr_FR.UTF-8
(That is run on 'locale -a' output, though, but same idea.)
That's interesting, @kokoye2007. It seems like this has already been carefully considered.
Maybe worth mentioning that there is a parallel in form of the file /usr/share/ language- tools/main- countries (belonging to accountsservice) which is used to be able to pick the main locale out from the pure language code. So
$ /usr/share/ language- tools/language2 locale en language- tools/language2 locale fr
en_US.UTF-8
$ /usr/share/
fr_FR.UTF-8
(That is run on 'locale -a' output, though, but same idea.)