flutter_ai_i18n_extractor 1.0.0
flutter_ai_i18n_extractor: ^1.0.0 copied to clipboard
Automatically detect, extract, and intelligently translate hardcoded text in Flutter projects using AI-powered abbreviation generation and professional translations, fully compatible with Flutter's in [...]
Changelog #
1.0.0 2025-5-31 #
Added #
- π Smart String Detection: AST-based parsing to find hardcoded strings in Dart files
- π€ AI-Powered Key Generation: Intelligent localization key generation using OpenAI, Google AI, or Anthropic
- π Professional Translation: High-quality translations with context awareness
- π ARB File Generation: Creates and updates ARB files compatible with Flutter's localization system
- π Code Replacement: Automatically replaces hardcoded strings with localization calls
- π― Context-Aware Analysis: Analyzes UI context for better key naming and translations
- β
flutter_intl Compatibility: Full compatibility with existing
flutter_intlandintl_utilsworkflows - π οΈ CLI Interface: Command-line tool for easy integration into development workflows
- π Configuration Management: YAML-based configuration with environment variable support
- π§ Multiple AI Providers: Support for OpenAI, Google AI, and Anthropic APIs
- π Multi-language Support: Generate translations for multiple target languages simultaneously
- π¨ Context Types: Intelligent detection of UI element types (button, title, message, error, etc.)
- π Statistics and Reporting: Detailed statistics about extraction and translation processes
- π Backup System: Automatic backup of original files before modifications
- ποΈ Dry Run Mode: Preview changes before applying them
- π Pattern Matching: Flexible file inclusion/exclusion patterns
- π Key Naming Conventions: Support for camelCase and snake_case naming conventions
- π Comprehensive Documentation: Detailed README with examples and best practices