Skip to content

Commit

Permalink
Ensure translations are not applied to seed phrases (#785)
Browse files Browse the repository at this point in the history
* Ensure translations are not applied to seed phrases

* Ensure the word button in confirm words onboarding steps aren't translated
  • Loading branch information
victorkirov authored Feb 2, 2024
1 parent cf3f366 commit 96792e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/app/components/seedPhraseView/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Eye from '@assets/img/createPassword/Eye.svg';
import { useMemo } from 'react';
import styled from 'styled-components';
import SeedPhraseWord from './word';

Expand Down
4 changes: 3 additions & 1 deletion src/app/components/seedPhraseView/word.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ function SeedPhraseWord({ index, word }: Props) {
return (
<Container>
<OrdinalNumber>{index + 1}.</OrdinalNumber>
<SeedWord key={word}>{word}</SeedWord>
<SeedWord key={word} translate="no">
{word}
</SeedWord>
</Container>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/screens/backupWalletSteps/verifySeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default function VerifySeed({
</Heading>
<WordGrid>
{quiz.words.map((word) => (
<WordButton key={word} onClick={handleClickWord} value={word}>
<WordButton key={word} onClick={handleClickWord} value={word} translate="no">
{word}
</WordButton>
))}
Expand Down

0 comments on commit 96792e9

Please sign in to comment.