juice_i18n 0.2.0 copy "juice_i18n: ^0.2.0" to clipboard
juice_i18n: ^0.2.0 copied to clipboard

Reactive locale selection and translation lookup as a Juice bloc, behind swappable source and persistence seams.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.2.0 - 2026-08-12 #

Changed #

  • Require juice ^1.6.0 and declare an explicit concurrency policy for every event.
  • Serialize explicit and system locale changes through one cross-event FIFO, preventing overlapping translation loads from applying out of request order.
  • Coalesce overlapping initialization events with EventConcurrency.droppable.

0.1.1 - 2026-06-16 #

Changed #

  • Allow juice_storage 2.0.0 (Hive CE migration). No API change.

0.1.0 - 2026-05-28 #

Added #

  • Initial release.
  • I18nBloc — reactive locale selection + translation lookup; feed state.locale to MaterialApp.locale.
  • t(key, {args}) with {placeholder} interpolation, and plural(key, count) selecting key.zero/key.one/key.other.
  • TranslationSource seam — MapTranslationSource (in-memory) and AssetJsonTranslationSource (assets/i18n/<locale>.json) defaults.
  • LocalePersistence seam — StorageLocalePersistence default (remembers locale + follow-system).
  • Locale resolution (exact → language → fallback), follow-system, and a configurable onMissing hook (returns the key by default).
  • Rebuild groupsi18n:locale, i18n:translations.

Out of scope #

  • Date/number/currency formatting — use intl. This package routes words.
0
likes
160
points
27
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Reactive locale selection and translation lookup as a Juice bloc, behind swappable source and persistence seams.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#i18n #l10n #localization #bloc #state-management

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

flutter, juice, juice_storage

More

Packages that depend on juice_i18n