fluent_bundle 0.1.0
fluent_bundle: ^0.1.0 copied to clipboard
Project Fluent (Mozilla's localization system) for Dart. Real per-language plural and gender rules, a choice of formatting backend, and inline markup. Pure Dart.
Changelog #
0.1.0 #
First release — Project Fluent, Mozilla's localization system (the one Firefox ships), as a pure-Dart runtime.
- API: parse
.ftlresources and format messages, terms, and attributes by id; selectors and plurals;NUMBERandDATETIME; custom functions (FluentFunction); inline markup returned as a walkable span tree; locale negotiation withFluentBundleChainfallback; live resource updates.FluentBundleis the entry point; every formatted argument is aFluentValue. - Resolution: every failure — a missing message, a bad argument, a cyclic reference — resolves to a value with the error collected separately, never a thrown exception, so one broken message can't crash formatting.
- Backends: a pluggable seam (
FluentBackend,FluentFormatContext,PluralCategory) supplies CLDR-grade number, date, and plural formatting; thefluent_intlandfluent_icusatellites implement it. Without a backend the runtime still parses and resolves. - Platforms: pure Dart — no native code, no build steps, no platform plugins. One package on mobile, desktop, web, CLI, and server. No Flutter dependency.
Commits since initial (12)
- 55a43f7 release: v0.1.0
- c743803 chore: promote dev to prod (0.1.0) (#8)
- 8703aa2 docs: rewrite README and pubspec description in plain language, no jargon
- d86901d chore: promote dev to prod (0.1.0) (#7)
- fa3a97c docs(changelog): complete both genesis changelog lanes (#6)
- 55ee405 chore: refresh lockfiles (#5)
- ba26e5b chore: bump Flutter SDK (#4)
- dd67fec chore: bump the deps group with 3 updates (#3)
- c5d61df ci: bump dorny/paths-filter from 4.0.1 to 4.0.2 in the actions group (#2)
- b2fd535 ci: bump the whuppi-ci group with 8 updates (#1)
- a83a1ff docs: add banner — fleet web-min webp (97 KB) + 3x masters, cellar naming convention
- 99fff02 feat: fluent_bundle — Project Fluent for Dart: spec-complete parser, resolver, markup spans, pluggable backends