Adding Translation Keys in QuickAddList Component (fixes #1571)

This commit is contained in:
ov 2020-08-26 13:06:37 +01:00 committed by GitHub
parent c840734122
commit 4d04952213
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -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}>

View file

@ -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": {

View file

@ -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": {