Skip to content

tech-radar: make the texts of the entry dialog translatable - #11849

Open
wistiteek wants to merge 1 commit into
backstage:mainfrom
wistiteek:tech-radar-translate-description-dialog
Open

wistiteek wants to merge 1 commit into
backstage:mainfrom
wistiteek:tech-radar-translate-description-dialog

Conversation

@wistiteek

Copy link
Copy Markdown

Hey, I just made a Pull Request!

The dialog opened from a radar entry writes History, Moved in direction, Moved to ring, Moved on date, Description, No Timeline and LEARN MORE in code. In an application running in another language the rest of the page can be translated but these texts stay in English. The plugin had no translation reference.

This change adds techRadarTranslationRef (id tech-radar, exported from @backstage-community/plugin-tech-radar/alpha, same approach as the adr plugin) and reads the texts from it. Default messages are the current English texts, so nothing changes for existing apps.

  • translations.ts: new reference.
  • RadarTimeline.tsx, RadarDescription.tsx: use useTranslationRef.
  • RadarDescription.test.tsx: checks the English defaults and that overridden messages are rendered.
  • report-alpha.api.md and a patch changeset.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

The dialog of a radar entry wrote 'History', 'Moved in direction', 'LEARN MORE' and the other column titles in code, so they stayed in English in a translated app. The plugin had no translation reference: add techRadarTranslationRef (alpha export) and read the texts from it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JbdFKDAHFUAuceZJoibWaY
Signed-off-by: wistiti <[email protected]>
@backstage-goalie

Copy link
Copy Markdown
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-tech-radar workspaces/tech-radar/plugins/tech-radar patch v1.23.0

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants