OwO-Network/DeepLX

returns source_lang from result

Closed this issue · 2 comments

server detects source lang if there is no source_lang param:

DeepLX/main.go

Line 155 in eb6afa8

lang := whatlanggo.DetectLang(translateText)

But It's not possible how to get what language the server detected from the results.
It would be nice to have a return source lang from result.

This is easy to do. Next version I will consider returning the source and target languages.

Done. Please wait for the Github Action to compile v0.8.1.