Skip to content

feat(dashboards-ng): add translation support for widget name, description, and heading#1893

Open
chintankavathia wants to merge 1 commit intomainfrom
feat/dashboards/support/translatable/widget/name-description
Open

feat(dashboards-ng): add translation support for widget name, description, and heading#1893
chintankavathia wants to merge 1 commit intomainfrom
feat/dashboards/support/translatable/widget/name-description

Conversation

@chintankavathia
Copy link
Copy Markdown
Member

@chintankavathia chintankavathia commented Apr 17, 2026

Widget names and descriptions in the catalog now support translation keys, allowing localized widget catalog.

The heading field in WidgetConfig is now typed as TranslatableString for consistency with downstream si-card components that already apply translation.


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces internationalization support for widget metadata by changing the types of name, description, and heading from string to TranslatableString. The widget catalog component has been updated to use the translate pipe in templates and the translateSync method for filtering, alongside the addition of translation keys and unit tests. Feedback highlights the need to remove an unsafe .trim() call on the translatable description property and to shorten translation strings in both English and German to align with UX writing guidelines for conciseness.

Comment thread projects/dashboards-demo/src/assets/i18n/en.json Outdated
Comment thread projects/dashboards-demo/src/assets/i18n/de.json
…tion, and heading

Widget names and descriptions in the catalog now support translation keys, allowing localized widget catalog.

The `heading` field in `WidgetConfig` is now typed as `TranslatableString` for consistency with downstream `si-card` components that already apply translation.
@chintankavathia chintankavathia force-pushed the feat/dashboards/support/translatable/widget/name-description branch from 8b1abee to bd75f07 Compare April 17, 2026 10:56
@chintankavathia chintankavathia marked this pull request as ready for review April 17, 2026 11:20
@chintankavathia chintankavathia requested review from a team as code owners April 17, 2026 11: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