Releases: DeveloppeurPascal/DeepL4Delphi
Version 20260224
I've added the TDeepLAPI class to group the calls to DeepL API. It's better to use only its methods in your projects.
I updated old procedures and functions to use the TDeepLAPI class methods. They are now deprecated but won't be removed for compatibility with existing projects.
The source language is not required for text translation. If you omit it or use a blank string, DeepL will try to detect the source language by itself. Callback procedures and events get the detected language given by DeepL or the source language you gave.
I also added an optional TJSONObject parameter to TranslateText methods. If you add pairs in it, they will be transferred to DeepL "as it". Use them to send the settings you need. In the future, I'll only add methods with required parameters in this library, all others parameters will be added in an optional object you will have to fill by yourself. Check DeepL API to know what they can do with the v2 Translate API.
Next steps for the library : adding the other endpoints like documents translation, quota and glossaries. I have a lot of things to do on other projects before that. Contact me if you need other DeepL APIs before I'm available to work on it again.
Of course if you detect an error, please fill an issue.
I haven't tested this version on "old" Delphi releases. As explained in README file I try to maintain compatibility with current Delphi release and the Community Edition. Compatibility with previous releases is not guarantee even if I can try to fix it if you need it in a real project.
Version 20260223
I updated the library to use the new authorization scheme for the current DeepL v2 API and added some fixes for Delphi 10 Seattle.
The TranslateText API is still the only I have implemented in this repository. If you need others, tell me as a feature request.
Last commit under MIT License
From February 8, 2023 this code repository is subject to the AGPL license. It is still open source and free to use, but the constraints on redistribution and attribution change. Please respect the new rules or do not exceed this version in your projects.
A commercial license is available upon request if you do not wish to be subject to the AGPL.