From 22077c54331176d3abac5ac2015c28e74eb5e2f8 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Tue, 27 Jun 2023 10:48:32 +0200 Subject: [PATCH] Prevent auto-translation within composer (#11114) Fixes: vector-im/element-web#25624 --- src/components/views/rooms/BasicMessageComposer.tsx | 1 + test/components/structures/__snapshots__/RoomView-test.tsx.snap | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/components/views/rooms/BasicMessageComposer.tsx b/src/components/views/rooms/BasicMessageComposer.tsx index 1dc6e5f9d8..89709c796c 100644 --- a/src/components/views/rooms/BasicMessageComposer.tsx +++ b/src/components/views/rooms/BasicMessageComposer.tsx @@ -850,6 +850,7 @@ export default class BasicMessageEditor extends React.Component dir="auto" aria-disabled={this.props.disabled} data-testid="basicmessagecomposer" + translate="no" /> ); diff --git a/test/components/structures/__snapshots__/RoomView-test.tsx.snap b/test/components/structures/__snapshots__/RoomView-test.tsx.snap index 81ce09dc72..bc54b24d51 100644 --- a/test/components/structures/__snapshots__/RoomView-test.tsx.snap +++ b/test/components/structures/__snapshots__/RoomView-test.tsx.snap @@ -505,6 +505,7 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] = role="textbox" style="--placeholder: 'Send a messageā€¦';" tabindex="0" + translate="no" >

@@ -768,6 +769,7 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t role="textbox" style="--placeholder: 'Send a messageā€¦';" tabindex="0" + translate="no" >