diff --git a/packages/legacy/core/App/localization/en/index.ts b/packages/legacy/core/App/localization/en/index.ts index 3778f024e..99ff8cecd 100644 --- a/packages/legacy/core/App/localization/en/index.ts +++ b/packages/legacy/core/App/localization/en/index.ts @@ -269,7 +269,11 @@ const translation = { "ReEnterPIN": "Re-enter your wallet PIN", "BiometricsChanged": "Biometrics unlock has been disabled because your device biometrics changed.", "BiometricsChangedEnterPIN": "Please enter your wallet PIN.", - "AttemptLockoutWarning": "Note: for your security, entering another incorrect PIN will temporarily lock the wallet." + "AttemptLockoutWarning": "Note: for your security, entering another incorrect PIN will temporarily lock the wallet.", + "AppSettingChanged": "The application setting has changed.", + "AppSettingChangedEnterPIN": "Please confirm your change by entering your wallet PIN.", + "AppSettingSave": "Save", + "AppSettingCancel": "Cancel", }, "AttemptLockout": { "Title": "Your wallet is temporarily locked", diff --git a/packages/legacy/core/App/localization/fr/index.ts b/packages/legacy/core/App/localization/fr/index.ts index 8650d1c29..07f17a467 100644 --- a/packages/legacy/core/App/localization/fr/index.ts +++ b/packages/legacy/core/App/localization/fr/index.ts @@ -268,7 +268,12 @@ const translation = { "ReEnterPIN": "Re-enter your wallet PIN (FR)", "BiometricsChanged": "Le déverrouillage avec la biométrie a été désactivé, car les données biométriques de votre appareil ont changé.", "BiometricsChangedEnterPIN": "Veuillez saisir le code NIP de votre portefeuille.", - "AttemptLockoutWarning": "Note: pour votre sécurité, la saisie d'un autre NIP incorrect verrouillera temporairement le portefeuille." + "AttemptLockoutWarning": "Note: pour votre sécurité, la saisie d'un autre NIP incorrect verrouillera temporairement le portefeuille.", + "AppSettingChanged": "Le paramètre de l'application a changé.", + "AppSettingsChangedEnterPIN": "Veuillez confirmer la modification en saisissant votre NIP.", + "AppSettingSave": "Enregistrer", + "AppSettingCancel": "Annuler", + }, "AttemptLockout": { "Title": "Votre portefeuille est temporairement verrouillé", diff --git a/packages/legacy/core/App/localization/pt-br/index.ts b/packages/legacy/core/App/localization/pt-br/index.ts index cd5095d89..57de018e4 100644 --- a/packages/legacy/core/App/localization/pt-br/index.ts +++ b/packages/legacy/core/App/localization/pt-br/index.ts @@ -253,8 +253,12 @@ const translation = { "ReEnterPIN": "Re-enter your wallet PIN (PT-BR)", "EnableBiometrics": "Você deve habilitar a biometria para poder carregar a carteira.", "BiometricsNotProvided": "Biometria não informada, você deve usar o PIN para carregar a carteira.", - "BiometricsError": "Biometrics were not successful.", - "BiometricsErrorEnterPIN": "Please enter your wallet PIN." + "BiometricsError": "A biometria não obteve sucesso.", + "BiometricsErrorEnterPIN": "Por favor, digite o PIN de sua carteira.", + "AppSettingsChanged": "A configuração do aplicativo foi alterada.", + "AppSettingsChangedEnterPIN": "Por favor, confirme sua alteração digitando o seu PIN.", + "AppSettingSave": "Salvar", + "AppSettingCancel": "Cancelar", }, "Biometry": { "Toggle": "Habilitar Biometria", diff --git a/packages/legacy/core/App/screens/PINEnter.tsx b/packages/legacy/core/App/screens/PINEnter.tsx index 789863cdc..ebb17192b 100644 --- a/packages/legacy/core/App/screens/PINEnter.tsx +++ b/packages/legacy/core/App/screens/PINEnter.tsx @@ -30,6 +30,7 @@ import { InlineErrorType, InlineMessageProps } from '../components/inputs/Inline interface PINEnterProps { setAuthenticated: (status: boolean) => void usage?: PINEntryUsage + onCancelAuth?: React.Dispatch> } export enum PINEntryUsage { @@ -37,7 +38,7 @@ export enum PINEntryUsage { WalletUnlock, } -const PINEnter: React.FC = ({ setAuthenticated, usage = PINEntryUsage.WalletUnlock }) => { +const PINEnter: React.FC = ({ setAuthenticated, usage = PINEntryUsage.WalletUnlock, onCancelAuth }) => { const { t } = useTranslation() const { checkPIN, getWalletCredentials, isBiometricsActive, disableBiometrics } = useAuth() const [store, dispatch] = useStore() @@ -456,6 +457,10 @@ const PINEnter: React.FC = ({ setAuthenticated, usage = PINEntryU ) } + if (usage === PINEntryUsage.PINCheck) { + return {t('PINEnter.AppSettingChanged')} + } + return ( <> {t('PINEnter.Title')} @@ -471,6 +476,7 @@ const PINEnter: React.FC = ({ setAuthenticated, usage = PINEntryU style.subTitle, style.title, store.preferences.autoLockTime, + usage, ]) return ( @@ -484,7 +490,9 @@ const PINEnter: React.FC = ({ setAuthenticated, usage = PINEntryU ) : ( displayHelpText() )} - {t('PINEnter.EnterPIN')} + {`${ + usage === PINEntryUsage.PINCheck ? t('PINEnter.AppSettingChangedEnterPIN') : t('PINEnter.EnterPIN') + }`} { setPIN(p) @@ -492,8 +500,10 @@ const PINEnter: React.FC = ({ setAuthenticated, usage = PINEntryU Keyboard.dismiss() } }} - testID={testIdWithKey('EnterPIN')} - accessibilityLabel={t('PINEnter.EnterPIN')} + testID={testIdWithKey(usage === PINEntryUsage.PINCheck ? 'AppSettingChangedEnterPIN' : 'EnterPIN')} + accessibilityLabel={ + usage === PINEntryUsage.PINCheck ? t('PINEnter.AppSettingChangedEnterPIN') : t('PINEnter.EnterPIN') + } autoFocus={true} inlineMessage={inlineMessageField} /> @@ -501,11 +511,13 @@ const PINEnter: React.FC = ({ setAuthenticated, usage = PINEntryU