Skip to content

Commit 4d04952

Browse files
authored
Adding Translation Keys in QuickAddList Component (fixes #1571)
1 parent c840734 commit 4d04952

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

client/modules/IDE/components/QuickAddList/QuickAddList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Icons from './Icons';
88
const Item = ({
99
isAdded, onSelect, name, url, t
1010
}) => {
11-
const buttonLabel = isAdded ? 'Remove from collection' : 'Add to collection';
11+
const buttonLabel = isAdded ? t('QuickAddList.ButtonRemoveARIA') : t('QuickAddList.ButtonAddToCollectionARIA');
1212
return (
1313
<li className="quick-add__item" onClick={onSelect}> { /* eslint-disable-line */ }
1414
<button className="quick-add__item-toggle" onClick={onSelect} aria-label={buttonLabel}>

translations/locales/en-US/translations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@
444444
"AriaLabel": "Close {{title}} overlay"
445445
},
446446
"QuickAddList":{
447-
"ButtonLabelRemove": "Remove from collection",
448-
"ButtonLabelAddToCollection": "Add to collection",
447+
"ButtonRemoveARIA": "Remove from collection",
448+
"ButtonAddToCollectionARIA": "Add to collection",
449449
"View": "View"
450450
},
451451
"SketchList": {

translations/locales/es-419/translations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@
444444
"AriaLabel": "Cerrar la capa {{title}}"
445445
},
446446
"QuickAddList":{
447-
"ButtonLabelRemove": "Remove from collection",
448-
"ButtonLabelAddToCollection": "Add to collection",
447+
"ButtonRemoveARIA": "Remover de colección",
448+
"ButtonAddToCollectionARIA": "Agregar a colección",
449449
"View": "Ver"
450450
},
451451
"SketchList": {

0 commit comments

Comments
 (0)