Skip to content

fix: display the menu description in the Marketplace when there is no the i18nKey#511

Merged
wu-sheng merged 2 commits intoapache:mainfrom
Fine0830:bugfix/description
Oct 29, 2025
Merged

fix: display the menu description in the Marketplace when there is no the i18nKey#511
wu-sheng merged 2 commits intoapache:mainfrom
Fine0830:bugfix/description

Conversation

@Fine0830
Copy link
Member

No description provided.

@Fine0830 Fine0830 added this to the 10.3.0 milestone Oct 29, 2025
@Fine0830 Fine0830 requested a review from Copilot October 29, 2025 05:52
@Fine0830 Fine0830 self-assigned this Oct 29, 2025
@Fine0830 Fine0830 added the bug Something isn't working label Oct 29, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the fallback mechanism for displaying menu and item descriptions in the Marketplace view. When translation keys are missing or unavailable, the code now displays the raw description field instead of an empty string, providing better user experience.

Key changes:

  • Added null-safety checks for i18nKey before constructing descKey in the store module
  • Updated Marketplace view to fallback to description field instead of empty strings when translations are unavailable
  • Minor formatting improvement in Spanish locale file

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/store/modules/app.ts Added conditional checks to safely construct descKey only when i18nKey exists
src/views/Marketplace.vue Changed fallback from empty string to description field for both menu and subitem descriptions
src/locales/lang/menus/es.ts Formatting improvement: split long translation string across multiple lines

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Fine0830 Fine0830 requested a review from wu-sheng October 29, 2025 05:55
@wu-sheng wu-sheng merged commit 3092725 into apache:main Oct 29, 2025
11 checks passed
@Fine0830 Fine0830 deleted the bugfix/description branch October 29, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants