add(speaker-stats): display emotions english translation
This commit is contained in:
parent
a6718572f8
commit
fef71713a4
|
@ -927,8 +927,8 @@
|
|||
"speakerStats": {
|
||||
"angry": "Angry",
|
||||
"disgusted": "Disgusted",
|
||||
"displayEmotions": "Display emotions",
|
||||
"fearful": "Fearful",
|
||||
"hideFacialExpressions": "Hide facial expressions",
|
||||
"happy": "Happy",
|
||||
"hours": "{{count}}h",
|
||||
"minutes": "{{count}}m",
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// @flow
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import React from 'react';
|
||||
|
||||
// import { useTranslation } from 'react-i18next';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import { Switch } from '../../../base/react';
|
||||
|
||||
|
@ -81,15 +80,14 @@ type Props = {
|
|||
*/
|
||||
export default function FacialExpressionsSwitch({ onChange, showFacialExpressions }: Props) {
|
||||
const classes = useStyles();
|
||||
|
||||
// const { t } = useTranslation();
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className = { classes.switchContainer } >
|
||||
<label
|
||||
className = { `text-large ${classes.switchLabel}` }
|
||||
htmlFor = 'facial-expressions-switch'>
|
||||
Display Emotions
|
||||
{ t('speakerStats.displayEmotions')}
|
||||
</label>
|
||||
<Switch
|
||||
id = 'facial-expressions-switch'
|
||||
|
|
Loading…
Reference in New Issue