1.0.2 • Published 4 years ago
get-html-locale v1.0.2
Get HTML Locale
Gets locale based on HTML lang attribute
Install
npm i get-html-locale
Usage
import { getHTMLLocale } from 'get-html-locale'
const locale = getHTMLLocale()
console.log(locale)
Output:
{
code: 'en',
lang: 'English',
region: 'United States'
}