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

Commit

Permalink
Fix translation of "powerText" (#7603)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cal authored Jan 24, 2022
1 parent cb152a5 commit 8ca18cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/views/rooms/EntityTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -167,7 +167,7 @@ export default class EntityTile extends React.PureComponent<IProps, IState> {
let powerLabel;
const powerStatus = this.props.powerStatus;
if (powerStatus) {
const powerText = PowerLabel[powerStatus];
const powerText = _t(PowerLabel[powerStatus]);
powerLabel = <div className="mx_EntityTile_power">{ powerText }</div>;
}

Expand Down

0 comments on commit 8ca18cc

Please sign in to comment.