Adding Translation Keys in QuickAddList Component (fixes #1571)
This commit is contained in:
parent
c840734122
commit
4d04952213
3 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@ import Icons from './Icons';
|
|||
const Item = ({
|
||||
isAdded, onSelect, name, url, t
|
||||
}) => {
|
||||
const buttonLabel = isAdded ? 'Remove from collection' : 'Add to collection';
|
||||
const buttonLabel = isAdded ? t('QuickAddList.ButtonRemoveARIA') : t('QuickAddList.ButtonAddToCollectionARIA');
|
||||
return (
|
||||
<li className="quick-add__item" onClick={onSelect}> { /* eslint-disable-line */ }
|
||||
<button className="quick-add__item-toggle" onClick={onSelect} aria-label={buttonLabel}>
|
||||
|
|
|
@ -444,8 +444,8 @@
|
|||
"AriaLabel": "Close {{title}} overlay"
|
||||
},
|
||||
"QuickAddList":{
|
||||
"ButtonLabelRemove": "Remove from collection",
|
||||
"ButtonLabelAddToCollection": "Add to collection",
|
||||
"ButtonRemoveARIA": "Remove from collection",
|
||||
"ButtonAddToCollectionARIA": "Add to collection",
|
||||
"View": "View"
|
||||
},
|
||||
"SketchList": {
|
||||
|
|
|
@ -444,8 +444,8 @@
|
|||
"AriaLabel": "Cerrar la capa {{title}}"
|
||||
},
|
||||
"QuickAddList":{
|
||||
"ButtonLabelRemove": "Remove from collection",
|
||||
"ButtonLabelAddToCollection": "Add to collection",
|
||||
"ButtonRemoveARIA": "Remover de colección",
|
||||
"ButtonAddToCollectionARIA": "Agregar a colección",
|
||||
"View": "Ver"
|
||||
},
|
||||
"SketchList": {
|
||||
|
|
Loading…
Reference in a new issue