
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
browser-language-auto-detector
Advanced tools
Auto-detect language name for browser , turn origin code to language name,whether RTL and more ,TS supported
//use npm
npm i browser-language-auto-detector
//use yarn
yarn add browser-language-auto-detector
$ yarn install
$ yarn run dev
$ yarn run build
$ yarn test
import {getLanguageName} from 'browser-language-auto-detector'
console.log(getLanguageName());
//success
{chinese: '简体中文', origin : '简体中文', rtl: false, key: 'chinese', english: 'Chinese'}
//faild
null
import {getBrowserLocalOrigin} from 'browser-language-auto-detector'
//success
['zh-CN', 'zh', 'zh-Hans', 'en', 'und']
//faild for empty array
[]
Please download form git release:
https://github.com/Itinysun/browser-language-auto-detector/releases
MIT
Please tell us at https://github.com/Itinysun/browser-language-auto-detector/issues
FAQs
Auto-detect language name for browser , turn origin code to language name,whether RTL and more ,TS supported
The npm package browser-language-auto-detector receives a total of 0 weekly downloads. As such, browser-language-auto-detector popularity was classified as not popular.
We found that browser-language-auto-detector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.