The author is English, and the 'discovery' that 'locale' is not the same as 'lang' is a bit of an 'aha' moment because we aren't like you, in having a clearly different language to the default 'Simplified American English' (as we say, snarkily, in the UK, out of earshot of those noisy 'mericans).
In the UK, setting the computer to whatever the UK should be is handled by a nice drop-down at installation time, shielding us from ever knowing whether it is en-GB or en_GB. Everything works after that, albeit with some fuzziness with Wikipedia and Google Translate, where English is a mix of OG and Simplified.
The quirks are not catastrophic, it is not as if we get a foreign language if the settings are off. You can have an office worker use en-US settings for years without them knowing any better.
Anyway, now I know that locale is to be confused with lang, with the chances of me remembering whether it is a dash or an underscore that I need, time to give the SVG 'switch' statement a go. This can make an SVG locale (or is it lang?) specific, unlike anything in standard HTML/CSS. However, it does nae work, for me, and this could be because I am using underscore rather than minus, or vice-versa. This would also mean the examples on MDN are also wrong, because they don't work in modern browsers.