User-settings API
Variable: locale
Type: LocaleSettings
The User Settings API provides Locale settings for the current user.
import { locale } from "user-settings";
console.log(locale.language);
Interface: LocaleSettings
Locale settings are settings that relate to a user's preferred language.
Properties
readonly language
string
BCP 47 language tag.