-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: dashboard i18n #7847
feat: dashboard i18n #7847
Conversation
|
||
const widget = getElementFromCell(dashboard, 0, 0) as DashboardWidget; | ||
expect(widget.i18n.selectWidgetTitleForEditing).to.equal('foo'); | ||
expect(widget.i18n).to.eql({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Can be simplified to expect(section.i18n).to.eql(dashboard.i18n);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
const widget = getElementFromCell(dashboard, 1, 0) as DashboardWidget; | ||
const section = widget.closest('vaadin-dashboard-section') as DashboardSection; | ||
expect(section.i18n.selectSectionTitleForEditing).to.equal('foo'); | ||
expect(section.i18n).to.eql({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Can be simplified to expect(section.i18n).to.eql(dashboard.i18n);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added two small comments.
Quality Gate passedIssues Measures |
This ticket/PR has been released with Vaadin 24.6.0.beta1 and is also targeting the upcoming stable 24.6.0 version. |
Description
Add dashboard i18n object
Fixes https://github.com/orgs/vaadin/projects/70/views/1?pane=issue&itemId=80724405
Added API:
Type of change
Feature