flutter_string_extractor 2.0.0 copy "flutter_string_extractor: ^2.0.0" to clipboard
flutter_string_extractor: ^2.0.0 copied to clipboard

retracted

Dart CLI to extract Flutter localization strings into JSON. Supports GetX, Easy Localization, Intl and ARB import, preserving existing translations.

2.0.0 - 2026-10-01 #

Added #

  • GetX argument/plural variants, Easy Localization widget/context/plural calls, Flutter Translate, FlutterI18n, i18n_extension, and static Intl.message support.
  • ARB message import for gen-l10n, Flutter Intl, and ICU catalog messages.
  • Unmarked-string discovery, preview, exclusions, generated-file opt-in, and configurable translation function/getter names.
  • Library scan results and location diagnostics for unresolved expressions.
  • Extraction, CLI, catalog preservation, and file-safety regression tests.
  • Expanded API/Unicode/CLI edge cases and repeatability stress tests.
  • CI across Linux, macOS, and Windows on minimum and stable Dart SDKs.
  • Version-tag publishing with GitHub OIDC through the official Dart workflow.
  • Published installation examples, localization FAQ, and a factual llms.txt index.

Changed #

  • Use Dart's analyzer parser to decode static literals and ignore comments.
  • Require Dart 3.9+ and resolve modern compatible dependencies.
  • Upgrade analyzer to 12.1.0 and refresh dependency constraints and lockfile.
  • Preserve existing translations, stale keys, and nested catalog structures by default; explicit --replace resets the catalog.
  • Send diagnostics and summaries to stderr; dry-run stdout is JSON.

Fixed #

  • Correct quote/escape/multiline/adjacent literal and whitespace handling.
  • Reject missing source, malformed catalogs, conflicting message IDs, source destinations, symlinks, and non-file output before writing.
  • Stage writes beside the output before replacement; preserve POSIX permissions and use owner-only access for newly created catalogs on macOS/Linux.

1.1.2 #

  • Updated README with clearer installation and usage instructions
  • Improved documentation formatting

1.1.1 #

  • Applied dart format to improve code formatting
  • Enhanced code style consistency

1.1.0 #

  • Added comprehensive API documentation
  • Added example directory with sample code
  • Added detailed usage examples in README
  • Enhanced CLI error messages and feedback
  • Fixed SDK constraint format
  • Improved file path handling

1.0.1 #

  • Improved documentation
  • Added example directory with usage samples
  • Fixed SDK constraint format
  • Enhanced error handling in CLI

1.0.0 #

  • First stable release
  • Command line interface with src-dir and output-file options
  • Global activation support via dart pub
  • Support for both .tr and tr() syntax
  • Clean JSON output format
  • Improved error handling and user feedback

0.1.1 #

  • Added support for tr() function
  • Updated Readme.md file to reflect the changes
  • Added support for dart pub global activate flutter_string_extractor

0.1.0 #

  • Initial release of the "flutter_string_extractor" package
  • Added feature to extract strings followed by ".tr" in Dart files
  • Added feature to save these strings into a JSON file
  • CLI support for running the package as a script
  • Added documentation and MIT license
8
likes
0
points
487
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

Dart CLI to extract Flutter localization strings into JSON. Supports GetX, Easy Localization, Intl and ARB import, preserving existing translations.

Homepage
Repository (GitHub)
View/report issues

Topics

#cli #localization #flutter #i18n #string-extraction

License

unknown (license)

Dependencies

analyzer, args, glob, path

More

Packages that depend on flutter_string_extractor