language_extract 1.0.2
language_extract: ^1.0.2 copied to clipboard
CLI tool that scans Flutter projects for hardcoded strings and generates localization files for GetX, easy_localization, and intl. Supports --replace to rewrite source files with .tr calls automatically.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add language_extractThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
language_extract: ^1.0.2Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:language_extract/language_extract.dart';