Skip to content

Conversation

@schu96
Copy link
Collaborator

@schu96 schu96 commented Nov 25, 2025

Translated text is currently displayed all together in a single BRlineElement, which prevents the existing text selection protections from working as intended.

To ensure that text selection does not exceed the protected limit, the entire translated paragraph is split by space characters. Sentence strings are then re-created to be no longer than 20 words (was an arbitrary number but 15-20 words seems to be the recommended average across multiple content / styling guides)

Also includes some CSS styling changes to prevent line breaks between sentence fragments/chunks

@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.43%. Comparing base (970f0c9) to head (10ec5b2).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1453   +/-   ##
=======================================
  Coverage   69.43%   69.43%           
=======================================
  Files          62       62           
  Lines        5329     5329           
  Branches     1155     1155           
=======================================
  Hits         3700     3700           
  Misses       1594     1594           
  Partials       35       35           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@schu96 schu96 force-pushed the translate-paragraph-line-words branch from 9ba0641 to 10ec5b2 Compare December 16, 2025 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant