Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_localized_locales

Provides locale code to name mappings for 563 locales in Flutter.

pub.devRemove
language_code

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

pub.devRemove
ScoresHealth5067 (best)
Maintenance144 (best)
Quality96100 (best)
Popularity88 (best)49
Community5258 (best)
Compatibility100100
UsageDownloads (30 days)645k (best)10k
Likes64 (best)19
Pub points150 / 160160 / 160 (best)
GitHub stars18 (best)7
MaintenanceLatest release2.0.5, 3 years ago0.7.1, 6 months ago (best)
Major versions in 12 months00
Contributors34 (best)
Publisherguidez.pllamnhan.dev
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindFlutter widgetsFlutter widgets
Code generationNoNo
Direct dependencies10 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Supports 563 locales out of the box.
  • Provides a straightforward LocalizationsDelegate for MaterialApp and CupertinoApp.
  • Allows custom fallback locales.
  • 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
  • Sorting by name does not respect the locale because Flutter lacks string collation API.
  • 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.
WarningsNoneNone
flutter_localized_locales vs language_code: which Flutter package should you use? | pubscout