Skip to content

fix: make pause at end of page work with any translation#579

Merged
joanise merged 1 commit into
mainfrom
dev.ej/pause-with-translation
Jun 26, 2026
Merged

fix: make pause at end of page work with any translation#579
joanise merged 1 commit into
mainfrom
dev.ej/pause-with-translation

Conversation

@joanise

@joanise joanise commented Jun 26, 2026

Copy link
Copy Markdown
Member

PR Goal?

We were excluding sentences that had both class .translation and class .sentence__translation from the list of sentences to figure how which is the last sentence in a page, but we should exclude any sentence with either of those classes, or with do-no-align=true.

Depending on how translations are added to a read-along, we don't always set both classes, so let's filter out anything that might be a translation when we are playing in the web-component.

Fixes?

Fixes #578

Feedback sought?

sanity checking

Priority?

high

Tests added?

no

How to test?

Confidence?

high

Version change?

We'll want to release this quickly since a user stumbled on it. Let's merge this, then #577, and then let's publish 1.6.4.

We were excluding sentences that had both class .translation and class
.sentence__translation from the list of sentences to figure how which is
the last sentence in a page, but we should exclude any sentence with
either of those classes, or with do-no-align=true.

Depending on how translations are added to a read-along, we don't always set
both classes, so let's filter out anything that might be a translation when we
are playing in the web-component.

Fixes #578
@semanticdiff-com

semanticdiff-com Bot commented Jun 26, 2026

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  packages/web-component/src/components/read-along-component/read-along.tsx  54% smaller

@joanise joanise requested a review from roedoejet June 26, 2026 15:13
@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2026-06-26 15:49 UTC

@sergeleger sergeleger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Bug is fixed, pauses at the end of the first page.

@joanise joanise merged commit 39ffa97 into main Jun 26, 2026
3 checks passed
@joanise joanise deleted the dev.ej/pause-with-translation branch June 26, 2026 15:49
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.

[Web Component]: translation lines break "pause at end of page" setting

2 participants