The useLocale hook returns the current locale. It can be used for example to set the lang attribute for the <html> element.
useLocale
lang
<html>