Key updates:
- **Fix markdown translation issues**: Resolved problems where code blocks and inline code were split across chunks during translation, causing incomplete translations and broken markdown structures.
- Replaced code blocks ( ` ) and inline code ( ` ) with placeholders (e.g., @@CODE_BLOCK_x@@, @@INLINE_CODE_x@@) before translation, and restored them afterward to ensure no splitting occurs.
- **Sequential markdown processing**: Improved translation logic to handle markdown files and their chunks sequentially, ensuring that every chunk is fully translated before moving to the next. This resolves issues with missing or skipped chunks during the process.
- **Enhanced line break consistency check**: Added a mechanism to detect formatting issues by comparing line breaks between original and translated files. If the difference exceeds a predefined threshold (5 lines), the translation is flagged for review and retry.
- **Improve generative AI disclaimer**: Updated the disclaimer message to better reflect that the translation is done by an AI model, ensuring users understand the limitations and context of the translation.
- **Performance improvements**: Optimized the process for handling both markdown and image translations, and implemented retry logic for failed translations.
- Resolved issue causing code blocks ( ` ) and inline code ( ` ) to be split across chunks during markdown translation.
- Implemented a new logic to replace code blocks and inline code with placeholders before translation.
- Restored the placeholders back to their original form after translation, preventing translation issues related to broken code blocks.