Skip to content

Commit f38f98f

Browse files
committed
fix: add translations
1 parent f70e462 commit f38f98f

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

public/locales/bg/common.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@
357357
"kyc.default.title": "Identity verification",
358358
"kyc.default.completed": "Your identity has been verified successfully.",
359359
"kyc.default.reason": "To ensure the safety and security of our platform, we require all users to verify their identity. This verification process helps us maintain a trusted community of members who are committed to upholding our standards. Please take a moment to complete your KYC verification to help us in our efforts to create a safe and secure environment for everyone.",
360+
"kyc.verification.pending": "Вашата верификация в момента се обработва. Благодарим ви за търпението.",
361+
"kyc.verification.rejected": "Съжаляваме да ви информираме, че процесът на вашата верификация е отхвърлен. Моля, свържете се с екипа за поддръжка за повече информация.",
360362
"kyc.default.button": "Start verification",
361363
"kyc.default.button.completed": "Go to profile",
362364
"kyc.payout.reason": "To cashout, you need to verify your identity first.",

public/locales/en/common.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@
415415
"kyc.default.title": "Identity verification",
416416
"kyc.default.completed": "Your identity has been verified successfully.",
417417
"kyc.default.reason": "To ensure the safety and security of our platform, we require all users to verify their identity. This verification process helps us maintain a trusted community of members who are committed to upholding our standards. Please take a moment to complete your KYC verification to help us in our efforts to create a safe and secure environment for everyone.",
418+
"kyc.verification.pending":"Your verification is currently being processed. Thank you for your patience",
419+
"kyc.verification.rejected":"We regret to inform you that your verification process has been rejected. Please contact support team for more information.",
418420
"kyc.default.button": "Start verification",
419421
"kyc.default.button.completed": "Go to profile",
420422
"kyc.payout.reason": "To cashout, you need to verify your identity first.",

public/locales/es/common.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@
371371
"kyc.default.title": "Identity verification",
372372
"kyc.default.completed": "Your identity has been verified successfully.",
373373
"kyc.default.reason": "To ensure the safety and security of our platform, we require all users to verify their identity. This verification process helps us maintain a trusted community of members who are committed to upholding our standards. Please take a moment to complete your KYC verification to help us in our efforts to create a safe and secure environment for everyone.",
374+
"kyc.verification.pending": "Su verificación está siendo procesada actualmente. Gracias por su paciencia.",
375+
"kyc.verification.rejected": "Lamentamos informarle que su proceso de verificación ha sido rechazado. Por favor, póngase en contacto con el equipo de soporte para obtener más información.",
374376
"kyc.default.button": "Start verification",
375377
"kyc.default.button.completed": "Go to profile",
376378
"kyc.payout.reason": "To cashout, you need to verify your identity first.",

public/locales/hr/common.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@
357357
"kyc.default.title": "Identity verification",
358358
"kyc.default.completed": "Your identity has been verified successfully.",
359359
"kyc.default.reason": "To ensure the safety and security of our platform, we require all users to verify their identity. This verification process helps us maintain a trusted community of members who are committed to upholding our standards. Please take a moment to complete your KYC verification to help us in our efforts to create a safe and secure environment for everyone.",
360+
"kyc.verification.pending": "Vaša verifikacija trenutno se obrađuje. Hvala vam na strpljenju.",
361+
"kyc.verification.rejected": "Žao nam je obavijestiti vas da je vaš proces verifikacije odbijen. Molimo vas da kontaktirate tim za podršku radi više informacija.",
360362
"kyc.default.button": "Start verification",
361363
"kyc.default.button.completed": "Go to profile",
362364
"kyc.payout.reason": "To cashout, you need to verify your identity first.",

src/components/popups/KYCVerification.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ export default function KYCVerification({ onCompleted }: KYCVerificationProps) {
3434
const verificationData = useSelector((state) => state.sumsubVerification);
3535

3636
const { showModal, completed, verifying, completedActionText, actionText, loading, title } = verificationData;
37-
const user = useSelector((state) => state.user.data);
38-
37+
const user = useSelector((state) => state.user.data);
38+
39+
const kycStatus = useMemo(() => user?.kycStatus, [user?.kycStatus]);
40+
3941
const closeModal = () => {
4042
dispatch(closeVerificationModal());
4143
};
@@ -51,11 +53,11 @@ export default function KYCVerification({ onCompleted }: KYCVerificationProps) {
5153
};
5254

5355
const statuMessage = useMemo(() => {
54-
if (user?.kycStatus === KYCSTATUS.VERIFIED) return t("kyc.default.completed");
55-
if (user?.kycStatus === KYCSTATUS.PENDING) return "Your verification is currently being processed. Thank you for your patience";
56-
if (user?.kycStatus === KYCSTATUS.REJECTED) return "We regret to inform you that your verification process has been rejected. Please review your submitted information and try again.";
56+
if (kycStatus === KYCSTATUS.VERIFIED) return t("kyc.default.completed");
57+
if (kycStatus === KYCSTATUS.PENDING) return t("kyc.verification.pending");
58+
if (kycStatus === KYCSTATUS.REJECTED) return t("kyc.verification.rejected");
5759
return t("kyc.default.reason");
58-
}, [user?.kycStatus]);
60+
}, [kycStatus, t]);
5961

6062
return (
6163
<Modal show={showModal} onClose={closeModal}>

0 commit comments

Comments
 (0)