Package
locale2
💪 Try as hard as possible to detect the client's language tag ('locale') in node or the browser. Browserify and Webpack friendly!
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
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- jsDelivr
https://cdn.jsdelivr.net/npm/locale2@2.3.1/ - unpkg
https://unpkg.com/locale2@2.3.1/ - esm.sh
https://esm.sh/locale2@2.3.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| @fluent/langneg | 22.9k | - | 3 years ago | ESM + CommonJS | - |
| @fluent/dom | 6.1k | - | 1 year ago | ESM + CommonJS | - |
| @fluent/bundle | 64.1k | - | 1 year ago | ESM + CommonJS | - |
| @generaltranslation/format | 134.2k | - | 8 days ago | ESM + CommonJS | - |
| @fluent/syntax | 264.2k | - | 3 years ago | ESM + CommonJS | - |
| @fluent/react | 13.6k | - | 3 years ago | ESM + CommonJS | - |
| generaltranslation | 176.7k | - | today | ESM + CommonJS | - |
| gt-node | 9.8k | - | today | ESM + CommonJS | - |
Indexability: Indexed.