Skip to content

fix: remove stray div tags from translations#3574

Open
joaothallis wants to merge 2 commits into
getAlby:masterfrom
joaothallis:fix/master-key-translation-div
Open

fix: remove stray div tags from translations#3574
joaothallis wants to merge 2 commits into
getAlby:masterfrom
joaothallis:fix/master-key-translation-div

Conversation

@joaothallis

@joaothallis joaothallis commented Jun 29, 2026

Copy link
Copy Markdown

Describe the changes you have made in this PR

Remove stray </div> fragments from the Master Key hint translation strings so the <Trans> content renders correctly in the Accounts and Nostr settings views.

Type of change

  • fix: Bug fix (non-breaking change which fixes an issue)

Screenshots of the changes [optional]

Before:

Screenshot 2026-06-28 at 20-51-50 Alby Extension

After:

Screenshot From 2026-06-28 21-42-30

Checklist

  • Self-review of changed code
  • Manual testing
  • For UI-related changes
  • Darkmode
  • Responsive layout

Summary by CodeRabbit

  • Bug Fixes
    • Fixed localized “no secret key” and “no mnemonic” hints across multiple languages so the clickable link/button markup renders correctly.
    • Removed stray escaped trailing </div> fragments that were appearing in the displayed text in the Nostr/mnemonic setup and recovery flows.
    • Corrected malformed content in Chinese (Simplified), including a minor stray character inside the linked text.

@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c8dcbfce-2e43-4057-a778-145d7bf1101e

📥 Commits

Reviewing files that changed from the base of the PR and between 656fa1e and eb7720d.

📒 Files selected for processing (16)
  • src/i18n/locales/en/translation.json
  • src/i18n/locales/fa/translation.json
  • src/i18n/locales/fi/translation.json
  • src/i18n/locales/id/translation.json
  • src/i18n/locales/ja/translation.json
  • src/i18n/locales/pl/translation.json
  • src/i18n/locales/pt/translation.json
  • src/i18n/locales/pt_BR/translation.json
  • src/i18n/locales/ru/translation.json
  • src/i18n/locales/si/translation.json
  • src/i18n/locales/sv/translation.json
  • src/i18n/locales/ta/translation.json
  • src/i18n/locales/th/translation.json
  • src/i18n/locales/uk/translation.json
  • src/i18n/locales/zh_Hans/translation.json
  • src/i18n/locales/zh_Hant/translation.json
✅ Files skipped from review due to trivial changes (15)
  • src/i18n/locales/pl/translation.json
  • src/i18n/locales/en/translation.json
  • src/i18n/locales/th/translation.json
  • src/i18n/locales/ja/translation.json
  • src/i18n/locales/fi/translation.json
  • src/i18n/locales/ta/translation.json
  • src/i18n/locales/pt_BR/translation.json
  • src/i18n/locales/sv/translation.json
  • src/i18n/locales/zh_Hans/translation.json
  • src/i18n/locales/si/translation.json
  • src/i18n/locales/uk/translation.json
  • src/i18n/locales/zh_Hant/translation.json
  • src/i18n/locales/ru/translation.json
  • src/i18n/locales/fa/translation.json
  • src/i18n/locales/id/translation.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/i18n/locales/pt/translation.json

📝 Walkthrough

Walkthrough

Removes stray </div> closing tags from no_secret_key and no_mnemonic_hint translation strings across 15 locale files.

Changes

i18n Translation Markup Fix

Layer / File(s) Summary
Remove stray </div> from all locale strings
src/i18n/locales/*/translation.json
no_secret_key and no_mnemonic_hint strings across the affected locales had trailing </div> removed, leaving only the intended <0>…</0> link markup.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

A wayward div had snuck inside,
across fifteen tongues it tried to hide.
The rabbit hopped from file to file,
snipping stray tags with a smile.
Clean markup now, from east to west — 🐇✂️

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main fix: removing stray div tags from translation strings.
Description check ✅ Passed The PR description covers the change, type, screenshots, and checklist, with only the testing section left implicit.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@joaothallis
joaothallis marked this pull request as ready for review June 29, 2026 00:46

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/i18n/locales/fa/translation.json`:
- Line 426: The CTA text in the fa translation for no_mnemonic_hint contains a
typo that renders awkwardly; update the string in the translation entry to use
the correct phrase “اینجا کلیک کنید” instead of “اینجا کلید کنید”. Keep the rest
of the localized message unchanged.

In `@src/i18n/locales/zh_Hans/translation.json`:
- Line 408: The localized CTA text contains an accidental extra Latin character
in the translation value for the mnemonic hint. Update the `no_mnemonic_hint`
string in the zh_Hans translation entry so the link text uses the intended
Chinese phrase only, removing the stray “e” from `点击此处e` while keeping the
surrounding markup unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fbf240f1-c7e2-46be-a139-a427308c0c15

📥 Commits

Reviewing files that changed from the base of the PR and between bad06c2 and d1b661c.

📒 Files selected for processing (16)
  • src/i18n/locales/en/translation.json
  • src/i18n/locales/fa/translation.json
  • src/i18n/locales/fi/translation.json
  • src/i18n/locales/id/translation.json
  • src/i18n/locales/ja/translation.json
  • src/i18n/locales/pl/translation.json
  • src/i18n/locales/pt/translation.json
  • src/i18n/locales/pt_BR/translation.json
  • src/i18n/locales/ru/translation.json
  • src/i18n/locales/si/translation.json
  • src/i18n/locales/sv/translation.json
  • src/i18n/locales/ta/translation.json
  • src/i18n/locales/th/translation.json
  • src/i18n/locales/uk/translation.json
  • src/i18n/locales/zh_Hans/translation.json
  • src/i18n/locales/zh_Hant/translation.json

Comment thread src/i18n/locales/fa/translation.json Outdated
Comment thread src/i18n/locales/zh_Hans/translation.json Outdated
@joaothallis
joaothallis force-pushed the fix/master-key-translation-div branch from d1b661c to 656fa1e Compare June 29, 2026 20:18
@joaothallis
joaothallis force-pushed the fix/master-key-translation-div branch from 656fa1e to eb7720d Compare June 29, 2026 20:20
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