Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Skip images and quotes when sending for language detection #195

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

nattsw
Copy link
Contributor

@nattsw nattsw commented Jan 16, 2025

We're seeing some bugs where if a post starts with a image or quote, the translator provider thinks the post is english or the language of the quoted words.

This PR strips lightboxes and quotes when sending for language detection.

Copy link
Contributor

@Drenmi Drenmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦘

@nattsw nattsw merged commit 620d774 into main Jan 16, 2025
3 checks passed
@nattsw nattsw deleted the skip-images-for-detection branch January 16, 2025 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants