Skip to content

Commit 46b17db

Browse files
committed
CamelCase for Keys, Missing Key entry for placeholder.
1 parent 85b6204 commit 46b17db

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

client/components/AddRemoveButton.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import AddIcon from '../images/plus.svg';
77
import RemoveIcon from '../images/minus.svg';
88

99
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');
1111
const Icon = type === 'add' ? AddIcon : RemoveIcon;
1212

1313
return (

client/modules/IDE/components/EditableInput.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import PropTypes from 'prop-types';
22
import React from 'react';
33
import { withTranslation } from 'react-i18next';
4-
4+
import i18next from 'i18next';
55
import EditIcon from '../../../images/pencil.svg';
66

7+
78
// TODO I think this needs a description prop so that it's accessible
89
function EditableInput({
910
validate,
@@ -85,7 +86,7 @@ function EditableInput({
8586
}
8687

8788
EditableInput.defaultProps = {
88-
emptyPlaceholder: this.props.t('EditableInput.EmptyPlaceholder'),
89+
emptyPlaceholder: i18next.t('EditableInput.EmptyPlaceholder'),
8990
InputComponent: 'input',
9091
inputProps: {},
9192
validate: () => true,

translations/locales/en-US/translations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,8 @@
517517
"SavedAgo": "Saved: {{timeAgo}} ago"
518518
},
519519
"AddRemoveButton": {
520-
"altAddARIA": "Add to collection",
521-
"altRemoveARIA": "Remove from collection"
520+
"AltAddARIA": "Add to collection",
521+
"AltRemoveARIA": "Remove from collection"
522522
},
523523
"CopyableInput": {
524524
"CopiedARIA": "Copied to Clipboard!",

translations/locales/es-419/translations.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@
468468
"AriaLabel": "Cerrar la capa {{title}}"
469469
},
470470
"QuickAddList":{
471-
"ButtonLabelRemove": "Remove from collection",
472-
"ButtonLabelAddToCollection": "Add to collection",
471+
"ButtonLabelRemove": "Remover de colección",
472+
"ButtonLabelAddToCollection": "Agregar a colección",
473473
"View": "Ver"
474474
},
475475
"SketchList": {
@@ -517,8 +517,8 @@
517517
"SavedAgo": "Guardado: hace {{timeAgo}}"
518518
},
519519
"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"
522522
},
523523
"CopyableInput": {
524524
"CopiedARIA": "¡Copiado en el portapapeles!",

0 commit comments

Comments
 (0)