navigator.userlanguage typescript code example
Example: typescript declare "userLanguage"
interface Navigator {
userLanguage?: string;
browserLanguage?: string;
languages: readonly string[];
language: string;
}
const navigator: Navigator = window.navigator;