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 = ({
|
const Item = ({
|
||||||
isAdded, onSelect, name, url, t
|
isAdded, onSelect, name, url, t
|
||||||
}) => {
|
}) => {
|
||||||
const buttonLabel = isAdded ? 'Remove from collection' : 'Add to collection';
|
const buttonLabel = isAdded ? t('QuickAddList.ButtonRemoveARIA') : t('QuickAddList.ButtonAddToCollectionARIA');
|
||||||
return (
|
return (
|
||||||
<li className="quick-add__item" onClick={onSelect}> { /* eslint-disable-line */ }
|
<li className="quick-add__item" onClick={onSelect}> { /* eslint-disable-line */ }
|
||||||
<button className="quick-add__item-toggle" onClick={onSelect} aria-label={buttonLabel}>
|
<button className="quick-add__item-toggle" onClick={onSelect} aria-label={buttonLabel}>
|
||||||
|
|
|
@ -444,8 +444,8 @@
|
||||||
"AriaLabel": "Close {{title}} overlay"
|
"AriaLabel": "Close {{title}} overlay"
|
||||||
},
|
},
|
||||||
"QuickAddList":{
|
"QuickAddList":{
|
||||||
"ButtonLabelRemove": "Remove from collection",
|
"ButtonRemoveARIA": "Remove from collection",
|
||||||
"ButtonLabelAddToCollection": "Add to collection",
|
"ButtonAddToCollectionARIA": "Add to collection",
|
||||||
"View": "View"
|
"View": "View"
|
||||||
},
|
},
|
||||||
"SketchList": {
|
"SketchList": {
|
||||||
|
|
|
@ -444,8 +444,8 @@
|
||||||
"AriaLabel": "Cerrar la capa {{title}}"
|
"AriaLabel": "Cerrar la capa {{title}}"
|
||||||
},
|
},
|
||||||
"QuickAddList":{
|
"QuickAddList":{
|
||||||
"ButtonLabelRemove": "Remove from collection",
|
"ButtonRemoveARIA": "Remover de colección",
|
||||||
"ButtonLabelAddToCollection": "Add to collection",
|
"ButtonAddToCollectionARIA": "Agregar a colección",
|
||||||
"View": "Ver"
|
"View": "Ver"
|
||||||
},
|
},
|
||||||
"SketchList": {
|
"SketchList": {
|
||||||
|
|
Loading…
Reference in a new issue