AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 15 Bitcoin

Localize Blazor strings that the text-translate TagHelper can't reach (#7423)

Public commit record

What the developer wrote

Authored by Wiredancer

81/100 · Strong
Localize Blazor strings that the text-translate TagHelper can't reach (#7423)

`text-translate`/`html-translate` are handled by TranslateTagHelper, an
MVC TagHelper that only runs while rendering Razor (.cshtml) views.
Blazor components do not execute TagHelpers, so these attributes are
inert inside .razor files: the literal English text is always rendered,
regardless of the active language.

Switch the affected strings to @StringLocalizer[...] / @ui.StringLocalizer[...],
which resolves correctly in Blazor (as already used e.g. for the
notifications button tooltip on the very same component):

- NotificationsDropDown.razor: "Notifications", "Mark all as seen",
"No new notifications", "View all"
- PosLoginCode.razor: "Signed in user", "None, just open the URL"
(adds the IStringLocalizer injection)
- XPubSelect.razor: "Account"

Also register the newly-translatable strings in Translations.Default.cs.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit fixes a localization bug in BTCPay Server's Blazor user interface components. Some text strings were not being translated into the user's chosen language because they relied on a translation mechanism that only works in older Razor view files, not in newer Blazor components. The change switches those strings to use Blazor-compatible localization and registers the new translatable phrases in the default translation file. There is no security impact.

Recommended action

No security action required. Treat as a routine localization fix.

Security signals we found

No strong security signals were identified.

Risk score

Why this scored 15/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 10/10
Evidence quality 5/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.