flow-components icon indicating copy to clipboard operation
flow-components copied to clipboard

feat: implement i18n support

Open ugur-vaadin opened this issue 1 year ago • 1 comments

Description

This PR adds internationalization support through Dashboard.DashboardI18n.

Added API:

  • For Dashboard
    • DashboardI18n getI18n(): Gets the internationalization object previously set for the dashboard
    • void setI18n(DashboardI18n i18n): Sets the internationalization object for the dashboard
  • For Dashboard.DashboardI18n
    • String getSelectSectionTitleForEditing(): Gets the text for the aria-label attribute of section focus buttons
    • DashboardI18n setSelectSectionTitleForEditing(String selectSectionTitleForEditing): Sets the text for the aria-label attribute of section focus buttons
    • String getSelectWidgetTitleForEditing(): Gets the text for the aria-label attribute of widget focus buttons
    • DashboardI18n setSelectWidgetTitleForEditing(String selectWidgetTitleForEditing): Sets the text for the aria-label attribute of widget focus buttons
    • String getRemove(): Gets the text for the title attribute of dashboard item remove buttons
    • DashboardI18n setRemove(String remove): Sets the text for the title attribute of dashboard item remove buttons
    • String getResize(): Gets the text for the title attribute of widget resize handles
    • DashboardI18n setResize(String resize): Sets the text for the title attribute of widget resize handles
    • String getResizeApply(): Gets the text for the title attribute of widget resize apply buttons
    • DashboardI18n setResizeApply(String resizeApply): Sets the text for the title attribute of widget resize apply buttons
    • String getResizeShrinkWidth(): Gets the text for the title attribute of widget resize shrink width buttons
    • DashboardI18n setResizeShrinkWidth(String resizeShrinkWidth): Sets the text for the title attribute of widget resize shrink width buttons
    • String getResizeGrowWidth(): Gets the text for the title attribute of widget resize grow width buttons
    • DashboardI18n setResizeGrowWidth(String resizeGrowWidth): Sets the text for the title attribute of widget resize grow width buttons
    • String getResizeShrinkHeight(): Gets the text for the title attribute of widget resize shrink height buttons
    • DashboardI18n setResizeShrinkHeight(String resizeShrinkHeight): Sets the text for the title attribute of widget resize shrink height buttons
    • String getResizeGrowHeight(): Gets the text for the title attribute of widget resize grow height buttons
    • DashboardI18n setResizeGrowHeight(String resizeGrowHeight): Sets the text for the title attribute of widget resize grow height buttons
    • String getMove(): Gets the text for the title attribute of dashboard item drag handles
    • DashboardI18n setMove(String move): Sets the text for the title attribute of dashboard item drag handles
    • String getMoveApply(): Gets the text for the title attribute of dashboard item move apply buttons
    • DashboardI18n setMoveApply(String moveApply): Sets the text for the title attribute of dashboard item move apply buttons
    • String getMoveForward(): Gets the text for the title attribute of dashboard item move forward buttons
    • DashboardI18n setMoveForward(String moveForward): Sets the text for the title attribute of dashboard item move forward buttons
    • String getMoveBackward(): Gets the text for the title attribute of dashboard item move backward buttons
    • DashboardI18n setMoveBackward(String moveBackward): Sets the text for the title attribute 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

ugur-vaadin avatar Sep 24 '24 12:09 ugur-vaadin

This ticket/PR has been released with Vaadin 24.6.0.alpha1 and is also targeting the upcoming stable 24.6.0 version.

vaadin-bot avatar Oct 17 '24 10:10 vaadin-bot