l10n_currencies
2.2.0, released 5 weeks ago by tsin.is
Provides CLDR-like currency name translations for 149 locales in pure Dart with zero dependencies.
WASM-ready
What it does
Provides currency name translations for 149 different locales using a single-use locale mapper. It supports tree-shaking via dart-define flags and fallback locales.
AI-written summary of version 2.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need currency name localizations across multiple locales without heavy dependencies
- You want memory-efficient lazy loading of translation data
Skip it when
- You need general-purpose UI currency formatting or currency input masking
- You expect mapper instances to be reusable across multiple calls
Strengths
- Zero dependencies
- 149 locales supported out of the box
- Memory efficient with lazy initialization and single-use mapper cleanup
- Tree-shakable via dart-define flags
Weaknesses
- Mapper instances are single-use only and cannot be reused after calling localize()
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
void main() {
final mapper = CurrenciesLocaleMapper();
final isoCodes = {"USD", "RUB", "PLN"};
final localized = mapper.localize(isoCodes, mainLocale: "sk", fallbackLocale: "cs");
print("Names count: ${localized.length}");
}Alternatives
Packages that do the same job and could replace l10n_currencies.
- intl
Standard internationalization and localization library provided by the Dart team.
93Compare - easy_localization
Popular full-featured localization solution for Flutter apps.
64Compare
Works with
Packages commonly used together with l10n_currencies: ones it builds on, ones built on it, and its own family.