Convert single paragraph to lines using static sentence length
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 Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: 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
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.