diff --git a/public/locales/en-US/extension.json b/public/locales/en-US/extension.json new file mode 100644 index 0000000..c8f1efe --- /dev/null +++ b/public/locales/en-US/extension.json @@ -0,0 +1,12 @@ +{ + "sharePassword": { + "title": "Share Password?", + "description": "An extension is asking for your password. Do you want to share it? Only continue if you initiated this action.", + "warning": "THIS WILL SHARE YOUR PASSWORD WITH THE EXTENSION. ALL YOUR DATA CAN BE DECRYPTED USING IT. ONLY CONTINUE IF YOU TRUST THE EXTENSION AND IF YOU INITIATED THIS REQUEST.", + + "sharePassword": "Share Password", + "doNotShare": "Do not share", + "decideLater": "Decide later", + "doNotAskAgain": "Do not ask again" + } +} diff --git a/src/components/AuthContext/PasswordShareConfirmationDialog.tsx b/src/components/AuthContext/PasswordShareConfirmationDialog.tsx index b1a92f2..bd43330 100644 --- a/src/components/AuthContext/PasswordShareConfirmationDialog.tsx +++ b/src/components/AuthContext/PasswordShareConfirmationDialog.tsx @@ -25,32 +25,28 @@ export default function PasswordShareConfirmationDialog({ onShare, onClose, }: PasswordShareConfirmationDialogProps): ReactElement { - const {t} = useTranslation() + const {t} = useTranslation("extension") return ( onClose(false)} maxWidth="sm" fullWidth={false}> - {t("components.passwordShareConfirmationDialog.title")} + {t("sharePassword.title")} - - {t("components.passwordShareConfirmationDialog.description")} - + {t("sharePassword.description")} - - {t("components.passwordShareConfirmationDialog.warning")} - + {t("sharePassword.warning")}