File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import AddIcon from '../images/plus.svg';
7
7
import RemoveIcon from '../images/minus.svg' ;
8
8
9
9
const AddRemoveButton = ( { type, onClick, t } ) => {
10
- const alt = type === 'add' ? t ( 'AddRemoveButton.altAddARIA ' ) : t ( 'AddRemoveButton.altRemoveARIA ' ) ;
10
+ const alt = type === 'add' ? t ( 'AddRemoveButton.AltAddARIA ' ) : t ( 'AddRemoveButton.AltRemoveARIA ' ) ;
11
11
const Icon = type === 'add' ? AddIcon : RemoveIcon ;
12
12
13
13
return (
Original file line number Diff line number Diff line change 1
1
import PropTypes from 'prop-types' ;
2
2
import React from 'react' ;
3
3
import { withTranslation } from 'react-i18next' ;
4
-
4
+ import i18next from 'i18next' ;
5
5
import EditIcon from '../../../images/pencil.svg' ;
6
6
7
+
7
8
// TODO I think this needs a description prop so that it's accessible
8
9
function EditableInput ( {
9
10
validate,
@@ -85,7 +86,7 @@ function EditableInput({
85
86
}
86
87
87
88
EditableInput . defaultProps = {
88
- emptyPlaceholder : this . props . t ( 'EditableInput.EmptyPlaceholder' ) ,
89
+ emptyPlaceholder : i18next . t ( 'EditableInput.EmptyPlaceholder' ) ,
89
90
InputComponent : 'input' ,
90
91
inputProps : { } ,
91
92
validate : ( ) => true ,
Original file line number Diff line number Diff line change 517
517
"SavedAgo" : " Saved: {{timeAgo}} ago"
518
518
},
519
519
"AddRemoveButton" : {
520
- "altAddARIA " : " Add to collection" ,
521
- "altRemoveARIA " : " Remove from collection"
520
+ "AltAddARIA " : " Add to collection" ,
521
+ "AltRemoveARIA " : " Remove from collection"
522
522
},
523
523
"CopyableInput" : {
524
524
"CopiedARIA" : " Copied to Clipboard!" ,
Original file line number Diff line number Diff line change 468
468
"AriaLabel" : " Cerrar la capa {{title}}"
469
469
},
470
470
"QuickAddList" :{
471
- "ButtonLabelRemove" : " Remove from collection " ,
472
- "ButtonLabelAddToCollection" : " Add to collection " ,
471
+ "ButtonLabelRemove" : " Remover de colección " ,
472
+ "ButtonLabelAddToCollection" : " Agregar a colección " ,
473
473
"View" : " Ver"
474
474
},
475
475
"SketchList" : {
517
517
"SavedAgo" : " Guardado: hace {{timeAgo}}"
518
518
},
519
519
"AddRemoveButton" : {
520
- "altAddARIA " : " Agregar a colección" ,
521
- "altRemoveARIA " : " Remover de colección"
520
+ "AltAddARIA " : " Agregar a colección" ,
521
+ "AltRemoveARIA " : " Remover de colección"
522
522
},
523
523
"CopyableInput" : {
524
524
"CopiedARIA" : " ¡Copiado en el portapapeles!" ,
You can’t perform that action at this time.
0 commit comments