Return empty string in the event of no detected language #535
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#535
Loading…
Reference in a new issue
No description provided.
Delete branch "midnight/akkoma:fix-libretranslate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 seems ok, thanks!