Package
get-user-locale
Returns a list of strings representing the user's preferred languages.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 848.1k
- +9% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 1
- Direct, from package.json
- Last release
- 1 year ago
- v3.0.0
- GitHub stars
- 63
- 11 forks
- Open issues / PRs
- 0 / 0
- Contributors
- -
- Commits, last 52 weeks
- 39
Downloads
Last week 2026-09-15 to 2026-09-21
848,088 downloads last week, 4,176,355 in the last month. The 12-month change of +9% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 019 in total
- Latest version
- 3.0.0, 20 Mar 20251 year ago
- First published
- 15 Aug 2018
- Last push to GitHub
- 9 Sept 202615 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 0
- Commits, last 52 weeks
- 39
- Dependents on npm
- -
Major versions
- v3 first release 3.0.0, 20 Mar 2025
- v2 first release 2.0.0, 28 Sept 2022
- v1 first release 1.0.0, 15 Aug 2018
Recent releases
| Version | Published |
|---|---|
| 3.0.0 | 20 Mar 2025 |
| 2.3.2 | 19 Apr 2024 |
| 2.3.1 | 18 Oct 2023 |
| 2.3.0 | 3 Jul 2023 |
| 2.2.1 | 8 Mar 2023 |
| 2.2.0 | 2 Mar 2023 |
| 2.1.3 | 2 Feb 2023 |
| 2.1.2 | 12 Jan 2023 |
| 2.1.1 | 11 Jan 2023 |
| 2.1.0 | 9 Jan 2023 |
| 2.0.0 | 28 Sept 2022 |
| 1.5.1 | 4 Aug 2022 |
| 1.5.0 | 29 Jul 2022 |
| 1.4.0 | 22 Jun 2020 |
- Module format
- ESM onlyFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 22 kB
- Dependencies (1)
memoize
npm install get-user-locale- jsDelivr
https://cdn.jsdelivr.net/npm/get-user-locale@3.0.0/ - unpkg
https://unpkg.com/get-user-locale@3.0.0/ - esm.sh
https://esm.sh/get-user-locale@3.0.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| @fluent/langneg | 22.9k | - | 3 years ago | ESM + CommonJS | - |
| windows-locale | 74.3k | - | 18 days ago | ESM + CommonJS | - |
| @fluent/bundle | 64.1k | - | 1 year ago | ESM + CommonJS | - |
| @fluent/syntax | 264.2k | - | 3 years ago | ESM + CommonJS | - |
| @fluent/react | 13.6k | - | 3 years ago | ESM + CommonJS | - |
| locale-code | 9.9k | - | 7 years ago | ESM + CommonJS | - |
Indexability: Indexed.