Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 8ca18cc

Browse files
authored
Fix translation of "powerText" (#7603)
1 parent cb152a5 commit 8ca18cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/rooms/EntityTile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import React from 'react';
2020
import classNames from "classnames";
2121

2222
import AccessibleButton from '../elements/AccessibleButton';
23-
import { _td } from '../../../languageHandler';
23+
import { _t, _td } from '../../../languageHandler';
2424
import E2EIcon, { E2EState } from './E2EIcon';
2525
import { replaceableComponent } from "../../../utils/replaceableComponent";
2626
import BaseAvatar from '../avatars/BaseAvatar';
@@ -167,7 +167,7 @@ export default class EntityTile extends React.PureComponent<IProps, IState> {
167167
let powerLabel;
168168
const powerStatus = this.props.powerStatus;
169169
if (powerStatus) {
170-
const powerText = PowerLabel[powerStatus];
170+
const powerText = _t(PowerLabel[powerStatus]);
171171
powerLabel = <div className="mx_EntityTile_power">{ powerText }</div>;
172172
}
173173

0 commit comments

Comments
 (0)