File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
front_end/panels/timeline Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,14 @@ const UIStrings = {
144144 * @description Text for Match whole word button
145145 */
146146 matchWholeWord : 'Match whole word' ,
147+ /**
148+ * @description Text referring to a 1st party entity
149+ */
150+ firstParty : '1st party' ,
151+ /**
152+ * @description Text referring to an entity that is an extension
153+ */
154+ extension : 'Extension' ,
147155} ;
148156const str_ = i18n . i18n . registerUIStrings ( 'panels/timeline/TimelineTreeView.ts' , UIStrings ) ;
149157const i18nString = i18n . i18n . getLocalizedString . bind ( undefined , str_ ) ;
@@ -705,13 +713,14 @@ export class GridNode extends DataGrid.SortableDataGrid.SortableDataGridNode<Gri
705713 let badgeText = '' ;
706714
707715 if ( thirdPartyTree . nodeIsFirstParty ( this . profileNode ) ) {
708- badgeText = '1st party' ;
716+ badgeText = i18nString ( UIStrings . firstParty ) ;
709717 } else if ( thirdPartyTree . nodeIsExtension ( this . profileNode ) ) {
710- badgeText = 'Extension' ;
718+ badgeText = i18nString ( UIStrings . extension ) ;
711719 }
712720
713721 if ( badgeText ) {
714722 const badge = container . createChild ( 'div' , 'entity-badge' ) ;
723+ UI . ARIAUtils . setLabel ( badge , badgeText ) ;
715724 badge . createChild ( 'div' , 'entity-badge-name' ) . textContent = badgeText ;
716725 }
717726 }
You can’t perform that action at this time.
0 commit comments