laravel-lang-files-translator
laravel-lang-files-translator copied to clipboard
Update TranslateService.php
feat: major refactor with enhanced architecture, new features, and performance optimizations
- Refactored architecture with proper dependency injection and separation of concerns
- Introduced fluent interface for configuration and improved method structure
- Added chunk processing for large files and retry mechanism for failed translations
- Implemented dry run mode, force overwrite option, and progress tracking
- Improved error handling with comprehensive validation and detailed logging
- Reduced memory usage via chunked processing and cached translator instance
- Enhanced code quality with type hints, return types, and consistent naming
- Introduced configurable parameters, better exception messages, and logging integration
- Improved output with progress reporting, statistics, and detailed logs
- Strengthened parameter handling with customizable patterns and wrappers