language_extract library

Classes

DynamicSegment
A dynamic (interpolated) portion of a string, e.g. $variable or ${expr}.
EasyLocalizationGenerator
Generates easy_localization JSON translation files for a Flutter project.
ExtractedString
Represents a single hardcoded UI string found in a Dart source file.
FileScanner
Scans all Dart files inside a Flutter project's lib/ directory and returns every hardcoded UI string found.
GetxGenerator
Generates GetX localization files for a Flutter project.
IntlGenerator
Generates ARB (Application Resource Bundle) files for the intl package.
KeyGenerator
Generates and assigns snake_case localization keys to ExtractedStrings.
OutputGenerator
Contract that every localization output generator must implement.
SourceReplacer
Rewrites Dart source files to replace hardcoded string literals with the appropriate localized calls for the target i18n package.
StaticSegment
A literal (non-interpolated) portion of a string.
StringExtractorVisitor
Walks a parsed Dart AST and collects hardcoded UI strings.
StringSegment
Represents one segment of a Dart string interpolation.