Fix translation of "powerText" (#7603)

This commit is contained in:
Charlie Calendre 2022-01-24 13:01:17 +01:00 committed by GitHub
parent cb152a575d
commit 8ca18ccdec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ import React from 'react';
import classNames from "classnames"; import classNames from "classnames";
import AccessibleButton from '../elements/AccessibleButton'; import AccessibleButton from '../elements/AccessibleButton';
import { _td } from '../../../languageHandler'; import { _t, _td } from '../../../languageHandler';
import E2EIcon, { E2EState } from './E2EIcon'; import E2EIcon, { E2EState } from './E2EIcon';
import { replaceableComponent } from "../../../utils/replaceableComponent"; import { replaceableComponent } from "../../../utils/replaceableComponent";
import BaseAvatar from '../avatars/BaseAvatar'; import BaseAvatar from '../avatars/BaseAvatar';
@ -167,7 +167,7 @@ export default class EntityTile extends React.PureComponent<IProps, IState> {
let powerLabel; let powerLabel;
const powerStatus = this.props.powerStatus; const powerStatus = this.props.powerStatus;
if (powerStatus) { if (powerStatus) {
const powerText = PowerLabel[powerStatus]; const powerText = _t(PowerLabel[powerStatus]);
powerLabel = <div className="mx_EntityTile_power">{ powerText }</div>; powerLabel = <div className="mx_EntityTile_power">{ powerText }</div>;
} }