From 8ca18ccdec306197ed4c5c754da57e6b80b26e87 Mon Sep 17 00:00:00 2001 From: Charlie Calendre <57274151+c-cal@users.noreply.github.com> Date: Mon, 24 Jan 2022 13:01:17 +0100 Subject: [PATCH] Fix translation of "powerText" (#7603) --- src/components/views/rooms/EntityTile.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/EntityTile.tsx b/src/components/views/rooms/EntityTile.tsx index 1cf91289f6..c15e18fceb 100644 --- a/src/components/views/rooms/EntityTile.tsx +++ b/src/components/views/rooms/EntityTile.tsx @@ -20,7 +20,7 @@ import React from 'react'; import classNames from "classnames"; import AccessibleButton from '../elements/AccessibleButton'; -import { _td } from '../../../languageHandler'; +import { _t, _td } from '../../../languageHandler'; import E2EIcon, { E2EState } from './E2EIcon'; import { replaceableComponent } from "../../../utils/replaceableComponent"; import BaseAvatar from '../avatars/BaseAvatar'; @@ -167,7 +167,7 @@ export default class EntityTile extends React.PureComponent { let powerLabel; const powerStatus = this.props.powerStatus; if (powerStatus) { - const powerText = PowerLabel[powerStatus]; + const powerText = _t(PowerLabel[powerStatus]); powerLabel =
{ powerText }
; }