From 75a9fa4f3e07ca34c9a0658d21c12ed95c6096eb Mon Sep 17 00:00:00 2001 From: Khaled FERJANI Date: Wed, 7 Feb 2024 17:13:25 +0100 Subject: [PATCH 1/4] =?UTF-8?q?=E2=9C=A8=20Add=20check=20OTP=20step?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../forms/steps/CheckOTPStep.svelte | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 registration/src/lib/components/forms/steps/CheckOTPStep.svelte diff --git a/registration/src/lib/components/forms/steps/CheckOTPStep.svelte b/registration/src/lib/components/forms/steps/CheckOTPStep.svelte new file mode 100644 index 0000000..49a2556 --- /dev/null +++ b/registration/src/lib/components/forms/steps/CheckOTPStep.svelte @@ -0,0 +1,74 @@ + + + + +
+
+
+
+ {$t('Confirm-your-code')} +
+
+ {$t('6-digit')}{maskPhone(phone)} +
+
+
+ +
+
+
+ {$t('Next')} +
+
+ Didn't get the code? + +
+
+
+
From 08d100be00a337f10e3d4297a74ff7fc904cb548 Mon Sep 17 00:00:00 2001 From: Khaled FERJANI Date: Wed, 7 Feb 2024 17:13:52 +0100 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=8C=90=20Added=20translation=20for=20?= =?UTF-8?q?check=20otp=20strings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- registration/src/lib/i18n/ar.json | 5 ++++- registration/src/lib/i18n/en.json | 7 +++++-- registration/src/lib/i18n/fr.json | 5 ++++- registration/src/lib/i18n/ru.json | 5 ++++- registration/src/lib/i18n/vi.json | 5 ++++- 5 files changed, 21 insertions(+), 6 deletions(-) diff --git a/registration/src/lib/i18n/ar.json b/registration/src/lib/i18n/ar.json index bcf0ce2..74c3fee 100644 --- a/registration/src/lib/i18n/ar.json +++ b/registration/src/lib/i18n/ar.json @@ -71,5 +71,8 @@ "Your-phone-number": "رقم الهاتف", "Please confirm your country code and enter your phone number": "يرجى تأكيد رمز البلد الخاص بك وإدخال رقم هاتفك.", "please-confirm": "يرجى تأكيد رمز البلد الخاص بك وإدخال رقم هاتفك.", - "Next": "التالي" + "Next": "التالي", + "Confirm-your-code": "قم بتأكيد الرمز الخاص بك", + "Resend": "إعادة إرسال", + "Resend-in": "إعادة الإرسال في" } diff --git a/registration/src/lib/i18n/en.json b/registration/src/lib/i18n/en.json index 41cac41..22f49e6 100644 --- a/registration/src/lib/i18n/en.json +++ b/registration/src/lib/i18n/en.json @@ -31,7 +31,7 @@ "Number is already registered": "Number is already registered.", "instead": "instead", "Phone number confirmation": "Phone number confirmation", - "Enter 6 digit code we sent to": "Enter 6 digit code we sent to", + "6-digit": "Enter 6 digit code we've sent to", "Code": "Code", "Send code": "Send code again", "Confirm": "Confirm", @@ -70,5 +70,8 @@ "Search": "Search", "Your-phone-number": "Your phone number", "please-confirm": "Please confirm your country code and enter your phone number.", - "Next": "Next" + "Next": "Next", + "Confirm-your-code": "Confirm your code", + "Resend": "Resend", + "Resend-in": "Resend in" } diff --git a/registration/src/lib/i18n/fr.json b/registration/src/lib/i18n/fr.json index a72c0f2..275b603 100644 --- a/registration/src/lib/i18n/fr.json +++ b/registration/src/lib/i18n/fr.json @@ -71,5 +71,8 @@ "Your-phone-number": "Votre numéro de téléphone", "Please confirm your country code and enter your phone number": "Veuillez confirmer votre code pays et saisir votre numéro de téléphone.", "please-confirm": "Veuillez confirmer votre code pays et saisir votre numéro de téléphone.", - "Next": "Suivant" + "Next": "Suivant", + "Confirm-your-code": "Confirmez votre code", + "Resend": "Renvoyer", + "Resend-in": "Renvoyer dans" } diff --git a/registration/src/lib/i18n/ru.json b/registration/src/lib/i18n/ru.json index e724af7..7cb59d3 100644 --- a/registration/src/lib/i18n/ru.json +++ b/registration/src/lib/i18n/ru.json @@ -71,5 +71,8 @@ "Your-phone-number": "Ваш номер телефона", "Please confirm your country code and enter your phone number": "Пожалуйста, подтвердите код страны и введите свой номер телефона.", "please-confirm": "Пожалуйста, подтвердите код страны и введите свой номер телефона.", - "Next": "Следующий" + "Next": "Следующий", + "Confirm-your-code": "Подтвердите свой код", + "Resend": "Отправить", + "Resend-in": "Отправить повторно" } diff --git a/registration/src/lib/i18n/vi.json b/registration/src/lib/i18n/vi.json index b2a3d79..cc1b37a 100644 --- a/registration/src/lib/i18n/vi.json +++ b/registration/src/lib/i18n/vi.json @@ -71,5 +71,8 @@ "Your-phone-number": "Số điện thoại của bạn", "Please confirm your country code and enter your phone number": "Vui lòng xác nhận mã quốc gia và nhập số điện thoại của bạn.", "please-confirm": "Vui lòng xác nhận mã quốc gia và nhập số điện thoại của bạn.", - "Next": "Kế tiếp" + "Next": "Kế tiếp", + "Confirm-your-code": "Xác nhận mã của bạn", + "Resend": "Gửi lại", + "Resend-in": "Gửi lại" } From 06127243478b9f94af818699f6139730a6e1ae2f Mon Sep 17 00:00:00 2001 From: Khaled FERJANI Date: Wed, 7 Feb 2024 17:14:29 +0100 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20otp=20field=20wrappe?= =?UTF-8?q?r=20to=20better=20position=20elements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- registration/src/lib/components/input/OtpField.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registration/src/lib/components/input/OtpField.svelte b/registration/src/lib/components/input/OtpField.svelte index a1e02b0..575b4b6 100644 --- a/registration/src/lib/components/input/OtpField.svelte +++ b/registration/src/lib/components/input/OtpField.svelte @@ -6,7 +6,7 @@ Date: Wed, 7 Feb 2024 17:17:31 +0100 Subject: [PATCH 4/4] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Fixed=20typo=20in=20st?= =?UTF-8?q?ep=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- registration/src/lib/components/forms/steps/CheckOTPStep.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registration/src/lib/components/forms/steps/CheckOTPStep.svelte b/registration/src/lib/components/forms/steps/CheckOTPStep.svelte index 49a2556..c7d31b6 100644 --- a/registration/src/lib/components/forms/steps/CheckOTPStep.svelte +++ b/registration/src/lib/components/forms/steps/CheckOTPStep.svelte @@ -51,7 +51,7 @@
- {$t('Next')} + {$t('Confirm')}