Browse Source

fix(ui): Remove useless translations (#48871)

Scott Cooper 1 year ago
parent
commit
e4df3c436e

+ 1 - 3
static/app/views/alerts/rules/metric/details/sidebar.tsx

@@ -39,9 +39,7 @@ export default class Sidebar extends PureComponent<Props> {
 
     const {timeWindow} = rule;
 
-    return tct('[window]', {
-      window: <Duration seconds={timeWindow * 60} />,
-    });
+    return <Duration seconds={timeWindow * 60} />;
   }
 
   renderTrigger(label: string, threshold: number, actions: Action[]): ReactNode {

+ 1 - 6
static/app/views/settings/organizationIntegrations/integrationCodeMappings.tsx

@@ -125,12 +125,7 @@ class IntegrationCodeMappings extends AsyncComponent<Props, State> {
       this.setState({pathConfigs});
       addSuccessMessage(t('Deletion successful'));
     } catch (err) {
-      addErrorMessage(
-        tct('[status]: [text]', {
-          status: err.statusText,
-          text: err.responseText,
-        })
-      );
+      addErrorMessage(`${err.statusText}: ${err.responseText}`);
     }
   };