The situation is much more blurry than you make it out to be since the locale is the primary means to specify a language on POSIX systems. Sure, a locale string can encompass much more than just the language but the xx_XX part is still primarily about language.