Imagine an article about sidewalks, there could be an explainer for Brits that explains that 'they mean the pavement' and another about 'customary units'. Americans would not need the explainers, so they could be made visible only to international readers with:
But lang in this case would be a property of the document itself, not the user agent, right?
I can't see a way in CSS to detect the user agent preferred language, but you could do this in JS and add another attribute to the document or whatever.
Actually, I looked into it some more, and SVG Switch, which should do stuff based on browser locale.
However, it was showing me 'en-US' not 'en-GB'. There is a bug in SVG switch that means it can do languages automagically but not variants. This I can work with, but it is still something unexpected and unlikely to be fixed because nobody cares about SVG.
Switch has some gnarly options with it, and I do want to find an excuse to use it in my 'SVG embroidery sampler'.
Flags are a possibility, although I only have the UK flag in my SVG sprite sheet thus far.
I will have to see if I can build a usefully stylish locale switcher that gets it right the first time due to browser locale, yet is changeable, with option stored in local storage, all inside the SVG Shadow DOM...