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