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.56%. Comparing base (1ba0ab3) to head (9ba0641).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1453   +/-   ##
=======================================
  Coverage   69.56%   69.56%           
=======================================
  Files          62       62           
  Lines        5313     5313           
  Branches     1156     1156           
=======================================
  Hits         3696     3696           
  Misses       1584     1584           
  Partials       33       33           

☔ 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.

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