syncfusion / ej2-locale

Translation texts for Essential JS 2 components in multiple languages
Other
38 stars 151 forks source link

913309: In AdaptiveUI Grid, localization is not working correctly on filter dialog header text and filter icon title #215

Open MUTHUSELVISF3942 opened 3 weeks ago

MUTHUSELVISF3942 commented 3 weeks ago

Bug description

In the filter menu dialog, the Filter button is rendered to execute the filtering action. The text on this button can be localized using the FilterButton locale keyword. When applying localization to the FilterButton (using the locale keyword), the same localized text is displayed on both the Filter Icon's tooltip (title) and the Filter dialog header in the Adaptive UI. We need to provide an option to customize the Filter Icon's tooltip and the Filter dialog header text with separate locale keywords.

Root cause

In the Adaptive UI grid, both the Filter Icon's title and the Filter Dialog header text are derived from the same locale keyword (FilterButton), which is causing the issue.

Reason for not identifying earlier

Find how it was missed in our earlier testing and development by analyzing the below checklist. This will help prevent similar mistakes in the future.

Reason:

Guidelines/documents are not given - Requirement document

Action taken:

Added the manual testing sample to ensure this issue in future. You can find the testbed sample in the below location. https://github.com/essential-studio/ej2-grid-playwright-test/pull/602

Related areas:

Adaptive Grid, Sort, Filter, Localization

Is it a breaking issue?

No

Solution description

We have provided separate locale keywords for the filter icon, sort icon title, and filter dialog header text. Now, each element's text is localized using its specific keyword.

Output screenshots

Before

beforeadaptive

After

after

Areas affected and ensured

Responsive-dialog-renderer.ts file getHeaderTitle method Toolbar.ts file render method Grid.ts file initProperties method

Ensured the following cases:

Additional checklist

This may vary for different teams or products. Check with your scrum masters.