- Add try-catch blocks around DeepL translation calls to handle rate limit or overload errors by falling back to Google Translate, improving service reliability.
- Remove code duplication by introducing a reusable helper function for DeepL translation with timeout handling. This improves code maintainability and readability in the translation endpoint.
Full Changelog: v3.0...v3.1