translate_textnow throws anErrorExceptionon API errors instead of returning an error message string. Code that checked return values for error strings should be updated to usetry/catchblocks instead.handle_api_errornow throws on failure and returnsnothingon success, instead of returning an error string or empty string.
- feat:
detect_languagefunction for detecting the language of a single string of text - feat:
detect_languagefunction for detecting the language of multiple strings of text - feat:
get_languagesfunction to retrieve the list of supported source or target languages from the DeepL API - feat:
CLAUDE.mdfile
Since the DeepL API does not provide a dedicated language detection endpoint, detect_language uses the translate endpoint internally and extracts the detected_source_language field from the response.
No breaking changes
- feat: add alternative syntax for
translate_textusing aPair{String, String}to specify the source and target languages - feat: add alternative syntax that requires to only specify the target langauge, allowing DeepL to infer the source language
- feat: GitHub Actions pipeline with Unit Testing
- chore: initial release of the DeepL.jl package.
- feat:
translate_textfunction for translating a single string of text. - feat:
translate_textfunction for translating multiple strings of text.
- The package requires the
DEEPL_API_KEYenvironment variable to be set for authentication. - The package currently supports translation between specified source and target languages, defaulting to German ("DE") and English ("EN") respectively.