Skip to content

extract

Extracts translatable text from your Flutter project and generates translation files.

  • -p, --path <PATH>: Path to Flutter project folder (defaults to current directory)
  • -f, --format <FORMAT>: Output format: json, arb, or both (default: both)
  • -r, --replace-in-files: Replace text with translation keys in Dart files
Terminal window
# Extract from current directory
transflow-cli extract
# Extract from specific path with JSON output
transflow-cli extract -p ./my_app -f json
# Extract and replace text in files
transflow-cli extract -r