3 ms·
navigator.language will return a string like "en-US", "en-GB", or "fr-FR" depending on the user's selected locale. That could be used to map different Amazon
by unwiredben 12y ago
navigator.language will return a string like "en-US", "en-GB", or "fr-FR" depending on the user's selected locale. That could be used to map different Amazon URLs, although it looks like you may get a fair number of en-US false reports. See https://html.spec.whatwg.org/multipage/webappapis.html#navigatorlanguage https://html.spec.whatwg.org/multipage/webappapis.html#navig....