mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Fix translation of "powerText" (#7603)
This commit is contained in:
parent
cb152a575d
commit
8ca18ccdec
1 changed files with 2 additions and 2 deletions
|
@ -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>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue