Skip to content

fix: render caprover deploy as code in CLI deploy description#216

Merged
githubsaturn merged 1 commit into
caprover:masterfrom
bestony:fix/cli-deploy-code-rendering
Jul 16, 2026
Merged

fix: render caprover deploy as code in CLI deploy description#216
githubsaturn merged 1 commit into
caprover:masterfrom
bestony:fix/cli-deploy-code-rendering

Conversation

@bestony

@bestony bestony commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Method 1 (Official CLI) help text part 2 embedded raw <code>caprover deploy</code> inside i18n strings. localize() returns plain text, so React escaped the tags and the UI showed the literal string <code>caprover deploy</code>.
  • Match part 1: use Utils.formatText with a %s placeholder and a real React <code> element.
  • Update locale strings for all languages that had the raw HTML (also clean de-DE part 1, which had the same issue).

Test plan

  • Open an app → Deployment tab → Method 1: Official CLI
  • Confirm both occurrences of caprover deploy render as styled <code>, not as literal <code>...</code> text
  • Switch language (e.g. zh-CN) and re-check the same section

Part 2 of the Method 1 CLI help text embedded raw <code> tags inside
i18n strings. localize() returns plain text, so React escaped them and
users saw literal <code>caprover deploy</code> instead of styled code.

Use Utils.formatText with a %s placeholder and a real <code> element,
matching part 1. Update locale strings accordingly (and clean de-DE
part 1 which had the same raw HTML issue).
@githubsaturn

Copy link
Copy Markdown
Collaborator

Thanks! In the future, please include before/after screenshots in the frontend PR as it'd make it easier to review.

@githubsaturn
githubsaturn merged commit 738d668 into caprover:master Jul 16, 2026
3 checks passed
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