New Features
-
Images Descriptions: Introduced support for translating images by providing an array of image URLs. The translator now returns descriptions for each image in the specified language, enhancing the library's capabilities for handling visual content.
- Example:
$images = [ 'https://example.com/image1.jpg', 'https://example.com/image2.jpg', ]; $result = $translator->translate(json_encode($images), 'zh-CN', ['type' => 'images']);
- Example:
Improvements
- Updated the test suite to include cases for image translation, ensuring robust functionality and reliability.
Bug Fixes
- Minor bug fixes and performance improvements for better stability.
Documentation
- Updated the README to reflect the new image translation features and provide clear examples for users.