Skip to content

Commit

Permalink
List, TagBox, Splitter: localize aria-roledescription attribute (T126…
Browse files Browse the repository at this point in the history
…7579) (#28614)
  • Loading branch information
anna-shakhova authored Dec 24, 2024
1 parent 2914181 commit b26f849
Show file tree
Hide file tree
Showing 35 changed files with 157 additions and 64 deletions.
2 changes: 1 addition & 1 deletion packages/devextreme/js/__internal/ui/list/m_list.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ export const ListBase = CollectionWidget.inherit({
const elementAria = {
role: 'group',
// eslint-disable-next-line spellcheck/spell-checker
roledescription: 'list',
roledescription: messageLocalization.format('dxList-ariaRoleDescription'),
};

this.setAria(elementAria, this.$element());
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/__internal/ui/m_tag_box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ const TagBox = (SelectBox as any).inherit({
const elementAria = {
role: 'application',
// eslint-disable-next-line spellcheck/spell-checker
roledescription: 'tagbox',
roledescription: messageLocalization.format('dxTagBox-ariaRoleDescription'),
};

this.setAria(elementAria, this.$element());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ class ResizeHandle extends Widget<ResizeHandleOptions> {
this.setAria({
role: 'application',
// eslint-disable-next-line spellcheck/spell-checker
roledescription: 'separator',
roledescription: messageLocalization.format('dxSplitter-resizeHandleAriaRoleDescription'),
label: messageLocalization.format('dxSplitter-resizeHandleAriaLabel'),
});
}
Expand Down
7 changes: 5 additions & 2 deletions packages/devextreme/js/localization/messages/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"dxList-selectAll-indeterminate": "Half-checked",
"dxList-selectAll-checked": "Checked",
"dxList-selectAll-notChecked": "Not checked",
"dxList-ariaRoleDescription": "List",

"dxScrollView-pullingDownText": "للتحديث اسحب للأسفل...",
"dxScrollView-pulledDownText": "حرر للتحديث ...",
Expand Down Expand Up @@ -250,7 +251,7 @@
"dxPivotGrid-filterFieldArea": "إفلات حقول التصفية هنا",

"dxScheduler-ariaLabel": "Scheduler. {0} view",


"dxScheduler-appointmentAriaLabel-group": "Group: {0}",
"dxScheduler-appointmentAriaLabel-recurring": "Recurring appointment",
Expand Down Expand Up @@ -372,6 +373,7 @@
"dxTagBox-allSelected": "كل العناصر المحددة ({0})",
"dxTagBox-moreSelected": "{0} المزيد",
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
"dxTagBox-ariaRoleDescription": "Tag box",

"vizExport-printingButtonText": "Print",
"vizExport-titleMenuText": "تصدير / طباعة",
Expand Down Expand Up @@ -793,6 +795,7 @@
"dxMultiView-itemAriaRoleDescription": "View",
"dxMultiView-itemAriaLabel": "{0} of {1}",

"dxSplitter-resizeHandleAriaLabel": "Split bar"
"dxSplitter-resizeHandleAriaLabel": "Split bar",
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
}
}
7 changes: 5 additions & 2 deletions packages/devextreme/js/localization/messages/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"dxList-selectAll-indeterminate": "Half-checked",
"dxList-selectAll-checked": "Checked",
"dxList-selectAll-notChecked": "Not checked",
"dxList-ariaRoleDescription": "List",

"dxScrollView-pullingDownText": "Tireu cap avall per refrescar -se ...",
"dxScrollView-pulledDownText": "Allibereu a refresc ...",
Expand Down Expand Up @@ -250,7 +251,7 @@
"dxPivotGrid-filterFieldArea": "Els camps de filtre de baixada aquí",

"dxScheduler-ariaLabel": "Scheduler. {0} view",


"dxScheduler-appointmentAriaLabel-group": "Group: {0}",
"dxScheduler-appointmentAriaLabel-recurring": "Recurring appointment",
Expand Down Expand Up @@ -372,6 +373,7 @@
"dxTagBox-allSelected": "Tot seleccionat ({0})",
"dxTagBox-moreSelected": "{0} Més",
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
"dxTagBox-ariaRoleDescription": "Tag box",

"vizExport-printingButtonText": "Imprimir",
"vizExport-titleMenuText": "Exportació/impressió",
Expand Down Expand Up @@ -793,6 +795,7 @@
"dxMultiView-itemAriaRoleDescription": "View",
"dxMultiView-itemAriaLabel": "{0} of {1}",

"dxSplitter-resizeHandleAriaLabel": "Split bar"
"dxSplitter-resizeHandleAriaLabel": "Split bar",
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
}
}
7 changes: 5 additions & 2 deletions packages/devextreme/js/localization/messages/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"dxList-selectAll-indeterminate": "Half-checked",
"dxList-selectAll-checked": "Checked",
"dxList-selectAll-notChecked": "Not checked",
"dxList-ariaRoleDescription": "List",

"dxScrollView-pullingDownText": "Stáhněte dolů pro obnovení...",
"dxScrollView-pulledDownText": "Uvolněte pro obnovení...",
Expand Down Expand Up @@ -250,7 +251,7 @@
"dxPivotGrid-filterFieldArea": "Zde vložte filtr pole",

"dxScheduler-ariaLabel": "Scheduler. {0} view",


"dxScheduler-appointmentAriaLabel-group": "Group: {0}",
"dxScheduler-appointmentAriaLabel-recurring": "Recurring appointment",
Expand Down Expand Up @@ -372,6 +373,7 @@
"dxTagBox-allSelected": "Vše vybráno ({0})",
"dxTagBox-moreSelected": "{0} navíc",
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
"dxTagBox-ariaRoleDescription": "Tag box",

"vizExport-printingButtonText": "Tisk",
"vizExport-titleMenuText": "Export/import",
Expand Down Expand Up @@ -793,6 +795,7 @@
"dxMultiView-itemAriaRoleDescription": "View",
"dxMultiView-itemAriaLabel": "{0} of {1}",

"dxSplitter-resizeHandleAriaLabel": "Split bar"
"dxSplitter-resizeHandleAriaLabel": "Split bar",
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
}
}
7 changes: 5 additions & 2 deletions packages/devextreme/js/localization/messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"dxList-selectAll-indeterminate": "Half-checked",
"dxList-selectAll-checked": "Checked",
"dxList-selectAll-notChecked": "Not checked",
"dxList-ariaRoleDescription": "List",

"dxScrollView-pullingDownText": "Zum Aktualisieren nach unten ziehen",
"dxScrollView-pulledDownText": "Zum Aktualisieren loslassen",
Expand Down Expand Up @@ -250,7 +251,7 @@
"dxPivotGrid-filterFieldArea": "Filterfelder hierher ziehen",

"dxScheduler-ariaLabel": "Scheduler. {0} view",


"dxScheduler-appointmentAriaLabel-group": "Group: {0}",
"dxScheduler-appointmentAriaLabel-recurring": "Recurring appointment",
Expand Down Expand Up @@ -372,6 +373,7 @@
"dxTagBox-allSelected": "Alle ausgewählt ({0})",
"dxTagBox-moreSelected": "{0} weitere",
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
"dxTagBox-ariaRoleDescription": "Tag box",

"vizExport-printingButtonText": "Drucken",
"vizExport-titleMenuText": "Export/Druck",
Expand Down Expand Up @@ -793,6 +795,7 @@
"dxMultiView-itemAriaRoleDescription": "View",
"dxMultiView-itemAriaLabel": "{0} of {1}",

"dxSplitter-resizeHandleAriaLabel": "Split bar"
"dxSplitter-resizeHandleAriaLabel": "Split bar",
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
}
}
7 changes: 5 additions & 2 deletions packages/devextreme/js/localization/messages/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"dxList-selectAll-indeterminate": "Half-checked",
"dxList-selectAll-checked": "Checked",
"dxList-selectAll-notChecked": "Not checked",
"dxList-ariaRoleDescription": "List",

"dxScrollView-pullingDownText": "Σύρετε απο πάνω προς τα κάτω για ανανέωση...",
"dxScrollView-pulledDownText": "Απελευθερώστε για ανανέωση...",
Expand Down Expand Up @@ -250,7 +251,7 @@
"dxPivotGrid-filterFieldArea": "Τοποθετήστε τα πεδία φίλτρων εδώ",

"dxScheduler-ariaLabel": "Scheduler. {0} view",


"dxScheduler-appointmentAriaLabel-group": "Group: {0}",
"dxScheduler-appointmentAriaLabel-recurring": "Recurring appointment",
Expand Down Expand Up @@ -372,6 +373,7 @@
"dxTagBox-allSelected": "Όλα επιλέχθηκαν ({0})",
"dxTagBox-moreSelected": "{0} περισσότερα",
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
"dxTagBox-ariaRoleDescription": "Tag box",

"vizExport-printingButtonText": "Εκτύπωση",
"vizExport-titleMenuText": "Εξαγωγή/Εκτύπωση",
Expand Down Expand Up @@ -793,6 +795,7 @@
"dxMultiView-itemAriaRoleDescription": "View",
"dxMultiView-itemAriaLabel": "{0} of {1}",

"dxSplitter-resizeHandleAriaLabel": "Split bar"
"dxSplitter-resizeHandleAriaLabel": "Split bar",
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
}
}
7 changes: 5 additions & 2 deletions packages/devextreme/js/localization/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"dxList-selectAll-indeterminate": "Half-checked",
"dxList-selectAll-checked": "Checked",
"dxList-selectAll-notChecked": "Not checked",
"dxList-ariaRoleDescription": "List",

"dxScrollView-pullingDownText": "Pull down to refresh...",
"dxScrollView-pulledDownText": "Release to refresh...",
Expand Down Expand Up @@ -250,7 +251,7 @@
"dxPivotGrid-filterFieldArea": "Drop Filter Fields Here",

"dxScheduler-ariaLabel": "Scheduler. {0} view",


"dxScheduler-appointmentAriaLabel-group": "Group: {0}",
"dxScheduler-appointmentAriaLabel-recurring": "Recurring appointment",
Expand Down Expand Up @@ -372,6 +373,7 @@
"dxTagBox-allSelected": "All selected ({0})",
"dxTagBox-moreSelected": "{0} more",
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
"dxTagBox-ariaRoleDescription": "Tag box",

"vizExport-printingButtonText": "Print",
"vizExport-titleMenuText": "Exporting/Printing",
Expand Down Expand Up @@ -793,6 +795,7 @@
"dxMultiView-itemAriaRoleDescription": "View",
"dxMultiView-itemAriaLabel": "{0} of {1}",

"dxSplitter-resizeHandleAriaLabel": "Split bar"
"dxSplitter-resizeHandleAriaLabel": "Split bar",
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
}
}
7 changes: 5 additions & 2 deletions packages/devextreme/js/localization/messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"dxList-selectAll-indeterminate": "Half-checked",
"dxList-selectAll-checked": "Checked",
"dxList-selectAll-notChecked": "Not checked",
"dxList-ariaRoleDescription": "List",

"dxScrollView-pullingDownText": "Desliza hacia abajo para actualizar...",
"dxScrollView-pulledDownText": "Suelta para actualizar...",
Expand Down Expand Up @@ -250,7 +251,7 @@
"dxPivotGrid-filterFieldArea": "Arrastra campos de filtro aquí",

"dxScheduler-ariaLabel": "Scheduler. {0} view",


"dxScheduler-appointmentAriaLabel-group": "Group: {0}",
"dxScheduler-appointmentAriaLabel-recurring": "Recurring appointment",
Expand Down Expand Up @@ -372,6 +373,7 @@
"dxTagBox-allSelected": "Todos seleccionados ({0})",
"dxTagBox-moreSelected": "{0} más",
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
"dxTagBox-ariaRoleDescription": "Tag box",

"vizExport-printingButtonText": "Imprimir",
"vizExport-titleMenuText": "Exportar/Imprimir",
Expand Down Expand Up @@ -793,6 +795,7 @@
"dxMultiView-itemAriaRoleDescription": "View",
"dxMultiView-itemAriaLabel": "{0} of {1}",

"dxSplitter-resizeHandleAriaLabel": "Split bar"
"dxSplitter-resizeHandleAriaLabel": "Split bar",
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
}
}
7 changes: 5 additions & 2 deletions packages/devextreme/js/localization/messages/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"dxList-selectAll-indeterminate": "Half-checked",
"dxList-selectAll-checked": "Checked",
"dxList-selectAll-notChecked": "Not checked",
"dxList-ariaRoleDescription": "List",

"dxScrollView-pullingDownText": "برای تازه کردن به پایین بکشید ...",
"dxScrollView-pulledDownText": "انتشار برای تازه کردن ...",
Expand Down Expand Up @@ -250,7 +251,7 @@
"dxPivotGrid-filterFieldArea": "فیلدهای مربوط به فیلتر را به اینجا انتقال دهید (درگ نمایید)",

"dxScheduler-ariaLabel": "Scheduler. {0} view",


"dxScheduler-appointmentAriaLabel-group": "Group: {0}",
"dxScheduler-appointmentAriaLabel-recurring": "Recurring appointment",
Expand Down Expand Up @@ -372,6 +373,7 @@
"dxTagBox-allSelected": "همه انتخاب شده اند ({0})",
"dxTagBox-moreSelected": "{0} سایر",
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
"dxTagBox-ariaRoleDescription": "Tag box",

"vizExport-printingButtonText": "چاپ",
"vizExport-titleMenuText": "صادرات / چاپ",
Expand Down Expand Up @@ -793,6 +795,7 @@
"dxMultiView-itemAriaRoleDescription": "View",
"dxMultiView-itemAriaLabel": "{0} of {1}",

"dxSplitter-resizeHandleAriaLabel": "Split bar"
"dxSplitter-resizeHandleAriaLabel": "Split bar",
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
}
}
7 changes: 5 additions & 2 deletions packages/devextreme/js/localization/messages/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"dxList-selectAll-indeterminate": "Half-checked",
"dxList-selectAll-checked": "Checked",
"dxList-selectAll-notChecked": "Not checked",
"dxList-ariaRoleDescription": "List",

"dxScrollView-pullingDownText": "Päivitä vetämällä alas...",
"dxScrollView-pulledDownText": "Päivitä vapauttamalla...",
Expand Down Expand Up @@ -250,7 +251,7 @@
"dxPivotGrid-filterFieldArea": "Pudota suodatinkentät tähän",

"dxScheduler-ariaLabel": "Scheduler. {0} view",


"dxScheduler-appointmentAriaLabel-group": "Group: {0}",
"dxScheduler-appointmentAriaLabel-recurring": "Recurring appointment",
Expand Down Expand Up @@ -372,6 +373,7 @@
"dxTagBox-allSelected": "Kaikki valitut ({0})",
"dxTagBox-moreSelected": "{0} lisää",
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
"dxTagBox-ariaRoleDescription": "Tag box",

"vizExport-printingButtonText": "Tulosta",
"vizExport-titleMenuText": "Vienti/Tulostus",
Expand Down Expand Up @@ -793,6 +795,7 @@
"dxMultiView-itemAriaRoleDescription": "View",
"dxMultiView-itemAriaLabel": "{0} of {1}",

"dxSplitter-resizeHandleAriaLabel": "Split bar"
"dxSplitter-resizeHandleAriaLabel": "Split bar",
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
}
}
7 changes: 5 additions & 2 deletions packages/devextreme/js/localization/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"dxList-selectAll-indeterminate": "Half-checked",
"dxList-selectAll-checked": "Checked",
"dxList-selectAll-notChecked": "Not checked",
"dxList-ariaRoleDescription": "List",

"dxScrollView-pullingDownText": "Tirez vers le bas pour actualiser...",
"dxScrollView-pulledDownText": "Relacher pour actualiser...",
Expand Down Expand Up @@ -250,7 +251,7 @@
"dxPivotGrid-filterFieldArea": "Déposer les champs de filtre ici",

"dxScheduler-ariaLabel": "Scheduler. {0} view",


"dxScheduler-appointmentAriaLabel-group": "Group: {0}",
"dxScheduler-appointmentAriaLabel-recurring": "Recurring appointment",
Expand Down Expand Up @@ -372,6 +373,7 @@
"dxTagBox-allSelected": "Tous sélectionnés ({0})",
"dxTagBox-moreSelected": "{0} en plus",
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
"dxTagBox-ariaRoleDescription": "Tag box",

"vizExport-printingButtonText": "Imprimer",
"vizExport-titleMenuText": "Exporter/Imprimer",
Expand Down Expand Up @@ -793,6 +795,7 @@
"dxMultiView-itemAriaRoleDescription": "View",
"dxMultiView-itemAriaLabel": "{0} of {1}",

"dxSplitter-resizeHandleAriaLabel": "Split bar"
"dxSplitter-resizeHandleAriaLabel": "Split bar",
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
}
}
Loading

0 comments on commit b26f849

Please sign in to comment.