From 5bf0587cc51cb94833d6b39651fd543b739b1c8c Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 21 Aug 2019 08:55:19 -0600 Subject: [PATCH] Don't double translate labs settings SettingsStore.getDisplayName() already calls _t() for us. Fixes https://github.com/vector-im/riot-web/issues/10586 --- src/components/views/settings/tabs/user/LabsUserSettingsTab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/settings/tabs/user/LabsUserSettingsTab.js b/src/components/views/settings/tabs/user/LabsUserSettingsTab.js index 23b5e516cd..9c2d49a8bf 100644 --- a/src/components/views/settings/tabs/user/LabsUserSettingsTab.js +++ b/src/components/views/settings/tabs/user/LabsUserSettingsTab.js @@ -32,7 +32,7 @@ export class LabsSettingToggle extends React.Component { }; render() { - const label = _t(SettingsStore.getDisplayName(this.props.featureId)); + const label = SettingsStore.getDisplayName(this.props.featureId); const value = SettingsStore.isFeatureEnabled(this.props.featureId); return ; }