language_extract 1.0.3 copy "language_extract: ^1.0.3" to clipboard
language_extract: ^1.0.3 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 an executable

Install it

You can install the package from the command line:

dart pub global activate language_extract

Use it

The package has the following executables:

$ language_extract

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add language_extract

With Flutter:

 $ flutter pub add language_extract

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  language_extract: ^1.0.3

Alternatively, your editor might support dart pub get or flutter 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';
1
likes
130
points
54
downloads

Documentation

API reference

Publisher

verified publisherusamaahsan.dev

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#flutter #localization #i18n #getx #cli

License

MIT (license)

Dependencies

analyzer, args, path

More

Packages that depend on language_extract