extract
Extracts translatable text from your Flutter project and generates translation files.
Options
Section titled “Options”-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
Examples
Section titled “Examples”# Extract from current directorytransflow-cli extract
# Extract from specific path with JSON outputtransflow-cli extract -p ./my_app -f json
# Extract and replace text in filestransflow-cli extract -r