@@ -61,13 +61,13 @@ class AssetListRowBase extends React.Component {
6161 handleAssetDelete = ( ) => {
6262 const { key, name } = this . props . asset ;
6363 this . closeOptions ( ) ;
64- if ( window . confirm ( `Are you sure you want to delete " ${ name } "?` ) ) {
64+ if ( window . confirm ( this . props . t ( 'Common.DeleteConfirmation' , { name } ) ) ) {
6565 this . props . deleteAssetRequest ( key ) ;
6666 }
6767 }
6868
6969 render ( ) {
70- const { asset, username } = this . props ;
70+ const { asset, username, t } = this . props ;
7171 const { optionsOpen } = this . state ;
7272 return (
7373 < tr className = "asset-table__row" key = { asset . key } >
@@ -86,7 +86,7 @@ class AssetListRowBase extends React.Component {
8686 onClick = { this . toggleOptions }
8787 onBlur = { this . onBlurComponent }
8888 onFocus = { this . onFocusComponent }
89- aria-label = { this . props . t ( 'AssetList.ToggleOpenCloseARIA' ) }
89+ aria-label = { t ( 'AssetList.ToggleOpenCloseARIA' ) }
9090 >
9191 < DownFilledTriangleIcon focusable = "false" aria-hidden = "true" />
9292 </ button >
@@ -101,7 +101,7 @@ class AssetListRowBase extends React.Component {
101101 onBlur = { this . onBlurComponent }
102102 onFocus = { this . onFocusComponent }
103103 >
104- { this . props . t ( 'AssetList.Delete' ) }
104+ { t ( 'AssetList.Delete' ) }
105105 </ button >
106106 </ li >
107107 < li >
@@ -112,7 +112,7 @@ class AssetListRowBase extends React.Component {
112112 onFocus = { this . onFocusComponent }
113113 className = "asset-table__action-option"
114114 >
115- { this . props . t ( 'AssetList.OpenNewTab' ) }
115+ { t ( 'AssetList.OpenNewTab' ) }
116116 </ Link >
117117 </ li >
118118 </ ul > }
@@ -194,7 +194,7 @@ class AssetList extends React.Component {
194194 </ tr >
195195 </ thead >
196196 < tbody >
197- { assetList . map ( asset => < AssetListRow asset = { asset } key = { asset . key } /> ) }
197+ { assetList . map ( asset => < AssetListRow asset = { asset } key = { asset . key } t = { t } /> ) }
198198 </ tbody >
199199 </ table > }
200200 </ article >
0 commit comments