Return empty string in the event of no detected language #535

Merged
floatingghost merged 1 commit from midnight/akkoma:fix-libretranslate into develop 2023-05-22 21:30:51 +00:00
Contributor

This PR guarantees that LibreTranslate will always return a string as the detected string whereas before it could return a nil in the event the server and the request didn't specify a source language.

This conforms to the translator typespec and fixes #369.

This PR guarantees that LibreTranslate will always return a string as the detected string whereas before it could return a nil in the event the server and the request didn't specify a source language. This conforms to the translator typespec and fixes https://akkoma.dev/AkkomaGang/akkoma/issues/369.
Return empty string in the event of no detected language
Some checks are pending
ci/woodpecker/pr/woodpecker Pipeline is pending
f1e66b39c7

this seems ok, thanks!

this seems ok, thanks!
floatingghost deleted branch fix-libretranslate 2023-05-22 21:30:52 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AkkomaGang/akkoma!535
No description provided.