flow-components
flow-components copied to clipboard
feat: implement i18n support
Description
This PR adds internationalization support through Dashboard.DashboardI18n.
Added API:
- For
DashboardDashboardI18n getI18n(): Gets the internationalization object previously set for the dashboardvoid setI18n(DashboardI18n i18n): Sets the internationalization object for the dashboard
- For
Dashboard.DashboardI18nString getSelectSectionTitleForEditing(): Gets the text for thearia-labelattribute of section focus buttonsDashboardI18n setSelectSectionTitleForEditing(String selectSectionTitleForEditing): Sets the text for thearia-labelattribute of section focus buttonsString getSelectWidgetTitleForEditing(): Gets the text for thearia-labelattribute of widget focus buttonsDashboardI18n setSelectWidgetTitleForEditing(String selectWidgetTitleForEditing): Sets the text for thearia-labelattribute of widget focus buttonsString getRemove(): Gets the text for thetitleattribute of dashboard item remove buttonsDashboardI18n setRemove(String remove): Sets the text for thetitleattribute of dashboard item remove buttonsString getResize(): Gets the text for thetitleattribute of widget resize handlesDashboardI18n setResize(String resize): Sets the text for thetitleattribute of widget resize handlesString getResizeApply(): Gets the text for thetitleattribute of widget resize apply buttonsDashboardI18n setResizeApply(String resizeApply): Sets the text for thetitleattribute of widget resize apply buttonsString getResizeShrinkWidth(): Gets the text for thetitleattribute of widget resize shrink width buttonsDashboardI18n setResizeShrinkWidth(String resizeShrinkWidth): Sets the text for thetitleattribute of widget resize shrink width buttonsString getResizeGrowWidth(): Gets the text for thetitleattribute of widget resize grow width buttonsDashboardI18n setResizeGrowWidth(String resizeGrowWidth): Sets the text for thetitleattribute of widget resize grow width buttonsString getResizeShrinkHeight(): Gets the text for thetitleattribute of widget resize shrink height buttonsDashboardI18n setResizeShrinkHeight(String resizeShrinkHeight): Sets the text for thetitleattribute of widget resize shrink height buttonsString getResizeGrowHeight(): Gets the text for thetitleattribute of widget resize grow height buttonsDashboardI18n setResizeGrowHeight(String resizeGrowHeight): Sets the text for thetitleattribute of widget resize grow height buttonsString getMove(): Gets the text for thetitleattribute of dashboard item drag handlesDashboardI18n setMove(String move): Sets the text for thetitleattribute of dashboard item drag handlesString getMoveApply(): Gets the text for thetitleattribute of dashboard item move apply buttonsDashboardI18n setMoveApply(String moveApply): Sets the text for thetitleattribute of dashboard item move apply buttonsString getMoveForward(): Gets the text for thetitleattribute of dashboard item move forward buttonsDashboardI18n setMoveForward(String moveForward): Sets the text for thetitleattribute of dashboard item move forward buttonsString getMoveBackward(): Gets the text for thetitleattribute of dashboard item move backward buttonsDashboardI18n setMoveBackward(String moveBackward): Sets the text for thetitleattribute of dashboard item move backward buttons
Fixes https://github.com/orgs/vaadin/projects/70/views/1?pane=issue&itemId=80848635
Part of https://github.com/vaadin/platform/issues/6626
Type of change
Feature
Quality Gate passed
Issues
3 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
This ticket/PR has been released with Vaadin 24.6.0.alpha1 and is also targeting the upcoming stable 24.6.0 version.