Socket
Socket
Sign inDemoInstall

@jwaterfaucett/browser_langauge

Package Overview
Dependencies
4
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jwaterfaucett/browser_langauge

correctly discover a user's browser language


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Browser Language

This library provides a succint way to get the user's preferred language if at all possible.

It will clean up the returned language locale to meet a 2char lowercased iso standard i.e. ES-AR will become es.


const DEFAULT = "en";

const locale = getPreferredLanguage(DEFAULT);

FAQs

Last updated on 14 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc