Skip to content

Commit 6bb0bde

Browse files
authored
Merge pull request #2847 from harmanbatheja15/fixed-translation-on-SignUp-page
Fixed: Translation of T&C on SignUp page
2 parents 1637d9a + 39da50a commit 6bb0bde

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

client/modules/User/pages/SignupView.jsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Link } from 'react-router-dom';
33
import { Helmet } from 'react-helmet';
4-
import { useTranslation } from 'react-i18next';
4+
import { useTranslation, Trans } from 'react-i18next';
55
import SignupForm from '../components/SignupForm';
66
import SocialAuthButton from '../components/SocialAuthButton';
77
import Nav from '../../IDE/components/Header/Nav';
@@ -27,9 +27,13 @@ function SignupView() {
2727
<SocialAuthButton service={SocialAuthButton.services.google} />
2828
</div>
2929
<p className="form__navigation-options">
30-
By signing up, you agree to the p5.js Editor&apos;s{' '}
31-
<Link to="/terms-of-use">Terms of Use</Link> and{' '}
32-
<Link to="/privacy-policy">Privacy Policy</Link>.
30+
<Trans
31+
i18nKey="SignupView.Warning"
32+
components={[
33+
<Link to="/terms-of-use">Terms of use</Link>,
34+
<Link to="/privacy-policy">Privacy Policy</Link>
35+
]}
36+
/>
3337
</p>
3438
<p className="form__navigation-options">
3539
{t('SignupView.AlreadyHave')}{' '}

translations/locales/en-US/translations.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@
366366
"Description": "Sign Up",
367367
"Or": "Or",
368368
"AlreadyHave": "Already have an account?",
369-
"Login": "Log In"
369+
"Login": "Log In",
370+
"Warning": "By signing up, you agree to the p5.js Editor's <0>Terms of Use</0> and <1>Privacy Policy.</1>"
370371
},
371372
"EmailVerificationView": {
372373
"Title": "p5.js Web Editor | Email Verification",

translations/locales/hi/translations.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@
353353
"Description": "साइन अप",
354354
"Or": "या",
355355
"AlreadyHave": "पहले से ही अकाउंट है?",
356-
"Login": "लॉग इन"
356+
"Login": "लॉग इन",
357+
"Warning": "साइन अप करके, आप p5.js संपादक की उपयोग की <0>शर्तों</0> और <1>गोपनीयता नीति</1> से सहमत होते हैं।"
357358
},
358359
"EmailVerificationView": {
359360
"Title": "p5.js वेब एडिटर | ईमेल वेरीफिकेशन",

0 commit comments

Comments
 (0)