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.
midnight added 1 commit 2023-05-08 23:07:14 +00:00
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 merged commit 3437e11cf7 into develop 2023-05-22 21:30:51 +00:00
floatingghost deleted branch fix-libretranslate 2023-05-22 21:30:52 +00:00
Sign in to join this conversation.
No description provided.