Skip to content
JS
Package

locale2

💪 Try as hard as possible to detect the client's language tag ('locale') in node or the browser. Browserify and Webpack friendly!

v2.3.1, 9 Aug 2018MITCommonJSTypes: NoneInternationalisation
$ npm install locale2

Key numbers

As of 25 Sept 2026
Weekly downloads
11.2k
-57% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
8 years ago
v2.3.1
GitHub stars
63
4 forks
Open issues / PRs
1 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
020k40k60kSept 2025Mar 2026Sept 2026High 44.7k (30 Sept 2025)Low 2.2k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

11,177 downloads last week, 43,101 in the last month. The 12-month change of -57% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.3.1, 9 Aug 20188 years ago
First published
-
Last push to GitHub
17 Aug 20211,864 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
21

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
8.1 kB
Dependencies (0)
None
npm install locale2
  • jsDelivrhttps://cdn.jsdelivr.net/npm/locale2@2.3.1/
  • unpkghttps://unpkg.com/locale2@2.3.1/
  • esm.shhttps://esm.sh/locale2@2.3.1
PackageWeekly downloadsGzipLast releaseModuleComparison
@fluent/langneg22.9k-3 years agoESM + CommonJS-
@fluent/dom6.1k-1 year agoESM + CommonJS-
@fluent/bundle64.1k-1 year agoESM + CommonJS-
@generaltranslation/format134.2k-8 days agoESM + CommonJS-
@fluent/syntax264.2k-3 years agoESM + CommonJS-
@fluent/react13.6k-3 years agoESM + CommonJS-
generaltranslation176.7k-todayESM + CommonJS-
gt-node9.8k-todayESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.