add(speaker-stats): display emotions english translation

This commit is contained in:
Gabriel Borlea 2022-01-18 12:58:31 +02:00 committed by Calinteodor
parent a6718572f8
commit fef71713a4
2 changed files with 4 additions and 6 deletions

View File

@ -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",

View File

@ -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'