MCPcopy Create free account
hub / github.com/ampproject/amphtml / getUserLanguage

Method getUserLanguage

src/core/window/interface.js:57–61  ·  view source on GitHub ↗

* @static * @param {Window} win * @return {string}

(win)

Source from the content-addressed store, hash-verified

55 * @return {string}
56 */
57 static getUserLanguage(win) {
58 return (
59 /** @type {*} */ (win.navigator)['userLanguage'] || win.navigator.language
60 );
61 }
62
63 /**
64 * @static

Callers 2

getFingerprintFunction · 0.80
getFingerprintFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected