Change lang attribute on html tag according to current loaded language

I notice, on html tag, that the lang attribute always has 'en' as value.
Here's how to change it according to the currently used language.