Skip to content

Commit

Permalink
fixed signup string
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Jan 5, 2024
1 parent 45c2ce1 commit f280c8a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
12 changes: 8 additions & 4 deletions client/modules/User/pages/SignupView.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -27,9 +27,13 @@ function SignupView() {
<SocialAuthButton service={SocialAuthButton.services.google} />
</div>
<p className="form__navigation-options">
By signing up, you agree to the p5.js Editor&apos;s{' '}
<Link to="/terms-of-use">Terms of Use</Link> and{' '}
<Link to="/privacy-policy">Privacy Policy</Link>.
<Trans
i18nKey="SignupView.Warning"
components={[
<Link to="/terms-of-use">Terms of use</Link>,
<Link to="/privacy-policy">Privacy Policy</Link>
]}
/>
</p>
<p className="form__navigation-options">
{t('SignupView.AlreadyHave')}{' '}
Expand Down
3 changes: 2 additions & 1 deletion translations/locales/en-US/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -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</0> and <1>Privacy Policy.</1>"
},
"EmailVerificationView": {
"Title": "p5.js Web Editor | Email Verification",
Expand Down
3 changes: 2 additions & 1 deletion translations/locales/hi/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@
"Description": "साइन अप",
"Or": "या",
"AlreadyHave": "पहले से ही अकाउंट है?",
"Login": "लॉग इन"
"Login": "लॉग इन",
"Warning": "साइन अप करके, आप p5.js संपादक की उपयोग की <0>शर्तों</0> और <1>गोपनीयता नीति</1> से सहमत होते हैं।"
},
"EmailVerificationView": {
"Title": "p5.js वेब एडिटर | ईमेल वेरीफिकेशन",
Expand Down

0 comments on commit f280c8a

Please sign in to comment.