LanguageHelperGenerator class
A generator that scans Dart code for translation strings and generates language files for the language_helper package.
This class analyzes your project's Dart files to find translation strings
using language_helper extensions (tr, trP, trT, trF) and the
translate method, then generates organized translation files in either
Dart or JSON format.
Example usage:
final generator = LanguageHelperGenerator();
generator.generate(['--languages=en,vi', '--path=./lib']);
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger ↔ LiteLogger
-
The logger instance used for outputting generation progress and errors.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generate(
List< String> args) → void - Generates translation files based on the provided command-line arguments.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String text) → List< ParsedData> - Parses a Dart code string and extracts translation data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited