Skip to content

fix(quickstart): localize help snackbar#2701

Merged
ciiay merged 1 commit intoredhat-developer:mainfrom
lokanandaprabhu:fix/quickstart-snackbar-i18n
Apr 7, 2026
Merged

fix(quickstart): localize help snackbar#2701
ciiay merged 1 commit intoredhat-developer:mainfrom
lokanandaprabhu:fix/quickstart-snackbar-i18n

Conversation

@lokanandaprabhu
Copy link
Copy Markdown
Member

Hey, I just made a Pull Request!

Fixes:

https://redhat.atlassian.net/browse/RHDHBUGS-2889

Summary

  • move the Quickstart help snackbar text to i18n
  • add new snackbar.helpPrompt key to ref and all locales
  • wire the snackbar to useTranslation
Screenshot 2026-04-06 at 2 17 05 PM

✔️ 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)

@rhdh-qodo-merge
Copy link
Copy Markdown

Review Summary by Qodo

Localize Quickstart help snackbar message

✨ Enhancement 📝 Documentation

Grey Divider

Walkthroughs

Description
• Add snackbar.helpPrompt translation key to all locale files
• Wire Quickstart help snackbar to useTranslation hook
• Localize hardcoded English help prompt message
• Add changeset for patch version bump
Diagram
flowchart LR
  A["Hardcoded English Message"] -->|Replace with| B["Translation Key"]
  B -->|Wire to| C["useTranslation Hook"]
  C -->|Render| D["Localized Snackbar"]
  E["ref.ts"] -->|Define| B
  F["de.ts, es.ts, fr.ts, it.ts, ja.ts"] -->|Translate| B
Loading

Grey Divider

File Changes

1. workspaces/quickstart/plugins/quickstart/src/translations/ref.ts 📝 Documentation +4/-0

Add snackbar helpPrompt reference translation

• Add new snackbar object with helpPrompt key
• Define English reference text for help prompt message

workspaces/quickstart/plugins/quickstart/src/translations/ref.ts


2. workspaces/quickstart/plugins/quickstart/src/translations/de.ts 📝 Documentation +2/-0

Add German translation for help prompt

• Add German translation for snackbar.helpPrompt
• Translate help prompt to German locale

workspaces/quickstart/plugins/quickstart/src/translations/de.ts


3. workspaces/quickstart/plugins/quickstart/src/translations/es.ts 📝 Documentation +2/-0

Add Spanish translation for help prompt

• Add Spanish translation for snackbar.helpPrompt
• Translate help prompt to Spanish locale

workspaces/quickstart/plugins/quickstart/src/translations/es.ts


View more (5)
4. workspaces/quickstart/plugins/quickstart/src/translations/fr.ts 📝 Documentation +2/-0

Add French translation for help prompt

• Add French translation for snackbar.helpPrompt
• Translate help prompt to French locale

workspaces/quickstart/plugins/quickstart/src/translations/fr.ts


5. workspaces/quickstart/plugins/quickstart/src/translations/it.ts 📝 Documentation +2/-0

Add Italian translation for help prompt

• Add Italian translation for snackbar.helpPrompt
• Translate help prompt to Italian locale

workspaces/quickstart/plugins/quickstart/src/translations/it.ts


6. workspaces/quickstart/plugins/quickstart/src/translations/ja.ts 📝 Documentation +2/-0

Add Japanese translation for help prompt

• Add Japanese translation for snackbar.helpPrompt
• Translate help prompt to Japanese locale

workspaces/quickstart/plugins/quickstart/src/translations/ja.ts


7. workspaces/quickstart/plugins/quickstart/src/components/QuickstartDrawerProvider.tsx ✨ Enhancement +3/-1

Wire snackbar to translation hook

• Import useTranslation hook from hooks module
• Initialize translation function with const { t } = useTranslation()
• Replace hardcoded message string with t('snackbar.helpPrompt')

workspaces/quickstart/plugins/quickstart/src/components/QuickstartDrawerProvider.tsx


8. workspaces/quickstart/.changeset/i18n-quickstart-snackbar.md 📝 Documentation +5/-0

Add changeset for snackbar localization

• Create new changeset file for patch version bump
• Document localization of Quickstart help snackbar message

workspaces/quickstart/.changeset/i18n-quickstart-snackbar.md


Grey Divider

Qodo Logo

@rhdh-gh-app
Copy link
Copy Markdown

rhdh-gh-app bot commented Apr 6, 2026

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-quickstart workspaces/quickstart/plugins/quickstart patch v1.8.4

@rhdh-qodo-merge
Copy link
Copy Markdown

rhdh-qodo-merge bot commented Apr 6, 2026

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@lokanandaprabhu lokanandaprabhu force-pushed the fix/quickstart-snackbar-i18n branch from 569e3e7 to 01db49d Compare April 6, 2026 09:00
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 6, 2026

Copy link
Copy Markdown
Member

@ciiay ciiay left a comment

Choose a reason for hiding this comment

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

Thanks for the PR 🙌

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Apr 7, 2026
@ciiay ciiay merged commit 14d6bcb into redhat-developer:main Apr 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants