Premium support for our pure JavaScript UI components


Post by danielhtpg »

Hello,

when using swimelanes in the taskboard component, the expand/collapse buttons are not translated. The method populateSwimlane in TaskBoard\view\mixin\ExpandCollapse.js uses the following code for btip (line 369-371)

 btip : showCollapseTooltip
                                                ? StringHelper.xss`${collapsed ? 'Expand' : 'Collapse'} ${text}`
                                                : null

It should be as follows

 btip : showCollapseTooltip
                                                ? StringHelper.xss`${this.L(collapsed ? 'L{TaskBoard.expand}' : 'L{TaskBoard.collapse}', text)}`
                                                : null

Post by danielhtpg »

Ah nvm, this issue seems to have been solved in newer versions. We're still on 5.2.9 so guess the fix must have come with 5.3.0


Post by danielhtpg »

I take it back, what was added was the translation for column headers, which was what I was reffering to before in the source code. I was reffering to the following expand/collapse.
Image
I've replicated this by opening the localization demo (running 5.3.1) and configuring swimlanes.

Edit: The method populateSwimlane is also missing the translation in line 368


Post by marcio »

Hey danielhtpg,

Thanks for the detailed report, I created a ticket to fix that https://github.com/bryntum/support/issues/6460

Best regards,
Márcio


Post Reply