Get locale from html page

It will revert to English if the locale is not set.