From e5e9ed47ae1cf97345268711107175934295f854 Mon Sep 17 00:00:00 2001 From: harmanbatheja15 Date: Sat, 6 Jan 2024 07:15:28 +0530 Subject: [PATCH 1/2] Fixed: Translation of T&C on SignUp page --- client/modules/User/pages/SignupView.jsx | 12 ++++++++---- translations/locales/en-US/translations.json | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/client/modules/User/pages/SignupView.jsx b/client/modules/User/pages/SignupView.jsx index c633dc1d0e..6b1e1fff51 100644 --- a/client/modules/User/pages/SignupView.jsx +++ b/client/modules/User/pages/SignupView.jsx @@ -1,7 +1,7 @@ import React from 'react'; import { Link } from 'react-router-dom'; import { Helmet } from 'react-helmet'; -import { useTranslation } from 'react-i18next'; +import { useTranslation, Trans } from 'react-i18next'; import SignupForm from '../components/SignupForm'; import SocialAuthButton from '../components/SocialAuthButton'; import Nav from '../../IDE/components/Header/Nav'; @@ -27,9 +27,13 @@ function SignupView() {

- By signing up, you agree to the p5.js Editor's{' '} - Terms of Use and{' '} - Privacy Policy. + Terms of use, + Privacy Policy + ]} + />

{t('SignupView.AlreadyHave')}{' '} diff --git a/translations/locales/en-US/translations.json b/translations/locales/en-US/translations.json index a3dde037de..7f33febd97 100644 --- a/translations/locales/en-US/translations.json +++ b/translations/locales/en-US/translations.json @@ -366,7 +366,8 @@ "Description": "Sign Up", "Or": "Or", "AlreadyHave": "Already have an account?", - "Login": "Log In" + "Login": "Log In", + "Warning": "By signing up, you agree to the p5.js Editor's <0>Terms of Use and <1>Privacy Policy." }, "EmailVerificationView": { "Title": "p5.js Web Editor | Email Verification", From 604f6097d2a3c102acd7ed6b1caa3a2f4418e66f Mon Sep 17 00:00:00 2001 From: harmanbatheja15 Date: Sun, 7 Jan 2024 00:44:13 +0530 Subject: [PATCH 2/2] Added Hindi Translation for T&C on SignUp page --- translations/locales/hi/translations.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/translations/locales/hi/translations.json b/translations/locales/hi/translations.json index 323ef7ca64..4bdacb5349 100644 --- a/translations/locales/hi/translations.json +++ b/translations/locales/hi/translations.json @@ -353,7 +353,8 @@ "Description": "साइन अप", "Or": "या", "AlreadyHave": "पहले से ही अकाउंट है?", - "Login": "लॉग इन" + "Login": "लॉग इन", + "Warning": "साइन अप करके, आप p5.js संपादक की उपयोग की <0>शर्तों और <1>गोपनीयता नीति से सहमत होते हैं।" }, "EmailVerificationView": { "Title": "p5.js वेब एडिटर | ईमेल वेरीफिकेशन",