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

EXUI-1848 - reduce translation of untranslatable text #1847

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

andywilkinshmcts
Copy link
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/EXUI-1848

Change description

This change makes the label substituter directive sensitive to translation. If a field has placeholders in it, the label substituter passes the unsubstituted text to the translation pipe directly, and sets a flag on the field to say that it has already been translated. It then does it's regular substitution on the translated text.

When the label field is displayed, it checks the caseField isTranslated flag, and doesn't send a field label that is marked as translated to the translation service again.

Does this PR introduce a breaking change? (check one with "x")
Hopefully not

[] Yes
[x] No

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