Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedevicelocale

Extract locales currently defined on the device independently of app settings.

pub.devRemove
language_code

Get current device language code and locale with full ISO 639-1 and ISO 639-2 dictionaries.

pub.devRemove
ScoresHealth79 (best)67
Maintenance60 (best)44
Quality96100 (best)
Popularity89 (best)49
Community80 (best)58
Compatibility79100 (best)
UsageDownloads (30 days)127k (best)10k
Likes151 (best)19
Pub points150 / 160160 / 160 (best)
GitHub stars47 (best)7
MaintenanceLatest release0.9.1, 3 months ago (best)0.7.1, 6 months ago
Major versions in 12 months00
Contributors15 (best)4
Publisherspiralarm.uklamnhan.dev
FitPlatformsAndroid, iOS, Web, macOS, LinuxAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyNoYes
KindPlugin (native code)Flutter widgets
Code generationNoNo
Direct dependencies10 (best)
LicenseAPACHE-2.0MIT
Setup effortLowLow
JudgementStrengths
  • Supports multiple platforms including Android, iOS, web, macOS, and Linux.
  • Provides both string-based and Flutter Locale object return types.
  • Supports Android per-app language preferences.
  • Includes almost all ISO 639 language codes with English and native names.
  • Provides test-friendly overrides for device language and locale.
  • Robust fallback and resolution logic for complex locale variants.
Weaknesses
  • Linux and POSIX environments lack a standard API for preferred languages, returning only the current locale.
  • Requires platform-specific considerations for SwiftPM on older local Xcode setups.
  • Throws a StateError if a lookup fails unless an orElse is specified.
  • Relies on automatic scrapers which may occasionally require community updates for new language codes.
Warnings
  • Native setup
None
devicelocale vs language_code: which Flutter package should you use? | pubscout