Skip to content

Commit a94f372

Browse files
authored
Merge branch 'develop' into fixing-mobile-menu-translations
2 parents 3b161ee + 497f7ce commit a94f372

File tree

4 files changed

+31
-5
lines changed

4 files changed

+31
-5
lines changed

client/modules/IDE/components/SketchList.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ const SketchList = ({
148148
context: mobile ? 'mobile' : ''
149149
})
150150
)}
151-
{userIsOwner && renderFieldHeader('visibility', 'Visibility')}
151+
{userIsOwner &&
152+
renderFieldHeader('visibility', t('Visibility.Label'))}
152153
<th scope="col"></th>
153154
</tr>
154155
</thead>

client/modules/User/components/VisibilityDropdown.jsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { useState, useRef, useEffect } from 'react';
22
import PropTypes from 'prop-types';
3+
import { useTranslation } from 'react-i18next';
34
import LockIcon from '../../../images/lock.svg';
45
import EarthIcon from '../../../images/earth.svg';
56
import CheckmarkIcon from '../../../images/checkmark.svg';
@@ -8,18 +9,20 @@ const VisibilityDropdown = ({ sketch, onVisibilityChange, location }) => {
89
const [isOpen, setIsOpen] = useState(false);
910
const dropdownRef = useRef(null);
1011

12+
const { t } = useTranslation();
13+
1114
const visibilityOptions = [
1215
{
1316
value: 'Public',
14-
label: 'Public',
17+
label: t('Visibility.Public.Label'),
1518
icon: <EarthIcon className="visibility-icon" />,
16-
description: 'Anyone can see this sketch'
19+
description: t('Visibility.Public.Description')
1720
},
1821
{
1922
value: 'Private',
20-
label: 'Private',
23+
label: t('Visibility.Private.Label'),
2124
icon: <LockIcon className="visibility-icon" />,
22-
description: 'Only you can see this sketch'
25+
description: t('Visibility.Private.Description')
2326
}
2427
];
2528

translations/locales/en-US/translations.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,5 +677,16 @@
677677
},
678678
"SkipLink": {
679679
"PlaySketch": "Skip to Play Sketch"
680+
},
681+
"Visibility": {
682+
"Label": "Visibility",
683+
"Public": {
684+
"Description": "Anyone can see this sketch.",
685+
"Label": "Public"
686+
},
687+
"Private": {
688+
"Description": "Only you can see this sketch.",
689+
"Label": "Private"
690+
}
680691
}
681692
}

translations/locales/pt-BR/translations.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,5 +611,16 @@
611611
},
612612
"SkipLink": {
613613
"PlaySketch": "Pule para reproduzir o esboço"
614+
},
615+
"Visibility": {
616+
"Label": "Visibilidade",
617+
"Public": {
618+
"Description": "Qualquer um pode ver este esboço.",
619+
"Label": "Público"
620+
},
621+
"Private": {
622+
"Description": "Apenas você pode ver este esboço.",
623+
"Label": "Privado"
624+
}
614625
}
615626
}

0 commit comments

Comments
 (0)