Skip to content

Render Legal Hold translations with React [WPB-27666] - #22451

Merged
screendriver merged 2 commits into
mainfrom
legal-hold-react-translations
Sep 11, 2026
Merged

Render Legal Hold translations with React [WPB-27666]#22451
screendriver merged 2 commits into
mainfrom
legal-hold-react-translations

Conversation

@screendriver

@screendriver screendriver commented Sep 11, 2026

Copy link
Copy Markdown
Member
SecurityWPB-27666 [Web] Text rendering

This pull request continues the localized rich-text rendering migration from #22411, #22431, #22433, and #22444.

It moves the remaining direct Legal Hold UI translations to React-based rendering behind the existing startup feature toggle:

react-translation-rendering

Changes

This batch covers:

  • Legal Hold request-modal copy
  • Legal Hold informational descriptions
  • the blocked-for-Legal-Hold message in the user modal

The Legal Hold request message now renders its translated line break and fingerprint placeholder as React nodes. The actual fingerprint remains ordinary React text and is kept separate from translation formatting.

The informational Legal Hold descriptions retain compatibility with their existing <br /> translation token, which is mapped explicitly to a React line break rather than treating the translation as arbitrary HTML.

The blocked-user Legal Hold message now renders its translated [link]...[/link] content as a real React link while keeping the destination and link attributes application-controlled.

Translation compatibility

The Sinhala legalHoldModalText translation is aligned with the shared [fingerprint] marker used by the other locales.

The existing French Legal Hold description containing line-break characters remains unchanged and is treated as ordinary translated text.

@screendriver
screendriver marked this pull request as draft September 11, 2026 07:45
auto-merge was automatically disabled September 11, 2026 07:45

Pull request was converted to draft

Comment thread apps/webapp/src/script/components/Modals/UserModal/UserModal.tsx
Comment thread apps/webapp/src/script/components/Modals/UserModal/UserModal.tsx
@screendriver
screendriver force-pushed the legal-hold-react-translations branch from 4b2c686 to 4a6697b Compare September 11, 2026 08:08
@screendriver
screendriver marked this pull request as ready for review September 11, 2026 08:11
@screendriver
screendriver added this pull request to the merge queue Sep 11, 2026
Merged via the queue into main with commit 889afbd Sep 11, 2026
16 checks passed
@screendriver
screendriver deleted the legal-hold-react-translations branch September 11, 2026 09:09
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.

2 participants